[SR-Users] onreply _route syntax error for homer capture server

JR Richardson jmr.richardson at gmail.com
Tue Jan 17 18:40:58 CET 2012


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 at 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



More information about the sr-users mailing list