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:[email protected] 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:[email protected] is SUSBCRIBE

i would still like the == test to be fixed.

-- juha

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to