From da49b042ba3d83e9d71241515e0eafeb6e5780a1 Mon Sep 17 00:00:00 2001 From: Mike Jerris Date: Tue, 6 Nov 2018 20:56:11 +0000 Subject: [PATCH] FS-11506: [mod_sofia] Handle multiple History-Info headers in MESSAGE --- src/mod/endpoints/mod_sofia/sofia_presence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index d04fb02533..767ec8c8e0 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -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))) {