[Freeswitch-svn] [commit] r7021 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
brian at freeswitch.org
Sat Dec 29 13:30:48 EST 2007
Author: brian
Date: Sat Dec 29 13:30:48 2007
New Revision: 7021
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
Log:
use const here as per tip from Sir MikeJ
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c Sat Dec 29 13:30:48 2007
@@ -667,7 +667,7 @@
const char *state = switch_str_nil(switch_event_get_header(helper->event, "channel-state"));
const char *event_status = switch_str_nil(switch_event_get_header(helper->event, "status"));
const char *astate = switch_str_nil(switch_event_get_header(helper->event, "astate"));
- char *answer_state = switch_str_nil(switch_event_get_header(helper->event, "answer-state"));
+ const char *answer_state = switch_str_nil(switch_event_get_header(helper->event, "answer-state"));
const char *dft_state;
SWITCH_STANDARD_STREAM(stream);
@@ -753,6 +753,7 @@
stream.write_function(&stream, "</dialog-info>\n");
pl = stream.data;
+
ct = "application/dialog-info+xml";
if (astate && uuid && helper->stream.data) {
stream.write_function(&helper->stream, "update sip_dialogs set state='%s' where uuid='%s';\n", astate, uuid);
More information about the Freeswitch-svn
mailing list