Module: sems Branch: master Commit: a8dcddbec63dabcaad3f20684bf59e3519758045 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=a8dcddbec63dabcaad3f20684bf59e3519758045
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Wed Mar 21 09:47:51 2012 +0100 b/f: do not print media level attributes twice. --- core/AmSdp.cpp | 22 ---------------------- 1 files changed, 0 insertions(+), 22 deletions(-) diff --git a/core/AmSdp.cpp b/core/AmSdp.cpp index ab775f5..b25459c 100644 --- a/core/AmSdp.cpp +++ b/core/AmSdp.cpp @@ -290,22 +290,6 @@ void AmSdp::print(string& body) const out_buf += "\r\n" + options; - options = ""; - - for (std::vector<SdpAttribute>::const_iterator a_it = media_it->attributes.begin(); - a_it != media_it->attributes.end(); a_it++) { - - if (a_it->value.empty()) { - options += "a=" + a_it->attribute; - } else { - options += "a=" + a_it->attribute + ":" + a_it->value; - } - options +="\r\n"; - } - - out_buf += options; - - switch(media_it->dir){ case SdpMedia::DirActive: out_buf += "a=direction:active\r\n"; @@ -342,14 +326,8 @@ void AmSdp::print(string& body) const } body = out_buf; - //mime_type = "application/sdp"; } -// bool AmSdp::hasTelephoneEvent() const -// { -// return telephoneEventPayload() != NULL; -// } - const SdpPayload* AmSdp::telephoneEventPayload() const { return findPayload("telephone-event"); _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
