mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-03 09:21:29 +00:00
FS-11506: [mod_sofia] Handle multiple History-Info headers in MESSAGE
This commit is contained in:
parent
c854466ed2
commit
da49b042ba
@ -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))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user