alexis heron wrote:
Iñaki Baz Castillo wrote:
2010/4/13 alexis heron <alexis.he...@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...@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

_______________________________________________
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

Reply via email to