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

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Fri Nov  5 12:42:57 2010 +0100

b/f: no rtpmap line if no encoding name given

---

 core/AmSdp.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/core/AmSdp.cpp b/core/AmSdp.cpp
index cbac63b..97df11f 100644
--- a/core/AmSdp.cpp
+++ b/core/AmSdp.cpp
@@ -193,7 +193,10 @@ void AmSdp::print(string& body) const
 
          out_buf += " " + int2str(pl_it->payload_type);
 
-         // "a=rtpmap:" line
+         if (pl_it->encoding_name.empty()) // don't add rtpmap if no encoding 
name given
+             continue;
+
+         // "a=rtpmap:" line     
          options += "a=rtpmap:" + int2str(pl_it->payload_type) + " " 
              + pl_it->encoding_name + "/" + int2str(pl_it->clock_rate);
 

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

Reply via email to