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

This commit is contained in:
Mike Jerris 2018-11-06 20:56:11 +00:00
parent c854466ed2
commit da49b042ba
1 changed files with 1 additions and 1 deletions

View File

@ -4945,7 +4945,7 @@ void sofia_presence_handle_sip_i_message(int status,
first_history_info = 0;
} else {
/* 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)) {
char *tmp_str;
if ((tmp_str = switch_mprintf("%s, %s", history_var, un->un_value))) {