2010/4/13 alexis heron <alexis.he...@crihan.fr>:
> Hi,
>
> I have a problem to routing with kamailio. When I restart kamailio I have
> this error message :
> 0(710) : <core> [cfg.y:3328]: parse error in config file
> /usr/local/etc/kamailio/kamailio.cfg, line 640, column 2-3: syntax error
> 0(710) : <core> [cfg.y:3328]: parse error in config file
> /usr/local/etc/kamailio/kamailio.cfg, line 640, column 2-3:
> ERROR: bad config file (2 errors)
>
> here is my line 640 :
>
>   if (uri=~"sip:9[0-9][0...@.*") { //line 640
>               log(1, "Matched Cisco Call Manager");
>               route(4);
>   };

As a suggestion, if you are interested in matching just the RURI
username part then I strongly recommend you doing so as follows:

 if ( $rU =~ "^9[0-9][0-9]$" ) {
             log(1, "Matched Cisco Call Manager");
             route(4);
 }


-- 
Iñaki Baz Castillo
<i...@aliax.net>

_______________________________________________
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