Module: sems
Branch: sayer/sbc_rtp_relay
Commit: 4ba441e00a9802cc0fa6c7e905e0998b9afa055b
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=4ba441e00a9802cc0fa6c7e905e0998b9afa055b

Author: Raphael Coeffic <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Wed Feb 16 13:00:25 2011 +0100

b/f: set rtp_interface correctly on RTP stream creation.

---

 core/AmSession.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/core/AmSession.h b/core/AmSession.h
index 2b86cc4..d5b69b7 100644
--- a/core/AmSession.h
+++ b/core/AmSession.h
@@ -620,6 +620,8 @@ inline AmRtpAudio* AmSession::RTPStream() {
   if (NULL == _rtp_str.get()) {
     DBG("creating RTP stream instance for session [%p]\n", 
        this);
+    if(rtp_interface < 0)
+      rtp_interface = dlg.getOutboundIf();
     _rtp_str.reset(new AmRtpAudio(this,rtp_interface));
   }
   return _rtp_str.get();

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to