[Freeswitch-svn] [commit] r9650 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
anthm at freeswitch.org
Thu Sep 25 16:59:09 EDT 2008
Author: anthm
Date: Thu Sep 25 16:59:09 2008
New Revision: 9650
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
Log:
make proxy mode pull the port from m=image as well
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c Thu Sep 25 16:59:09 2008
@@ -806,6 +806,10 @@
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 @@
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;
More information about the Freeswitch-svn
mailing list