Module: sems Branch: master Commit: b96d7b5ad22b2db43fe8f25a791de64ab4a14f0b URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=b96d7b5ad22b2db43fe8f25a791de64ab4a14f0b
Author: Václav Kubart <[email protected]> Committer: Václav Kubart <[email protected]> Date: Thu May 3 17:18:39 2012 +0200 b/f: allow empty connection address at session level --- core/AmRtpStream.cpp | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/AmRtpStream.cpp b/core/AmRtpStream.cpp index 32564a5..87a7fe4 100644 --- a/core/AmRtpStream.cpp +++ b/core/AmRtpStream.cpp @@ -623,9 +623,11 @@ int AmRtpStream::init(const AmSdp& local, ++sdp_it; } - setLocalIP(local.conn.address); + if (local.conn.address.empty()) setLocalIP(local_media.conn.address); + else setLocalIP(local.conn.address); setPassiveMode(remote_media.dir == SdpMedia::DirActive); - setRAddr(remote.conn.address, remote_media.port); + if (remote.conn.address.empty()) setRAddr(remote_media.conn.address, remote_media.port); + else setRAddr(remote.conn.address, remote_media.port); if(local_media.payloads.empty()) { _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
