]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Some little birdie said "what if we could add params to the contact that isn't a...
authorBrian West <brian@freeswitch.org>
Wed, 25 Feb 2009 23:07:45 +0000 (23:07 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 25 Feb 2009 23:07:45 +0000 (23:07 +0000)
/b

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12290 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 9ff368338ea86b713f44c9a5211cdfd8f0c6d771..4bc856c36761f5bb45cd7e864291805a51638028 100644 (file)
@@ -1168,6 +1168,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
                const char *screen = "no";
                const char *invite_params = switch_channel_get_variable(tech_pvt->channel, "sip_invite_params");
                const char *invite_to_params = switch_channel_get_variable(tech_pvt->channel, "sip_invite_to_params");
+               const char *invite_contact_params = switch_channel_get_variable(tech_pvt->channel, "sip_invite_contact_params");
                const char *invite_from_params = switch_channel_get_variable(tech_pvt->channel, "sip_invite_from_params");
                const char *from_var = switch_channel_get_variable(tech_pvt->channel, "sip_from_uri");
 
@@ -1256,7 +1257,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
                }
 
                url_str = sofia_overcome_sip_uri_weakness(session, url, tech_pvt->transport, SWITCH_TRUE, invite_params);
-               invite_contact = sofia_overcome_sip_uri_weakness(session, tech_pvt->invite_contact, tech_pvt->transport, SWITCH_FALSE, NULL);
+               invite_contact = sofia_overcome_sip_uri_weakness(session, tech_pvt->invite_contact, tech_pvt->transport, SWITCH_FALSE, invite_contact_params);
                from_str = sofia_overcome_sip_uri_weakness(session, use_from_str, 0, SWITCH_TRUE, invite_from_params);
                to_str = sofia_overcome_sip_uri_weakness(session, tech_pvt->dest_to, 0, SWITCH_FALSE, invite_to_params ? invite_to_params : invite_params);