Skip to content

Commit f3feb7a

Browse files
committed
解决sip-force-contact设置为NDLB-connectile-dysfunction-2.0的时候,sip客户端设置了transport=tcp,回拨分机不走tcp走UDP的问题
1 parent 0090834 commit f3feb7a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/mod/endpoints/mod_sofia/sofia_glue.c

+2-5
Original file line numberDiff line numberDiff line change
@@ -1273,11 +1273,8 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
12731273
* since all of them have been already taken care of in mod_sofia.c:sofia_outgoing_channel()
12741274
*/
12751275
if (tech_pvt->transport == SOFIA_TRANSPORT_UNKNOWN && zstr(tech_pvt->gateway_name)) {
1276-
if (dst && dst->route_uri) {
1277-
p = dst->route_uri;
1278-
} else {
1279-
p = url;
1280-
}
1276+
1277+
p = url;
12811278
if ((p = (char *) switch_stristr("port=", p))) {
12821279
p += 5;
12831280
tech_pvt->transport = sofia_glue_str2transport(p);

0 commit comments

Comments
 (0)