提交 f1b45f57 authored 作者: Brian West's avatar Brian West

use const here as per tip from Sir MikeJ

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7021 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 237ff68d
...@@ -667,7 +667,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * ...@@ -667,7 +667,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
const char *state = switch_str_nil(switch_event_get_header(helper->event, "channel-state")); 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 *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")); 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; const char *dft_state;
SWITCH_STANDARD_STREAM(stream); SWITCH_STANDARD_STREAM(stream);
...@@ -753,6 +753,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * ...@@ -753,6 +753,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
stream.write_function(&stream, "</dialog-info>\n"); stream.write_function(&stream, "</dialog-info>\n");
pl = stream.data; pl = stream.data;
ct = "application/dialog-info+xml"; ct = "application/dialog-info+xml";
if (astate && uuid && helper->stream.data) { if (astate && uuid && helper->stream.data) {
stream.write_function(&helper->stream, "update sip_dialogs set state='%s' where uuid='%s';\n", astate, uuid); stream.write_function(&helper->stream, "update sip_dialogs set state='%s' where uuid='%s';\n", astate, uuid);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论