From: Anthony Minessale Date: Wed, 7 Aug 2013 15:59:08 +0000 (+0500) Subject: FS-5665 --resolve this should push the extra ones into the variable and convert it... X-Git-Tag: v1.4.1~18^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11d6c0877aed8d56557c068e5c17435f873e75e0;p=thirdparty%2Ffreeswitch.git FS-5665 --resolve this should push the extra ones into the variable and convert it to an array --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index c9c09b233e..da0cd3deac 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -8496,7 +8496,18 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia if (call_info->ci_params && (msg_params_find(call_info->ci_params, "answer-after=0"))) { switch_channel_set_variable(channel, "sip_auto_answer_detected", "true"); } + switch_channel_set_variable(channel, "sip_call_info", call_info_str); + + call_info = call_info->ci_next; + + while (call_info) { + call_info_str = sip_header_as_string(nh->nh_home, (void *) call_info); + switch_channel_add_variable_var_check(channel, "sip_call_info", call_info_str, SWITCH_FALSE, SWITCH_STACK_PUSH); + call_info = call_info->ci_next; + } + + } else if (sofia_test_pflag(profile, PFLAG_MANAGE_SHARED_APPEARANCE)) { char buf[128] = ""; char *sql;