]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add sip_copy_multipart to work like sip_copy_custom_headers
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 1 Jun 2010 22:22:45 +0000 (17:22 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 1 Jun 2010 22:22:45 +0000 (17:22 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.c
src/mod/endpoints/mod_sofia/mod_sofia.h

index 6478af9b3ae984925ac759c49c41dcee13713acc..923230209bcab3bb36760bbcdc8417e6f9d7ee56 100644 (file)
@@ -3845,6 +3845,10 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
                if (!(vval = switch_channel_get_variable(o_channel, "sip_copy_custom_headers")) || switch_true(vval)) {
                        switch_ivr_transfer_variable(session, nsession, SOFIA_SIP_HEADER_PREFIX_T);
                }
+
+               if (!(vval = switch_channel_get_variable(o_channel, "sip_copy_multipart")) || switch_true(vval)) {
+                       switch_ivr_transfer_variable(session, nsession, SOFIA_MULTIPART_PREFIX_T);
+               }
                switch_ivr_transfer_variable(session, nsession, "sip_video_fmtp");
                switch_ivr_transfer_variable(session, nsession, "sip-force-contact");
                switch_ivr_transfer_variable(session, nsession, "sip_sticky_contact");
index 1de46e97d6dd40882e945cb39ba8043a6c71cc97..bd39146039db7ee83fc6cedb5c86f0cd658a8b24 100644 (file)
@@ -89,6 +89,7 @@ typedef struct private_object private_object_t;
 #define SOFIA_USER_AGENT "FreeSWITCH-mod_sofia/" SWITCH_VERSION_MAJOR "." SWITCH_VERSION_MINOR "." SWITCH_VERSION_MICRO "-" SWITCH_VERSION_REVISION
 #define SOFIA_CHAT_PROTO "sip"
 #define SOFIA_MULTIPART_PREFIX "sip_mp_"
+#define SOFIA_MULTIPART_PREFIX_T "~sip_mp_"
 #define SOFIA_SIP_HEADER_PREFIX "sip_h_"
 #define SOFIA_SIP_RESPONSE_HEADER_PREFIX "sip_rh_"
 #define SOFIA_SIP_BYE_HEADER_PREFIX "sip_bye_h_"