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

Author: Juha Heinanen <[email protected]>
Committer: Juha Heinanen <[email protected]>
Date:   Tue Mar 27 14:26:06 2012 +0300

core/AmRtpAudio: do not make offer if media type is not audio

- AmRtpAudio::getSdpOffer forced every media payload type of offer to
  audio. If sdp contains several media payload types, such as audio and
  video), forcing every media payload type to audio may result in more than
  one audio media payload type in outgoing sdp.  This patch causes offer
  to be made only in case media payload type is audio.

---

 core/AmRtpAudio.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/core/AmRtpAudio.cpp b/core/AmRtpAudio.cpp
index 37a9057..6e1ec3d 100644
--- a/core/AmRtpAudio.cpp
+++ b/core/AmRtpAudio.cpp
@@ -245,7 +245,7 @@ int AmRtpAudio::put(unsigned long long system_ts, unsigned 
char* buffer,
 
 void AmRtpAudio::getSdpOffer(unsigned int index, SdpMedia& offer)
 {
-  offer.type = MT_AUDIO;
+  if (offer.type != MT_AUDIO) return;
   AmRtpStream::getSdpOffer(index,offer);
 }
 

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

Reply via email to