use addres, id, and version from user sdp if they exist

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13621 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-06-04 21:11:29 +00:00
parent ec2497b0c7
commit 0f13336971
2 changed files with 12 additions and 1 deletions

View File

@ -1 +1 @@
Mon Jun 1 17:51:14 CDT 2009
Thu Jun 4 16:10:50 CDT 2009

View File

@ -1291,6 +1291,17 @@ static int offer_answer_step(soa_session_t *ss,
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;