[svn-commits] file: branch 11 r372995 - /branches/11/channels/chan_motif.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Sep 12 15:53:24 CDT 2012


Author: file
Date: Wed Sep 12 15:53:20 2012
New Revision: 372995

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=372995
Log:
Skip any non-content information when looking for and handling content.

This fixes a bug with Jitsi and conference calling. Jitsi implements XEP-0298
which places some conference-info information in the session-initiate request
which chan_motif did not expect to occur.

Modified:
    branches/11/channels/chan_motif.c

Modified: branches/11/channels/chan_motif.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/channels/chan_motif.c?view=diff&rev=372995&r1=372994&r2=372995
==============================================================================
--- branches/11/channels/chan_motif.c (original)
+++ branches/11/channels/chan_motif.c Wed Sep 12 15:53:20 2012
@@ -2098,9 +2098,15 @@
 
 	/* Look at the content in the session initiation */
 	for (content = iks_child(iks_child(pak->x)); content; content = iks_next(content)) {
-		char *name = iks_find_attrib(content, "name");
+		char *name;
 		struct ast_rtp_instance *rtp = NULL;
 		iks *description, *transport;
+
+		if (strcmp(iks_name(content), "content")) {
+			continue;
+		}
+
+		name = iks_find_attrib(content, "name");
 
 		if (session->transport != JINGLE_TRANSPORT_GOOGLE_V1) {
 			/* If this content stanza has no name consider it invalid and move on */




More information about the svn-commits mailing list