[svn-commits] marquis: branch group/pinana-publish-1.4 r296530 - /team/group/pinana-publish...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Nov 28 15:12:07 CST 2010


Author: marquis
Date: Sun Nov 28 15:12:04 2010
New Revision: 296530

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=296530
Log:
Check to make sure we can parse XML before going through the effort of building up all the structures for publishing device state.

Modified:
    team/group/pinana-publish-1.4/channels/chan_sip.c

Modified: team/group/pinana-publish-1.4/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pinana-publish-1.4/channels/chan_sip.c?view=diff&rev=296530&r1=296529&r2=296530
==============================================================================
--- team/group/pinana-publish-1.4/channels/chan_sip.c (original)
+++ team/group/pinana-publish-1.4/channels/chan_sip.c Sun Nov 28 15:12:04 2010
@@ -19894,6 +19894,10 @@
 			continue;
 		}
 		if (!strcasecmp(type, "presence")) {
+			if (!can_parse_xml) {
+				ast_log(LOG_ERROR, "Trying to publish device state to %s, but cannot parse XML!\n", name);
+				continue;
+			}
 			publisher = sip_publisher_init(name, host, domain, filter);
 			if (publisher) {
 				ao2_link(devstate_publishers, publisher);




More information about the svn-commits mailing list