]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5665 --resolve this should push the extra ones into the variable and convert it...
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 7 Aug 2013 15:59:08 +0000 (20:59 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 7 Aug 2013 15:59:08 +0000 (20:59 +0500)
src/mod/endpoints/mod_sofia/sofia.c

index c9c09b233efe30bf4a3ed869a85ee76b5191f965..da0cd3deac2a45bc6138630f64e25e31ebbb3325 100644 (file)
@@ -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;