[sr-dev] method test fails

Juha Heinanen jh at tutpro.com
Sat Jul 18 09:03:40 CEST 2009


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 at 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 at test.fi is SUSBCRIBE

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

-- juha



More information about the sr-dev mailing list