[asterisk-commits] kharwell: branch kharwell/pimp_my_sip r384601 - /team/kharwell/pimp_my_sip/res/

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


Author: kharwell
Date: Tue Apr  2 16:51:23 2013
New Revision: 384601

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

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

Modified: team/kharwell/pimp_my_sip/res/res_sip_session.c
URL: http://svnview.digium.com/svn/asterisk/team/kharwell/pimp_my_sip/res/res_sip_session.c?view=diff&rev=384601&r1=384600&r2=384601
==============================================================================
--- team/kharwell/pimp_my_sip/res/res_sip_session.c (original)
+++ team/kharwell/pimp_my_sip/res/res_sip_session.c Tue Apr  2 16:51:23 2013
@@ -1203,7 +1203,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;
 		}
 	}
@@ -1244,7 +1244,7 @@
 	default:
 		/* Handle other in-dialog methods if their supplements have been registered */
 		handled = dlg && (inv_session = pjsip_dlg_get_inv_session(dlg)) &&
-			has_supplement(rdata, inv_session->mod_data[session_module.id]);
+			has_supplement(inv_session->mod_data[session_module.id], rdata);
 		break;
 	}
 




More information about the asterisk-commits mailing list