提交 818f8521 authored 作者: Anthony Minessale's avatar Anthony Minessale

don't choose 0 port for proxy mode

上级 0ca2c2b0
...@@ -1541,7 +1541,11 @@ switch_status_t sofia_glue_tech_proxy_remote_addr(private_object_t *tech_pvt, co ...@@ -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))) { 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))) { if ((p = (char *) switch_stristr("m=video ", sdp_str))) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论