[svn-commits] oej: branch oej/sip-fork-support r229092 - /team/oej/sip-fork-support/channels/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Nov 10 09:27:36 CST 2009


Author: oej
Date: Tue Nov 10 09:27:33 2009
New Revision: 229092

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=229092
Log:
Use the sip_uri_cmp function to be more pedantic, which is exactly what I want.

Modified:
    team/oej/sip-fork-support/channels/chan_sip.c

Modified: team/oej/sip-fork-support/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/sip-fork-support/channels/chan_sip.c?view=diff&rev=229092&r1=229091&r2=229092
==============================================================================
--- team/oej/sip-fork-support/channels/chan_sip.c (original)
+++ team/oej/sip-fork-support/channels/chan_sip.c Tue Nov 10 09:27:33 2009
@@ -4865,7 +4865,7 @@
 			}
 			/* If this is an INVITE, check if the request URI is the same as the one in the found dialog. If not, it's not the same. */
 			if (found && req->method == SIP_INVITE) {
-				if (strcmp(req->rlPart2, p->initreq.rlPart2)) {
+				if(!sip_uri_cmp(p->initreq.rlPart2, req->rlPart2)) {
 					found = FALSE;	/* The URI's are not the same */
 					if (option_debug > 4) {
 						ast_log(LOG_DEBUG, "= Being pedantic: Forked call - two branches hitting us at the same time - This URI %s - Other URI %s\n", req->rlPart2, p->initreq.rlPart2);




More information about the svn-commits mailing list