make proxy mode pull the port from m=image as well
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9650 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
93ff90696b
commit
036aac91c2
|
@ -806,6 +806,10 @@ switch_status_t sofia_glue_tech_proxy_remote_addr(private_object_t *tech_pvt)
|
|||
port_ptr = p + 8;
|
||||
}
|
||||
|
||||
if ((p = (char *) switch_stristr("m=image ", tech_pvt->remote_sdp_str))) {
|
||||
port_ptr = p + 8;
|
||||
}
|
||||
|
||||
if ((p = (char *) switch_stristr("m=video ", tech_pvt->remote_sdp_str))) {
|
||||
vid_port_ptr = p + 8;
|
||||
}
|
||||
|
@ -945,7 +949,7 @@ void sofia_glue_tech_patch_sdp(private_object_t *tech_pvt)
|
|||
|
||||
has_ip++;
|
||||
|
||||
} else if (!strncmp("m=audio ", p, 8)) {
|
||||
} else if (!strncmp("m=audio ", p, 8) || (!strncmp("m=image ", p, 8))) {
|
||||
strncpy(q,p,8);
|
||||
p += 8;
|
||||
q += 8;
|
||||
|
|
Loading…
Reference in New Issue