提交 da49b042 authored 作者: Mike Jerris's avatar Mike Jerris

FS-11506: [mod_sofia] Handle multiple History-Info headers in MESSAGE

上级 c854466e
...@@ -4945,7 +4945,7 @@ void sofia_presence_handle_sip_i_message(int status, ...@@ -4945,7 +4945,7 @@ void sofia_presence_handle_sip_i_message(int status,
first_history_info = 0; first_history_info = 0;
} else { } else {
/* Append the History-Info into one long string */ /* Append the History-Info into one long string */
const char *history_var = switch_channel_get_variable(channel, "sip_history_info"); const char *history_var = switch_event_get_header(event, "sip_history_info");
if (!zstr(history_var)) { if (!zstr(history_var)) {
char *tmp_str; char *tmp_str;
if ((tmp_str = switch_mprintf("%s, %s", history_var, un->un_value))) { if ((tmp_str = switch_mprintf("%s, %s", history_var, un->un_value))) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论