From a01032f639e6b9b42d7ca562a1aa0e9c7d5974a7 Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 25 Feb 2009 20:33:18 +0000 Subject: [PATCH] I realized I can't break backwards compat so if you set sip_invite_params it will be used on to and ruri as before but you can override the to params with sip_invite_to_params to make it be different if you want git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12288 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index d049517ef4..9ff368338e 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -1258,7 +1258,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); 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); + to_str = sofia_overcome_sip_uri_weakness(session, tech_pvt->dest_to, 0, SWITCH_FALSE, invite_to_params ? invite_to_params : invite_params); /*