mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 15:14:17 +00:00
don't choose 0 port for proxy mode
This commit is contained in:
1 parent
0ca2c2b0e7
commit
818f8521e0
1 file changed
+5
-1
@@ -1541,7 +1541,11 @@ switch_status_t sofia_glue_tech_proxy_remote_addr(private_object_t *tech_pvt, co
|
||||
}
|
||||
|
||||
if ((p = (char *) switch_stristr("m=image ", sdp_str))) {
|
||||
port_ptr = p + 8;
|
||||
char *tmp = p + 8;
|
||||
|
||||
if (tmp && atoi(tmp)) {
|
||||
port_ptr = tmp;
|
||||
}
|
||||
}
|
||||
|
||||
if ((p = (char *) switch_stristr("m=video ", sdp_str))) {
|
||||
|
||||
Reference in new issue
Block a user