[asterisk-commits] mmichelson: branch group/CCSS r236980 - /team/group/CCSS/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 30 15:34:01 CST 2009
Author: mmichelson
Date: Wed Dec 30 15:33:59 2009
New Revision: 236980
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=236980
Log:
Add appropriate \r\n for body lines in CC NOTIFY messages
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=236980&r1=236979&r2=236980
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Wed Dec 30 15:33:59 2009
@@ -1760,8 +1760,8 @@
enum sip_cc_notify_state state;
const char *state_string;
} sip_cc_notify_state_map [] = {
- {CC_QUEUED, "cc-state: queued"},
- {CC_READY, "cc-state: ready"},
+ {CC_QUEUED, "cc-state: queued\r\n"},
+ {CC_READY, "cc-state: ready\r\n"},
};
struct cc_epa_entry {
@@ -12969,7 +12969,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\r\n", agent_pvt->notify_uri);
}
add_header_contentLength(&req, strlen(state_str) +
(state == CC_READY ? strlen(uri) : 0));
More information about the asterisk-commits
mailing list