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

Author: Václav Kubart <[email protected]>
Committer: Václav Kubart <[email protected]>
Date:   Mon Apr 23 11:25:20 2012 +0200

b/f: SDP - connection address in media stream printed correctly

---

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

diff --git a/core/AmSdp.cpp b/core/AmSdp.cpp
index b25459c..7165242 100644
--- a/core/AmSdp.cpp
+++ b/core/AmSdp.cpp
@@ -265,8 +265,6 @@ void AmSdp::print(string& body) const
          pl_it != media_it->payloads.end(); pl_it++) {
 
          out_buf += " " + int2str(pl_it->payload_type);
-         if (!media_it->conn.address.empty())
-           options += "c=IN IP4 "+media_it->conn.address+"\r\n";
 
          // "a=rtpmap:" line
          if (!pl_it->encoding_name.empty()) {
@@ -288,6 +286,9 @@ void AmSdp::print(string& body) const
          
       }
 
+      if (!media_it->conn.address.empty())
+        out_buf += "\r\nc=IN IP4 "+media_it->conn.address;
+
       out_buf += "\r\n" + options;
 
       switch(media_it->dir){

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

Reply via email to