Module: sems Branch: master Commit: 6ff5206451bdce08a875ad30cbdc8d68d4d8612a URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=6ff5206451bdce08a875ad30cbdc8d68d4d8612a
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Tue Aug 16 18:47:51 2011 +0200 b/f: only print rtpmap line if encoding name set --- core/AmSdp.cpp | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/AmSdp.cpp b/core/AmSdp.cpp index 900fc05..e273873 100644 --- a/core/AmSdp.cpp +++ b/core/AmSdp.cpp @@ -174,14 +174,16 @@ void AmSdp::print(string& body) const out_buf += " " + int2str(pl_it->payload_type); // "a=rtpmap:" line - options += "a=rtpmap:" + int2str(pl_it->payload_type) + " " + if (!pl_it->encoding_name.empty()) { + options += "a=rtpmap:" + int2str(pl_it->payload_type) + " " + pl_it->encoding_name + "/" + int2str(pl_it->clock_rate); - if(pl_it->encoding_param > 0){ + if(pl_it->encoding_param > 0){ options += "/" + int2str(pl_it->encoding_param); - } + } - options += "\r\n"; + options += "\r\n"; + } // "a=fmtp:" line if(pl_it->sdp_format_parameters.size()){ _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
