Module: sems
Branch: master
Commit: 8322f36d8860461be2d31a676e5b11de71c0cda2
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=8322f36d8860461be2d31a676e5b11de71c0cda2

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[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