[asterisk-commits] mmichelson: branch group/CCSS r248090 - /team/group/CCSS/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Feb 19 13:46:32 CST 2010
Author: mmichelson
Date: Fri Feb 19 13:46:28 2010
New Revision: 248090
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=248090
Log:
Some formatting changes for SIP CC NOTIFY states.
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=248090&r1=248089&r2=248090
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Fri Feb 19 13:46:28 2010
@@ -969,8 +969,8 @@
enum sip_cc_notify_state state;
const char *state_string;
} sip_cc_notify_state_map [] = {
- {CC_QUEUED, "cc-state: queued\r\n"},
- {CC_READY, "cc-state: ready\r\n"},
+ [CC_QUEUED] = {CC_QUEUED, "cc-state: queued"},
+ [CC_READY] = {CC_READY, "cc-state: ready"},
};
struct cc_epa_entry {
@@ -11310,7 +11310,7 @@
}
reqprep(&req, subscription, SIP_NOTIFY, 0, TRUE);
- ast_copy_string(state_str, sip_cc_notify_state_map[state].state_string, sizeof(state_str));
+ snprintf(state_str, sizeof(state_str), "%s\r\n", sip_cc_notify_state_map[state].state_string);
add_header(&req, "Event", "call-completion");
add_header(&req, "Content-Type", "application/call-completion");
if (state == CC_READY) {
More information about the asterisk-commits
mailing list