提交 75145c9d authored 作者: Brian West's avatar Brian West

Merge branch 'master' of git.freeswitch.org:freeswitch

...@@ -1317,11 +1317,16 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * ...@@ -1317,11 +1317,16 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
} }
if (is_dialog) { if (is_dialog) {
char *version = switch_event_get_header(helper->event, "event_count");
if (!version) {
version = "0";
}
stream.write_function(&stream, stream.write_function(&stream,
"<?xml version=\"1.0\"?>\n" "<?xml version=\"1.0\"?>\n"
"<dialog-info xmlns=\"urn:ietf:params:xml:ns:dialog-info\" " "<dialog-info xmlns=\"urn:ietf:params:xml:ns:dialog-info\" "
"version=\"%s\" state=\"%s\" entity=\"%s\">\n", "version=\"%s\" state=\"%s\" entity=\"%s\">\n",
switch_str_nil(switch_event_get_header(helper->event, "event_count")), version,
!strcasecmp(answer_state, "resubscribe") ? "partial" : "full", clean_id); !strcasecmp(answer_state, "resubscribe") ? "partial" : "full", clean_id);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论