Juha Heinanen writes:
i have this piece of config code:
if (method == "SUBSCRIBE") {
xlog("L_INFO", "Method $rm $ru is SUSBCRIBE\n");
...
exit;
};
xlog("L_INFO", "Method $rm $ru NOT is SUSBCRIBE\n");
and here is what i get to syslog:
Jul 18 09:54:27 localhost /usr/sbin/sip-router[17556]: INFO: Method SUBSCRIBE
sip:jh@test.fi NOT is SUSBCRIBE
looks like method test has got broken.
i changed the above test to
if (is_method("SUBSCRIBE")) {
and it worked:
Jul 18 09:59:27 localhost /usr/sbin/sip-router[17988]: INFO: Method SUBSCRIBE
sip:jh@test.fi is SUSBCRIBE
i would still like the == test to be fixed.
-- juha