[Freeswitch-trunk] [commit] r13621 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/soa
FreeSWITCH SVN
mikej at freeswitch.org
Thu Jun 4 14:11:30 PDT 2009
Author: mikej
Date: Thu Jun 4 16:11:29 2009
New Revision: 13621
Log:
use addres, id, and version from user sdp if they exist
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/soa/soa_static.c
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Thu Jun 4 16:11:29 2009
@@ -1 +1 @@
-Mon Jun 1 17:51:14 CDT 2009
+Thu Jun 4 16:10:50 CDT 2009
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/soa/soa_static.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/soa/soa_static.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/soa/soa_static.c Thu Jun 4 16:11:29 2009
@@ -1291,6 +1291,17 @@
if (user->sdp_origin)
o->o_username = user->sdp_origin->o_username;
+ if (user->sdp_origin->o_address)
+ o->o_address = user->sdp_origin->o_address;
+
+ if (user->sdp_origin->o_id)
+ o->o_id = user->sdp_origin->o_id;
+
+ if (user->sdp_origin->o_version && user->sdp_origin->o_version != o->o_version) {
+ o->o_version = user->sdp_origin->o_version;
+ o->o_version--;
+ }
+
if (soa_init_sdp_origin_with_session(ss, o, c0_buffer, local) < 0) {
phrase = "Cannot Get IP Address for Session Description";
goto internal_error;
More information about the Freeswitch-trunk
mailing list