[asterisk-commits] mmichelson: branch group/CCSS r236912 - /team/group/CCSS/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 30 15:18:22 CST 2009


Author: mmichelson
Date: Wed Dec 30 15:18:20 2009
New Revision: 236912

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=236912
Log:
Fix up the NOTIFY body to what it's supposed to be.


Modified:
    team/group/CCSS/channels/chan_sip.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=236912&r1=236911&r2=236912
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Wed Dec 30 15:18:20 2009
@@ -1760,8 +1760,8 @@
 	enum sip_cc_notify_state state;
 	const char *state_string;
 } sip_cc_notify_state_map [] = {
-	{CC_QUEUED, "state: queued"},
-	{CC_READY, "state: ready"},
+	{CC_QUEUED, "cc-state: queued"},
+	{CC_READY, "cc-state: ready"},
 };
 
 struct cc_epa_entry {
@@ -12986,7 +12986,7 @@
 	add_header(&req, "Content-Type", "application/call-completion");
 	if (state == CC_READY) {
 		generate_uri(subscription, agent_pvt->notify_uri, sizeof(agent_pvt->notify_uri));
-		snprintf(uri, sizeof(uri) - 1, "cc-uri: %s", agent_pvt->notify_uri);
+		snprintf(uri, sizeof(uri) - 1, "cc-URI: %s", agent_pvt->notify_uri);
 	}
 	add_header_contentLength(&req, strlen(state_str) + 
 			(state == CC_READY ? strlen(uri) : 0));
@@ -21339,7 +21339,7 @@
 {
 	struct sip_monitor_instance *monitor_instance = ao2_callback(sip_monitor_instances, 0,
 			find_sip_monitor_instance_by_subscription_pvt, pvt);
-	const char *status = get_body(req, "status", ':');
+	const char *status = get_body(req, "cc-state", ':');
 	char *uri;
 
 	if (!monitor_instance) {
@@ -21365,7 +21365,7 @@
 	}
 
 	/* It's open! Yay! */
-	uri = get_body(req, "URI", ':');
+	uri = get_body(req, "cc-URI", ':');
 	if (ast_strlen_zero(uri)) {
 		uri = get_in_brackets((char *)get_header(req, "From"));
 	}




More information about the asterisk-commits mailing list