[asterisk-commits] kharwell: branch kharwell/pimp_sip_video r384602 - /team/kharwell/pimp_sip_vi...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 2 16:55:24 CDT 2013


Author: kharwell
Date: Tue Apr  2 16:55:21 2013
New Revision: 384602

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=384602
Log:
modified session request handling for all method types (supplement name is empty).

Modified:
    team/kharwell/pimp_sip_video/res/res_sip_session.c

Modified: team/kharwell/pimp_sip_video/res/res_sip_session.c
URL: http://svnview.digium.com/svn/asterisk/team/kharwell/pimp_sip_video/res/res_sip_session.c?view=diff&rev=384602&r1=384601&r2=384602
==============================================================================
--- team/kharwell/pimp_sip_video/res/res_sip_session.c (original)
+++ team/kharwell/pimp_sip_video/res/res_sip_session.c Tue Apr  2 16:55:21 2013
@@ -1211,7 +1211,7 @@
 	struct pjsip_method *method = &rdata->msg_info.msg->line.req.method;
 
 	AST_LIST_TRAVERSE(&session->supplements, supplement, next) {
-		if (supplement->method && !pj_strcmp2(&method->name, supplement->method)) {
+		if (!supplement->method || !pj_strcmp2(&method->name, supplement->method)) {
 			return PJ_TRUE;
 		}
 	}




More information about the asterisk-commits mailing list