marius zbihlei wrote:
alexis heron wrote:
IƱaki Baz Castillo wrote:
2010/4/13 alexis heron alexis.heron@crihan.fr:
Hi,
I would like to make a SIPTrunk with kamailio to redirect to a 9xx numbers in Cisco Call manager, can you help me please. Here's what I did but it does not work.
Please specify the exact error you have. "It does not work" is not a good description and it's difficult to help in this way.
if (uri=~"sip:9[0-9][0-9]@ccm-ipv6.crihan.fr") {
<ironic>Thanks again for considering my suggestion.</ironic>
log(1, "Matched Cisco Call Manager"); route(4); };
route(4) { log(1, "In route[4]");
rewritehostport("195.221.29.145.fr:5060");
Have you rechecked this address "195.221.29.145.fr:5060" ?
yes, I rechecked this address and it's good, here's the error :
Hello
NO you haven't ! This is not a IP address , this is a subdomain of 145.fr which is a parked domain
0(3736) : <core> [cfg.y:3331]: parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 662, column 1: syntax error 0(3736) : <core> [cfg.y:3331]: parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 662, column 1: ERROR: bad config file (6 errors)
line 645 :route(4) { line 656: sl_reply_error(); line 662: } thank you
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
The script still fails at parser level. You can declare routes like route[ID], and use them with route(ID)
Please check kamailio's documentation
Marius
I changed a few things like the address and route [ID], but I always these errors. Is there a script just to make a SIPtrunk?? here is the modified script :
if (uri=~"sip:9[0-9][0-9]@ccm-ipv6.crihan.fr") { log(1, "Matched Cisco Call Manager"); route(4); };
route[4] { log(1, "In route[4]"); rewritehostport("195.221.29.145:5060"); append_hf("P-hint: Forwarded to CCM\r\n"); xlog("L_INFO", "$rm from $fu to $tu"); t_on_failure("2");
if (!t_relay()) { sl_reply_error();
}; exit;