Module: sems Branch: master Commit: 99d18df626e40af9e32e65d676c3aadb6e7600e5 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=99d18df626e40af9e32e65d676c3aadb6e7600e5
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Tue Dec 13 17:08:37 2011 +0100 avoid to print any attributes of dummy payloads for disabled streams. --- core/AmSession.cpp | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/AmSession.cpp b/core/AmSession.cpp index bc06a98..170759b 100644 --- a/core/AmSession.cpp +++ b/core/AmSession.cpp @@ -1016,8 +1016,12 @@ bool AmSession::getSdpAnswer(const AmSdp& offer, AmSdp& answer) answer_media.send = false; answer_media.recv = false; answer_media.payloads.clear(); - if(!m_it->payloads.empty()) - answer_media.payloads.push_back(m_it->payloads.front()); + if(!m_it->payloads.empty()) { + SdpPayload dummy_pl = m_it->payloads.front(); + dummy_pl.encoding_name.clear(); + dummy_pl.sdp_format_parameters.clear(); + answer_media.payloads.push_back(dummy_pl); + } answer_media.attributes.clear(); } } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
