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.
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.fr: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; }
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" ?
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 :
0(3736) : <core> [cfg.y:3331]: parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 645, column 10: syntax error 0(3736) : <core> [cfg.y:3331]: parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 645, column 10: bad command: missing ';'? 0(3736) : <core> [cfg.y:3331]: parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 645, column 10: bad command 0(3736) : <core> [cfg.y:3331]: parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 656, column 32: Command cannot be used in the block
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
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
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;
On Wednesday 14 April 2010 08:09:27 alexis heron wrote:
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 :
At this moment on the mail threat it's time to tell you:
- If you don't have time to learn - If you don't want to learn
HIRE A CONSULTANT
Kamailio it's not a point and click software, it's a piece of software that REQUIRES that you know what you are doing, that REQUIRES that you have a very good knowleadge of SIP and that REQUIRES that you read the full documentation 3 or 4 times to undestand exactly what you are trying to archive.
if (uri=~"sip:9[0-9][0-9]@ccm-ipv6.crihan.fr") { log(1, "Matched Cisco Call Manager"); route(4); };
You could not have this statements outside a route block
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;
Also .. a missing } here
2010/4/14 alexis heron alexis.heron@crihan.fr:
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??
You have been already explained about the reason for those errors. Please, re-read the entire thread and check the documentation.