[svn-commits] file: branch 1.4 r61641 - /branches/1.4/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Apr 13 09:32:04 MST 2007


Author: file
Date: Fri Apr 13 11:32:03 2007
New Revision: 61641

URL: http://svn.digium.com/view/asterisk?view=rev&rev=61641
Log:
Don't assume the callid of a dialog will be set, as in some circumstances it may not. (issue #9534 reported by tecnoxarxa)

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=61641&r1=61640&r2=61641
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Fri Apr 13 11:32:03 2007
@@ -4354,6 +4354,8 @@
 	for (p = iflist; p; p = p->next) {
 		/* In pedantic, we do not want packets with bad syntax to be connected to a PVT */
 		int found = FALSE;
+		if (ast_strlen_zero(p->callid))
+			continue;
 		if (req->method == SIP_REGISTER)
 			found = (!strcmp(p->callid, callid));
 		else 



More information about the svn-commits mailing list