Hi All,

Tuning my homer capture server and ran into a syntax error in the
onreply_route.  The idea is to NOT to capture
NOTIFY|SUBSCRIBE|OPTIONS.  The route block compiles ok but I get the
following errors for the lines in the onreply_route:

 0(6443) : <core> [cfg.y:3504]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 48, column 46: syntax error
 0(6443) : <core> [cfg.y:3504]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 49, column 15: bad
expression
 0(6443) : <core> [cfg.y:3504]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 49, column 16:
ERROR: bad config file (3 errors)

route {
        if (!(method =~ "^(NOTIFY|SUBSCRIBE|OPTIONS)")) {
                sip_capture();
        }
        exit;
}

47 onreply_route {
48        if (!($rm =~ "^(NOTIFY|SUBSCRIBE|OPTIONS)") {
49                sip_capture();
50        }
51        drop;
52 }

This example was used from the homer wiki
http://code.google.com/p/homer/wiki/Kamailio

root@homer:/etc/kamailio# kamailio -V
version: kamailio 3.2.1 (x86_64/linux) bee094

Any guidance is appreciated.

Thanks.

JR
-- 
JR Richardson
Engineering for the Masses

_______________________________________________
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