From 8322f36d8860461be2d31a676e5b11de71c0cda2 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Wed, 16 Feb 2011 13:00:25 +0100 Subject: [PATCH] b/f: set rtp_interface correctly on RTP stream creation. --- core/AmSession.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/AmSession.h b/core/AmSession.h index 2b86cc42..d5b69b77 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();