mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FS-11506: [mod_sofia] Handle multiple History-Info headers in MESSAGE
This commit is contained in:
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user