fix transport= tag on re-invite (FSCORE-113)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8067 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2008-04-09 19:16:14 +00:00
parent 646232c049
commit d81ad8d01e
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -952,7 +952,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
* Ignore transport chanvar and uri parameter for gateway connections
* since all of them have been already taken care of in mod_sofia.c:sofia_outgoing_channel()
*/
if (switch_strlen_zero(tech_pvt->gateway_name)) {
if (tech_pvt->transport == SOFIA_TRANSPORT_UNKNOWN && switch_strlen_zero(tech_pvt->gateway_name)) {
if ((p = (char *)switch_stristr("port=", url))) {
p += 5;
tech_pvt->transport = sofia_glue_str2transport( p );