[asterisk-commits] mmichelson: branch group/CCSS r239472 - in /team/group/CCSS: channels/ main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 12 10:58:07 CST 2010


Author: mmichelson
Date: Tue Jan 12 10:58:03 2010
New Revision: 239472

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=239472
Log:
* Change XML parsing function so there aren't so many bogus parameters
* Use proper function name in chan_sip.c


Modified:
    team/group/CCSS/channels/chan_sip.c
    team/group/CCSS/main/xml.c

Modified: team/group/CCSS/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/channels/chan_sip.c?view=diff&rev=239472&r1=239471&r2=239472
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Tue Jan 12 10:58:03 2010
@@ -12526,10 +12526,10 @@
 
 	if (publish_type == SIP_PUBLISH_INITIAL || publish_type == SIP_PUBLISH_MODIFY) {
 		add_header(&req, "Content-Type", "application/pidf+xml");
-		add_header_contentlength(&req, strlen(epa_entry->body));
+		add_header_contentLength(&req, strlen(epa_entry->body));
 		add_line(&req, epa_entry->body);
 	} else {
-		add_header_contentlength(&req, 0);
+		add_header_contentLength(&req, 0);
 	}
 
 	initialize_initreq(pvt, &req);

Modified: team/group/CCSS/main/xml.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/xml.c?view=diff&rev=239472&r1=239471&r2=239472
==============================================================================
--- team/group/CCSS/main/xml.c (original)
+++ team/group/CCSS/main/xml.c Tue Jan 12 10:58:03 2010
@@ -75,7 +75,7 @@
 		return NULL;
 	}
 
-	if (!(doc = xmlReadMemory(buffer, (int) size, "asterisk.xml", NULL, XML_PARSE_RECOVER))) {
+	if (!(doc = xmlParseMemory(buffer, (int) size))) {
 		/* process xinclude elements. */
 		if (xmlXIncludeProcess(doc) < 0) {
 			xmlFreeDoc(doc);




More information about the asterisk-commits mailing list