Module: sems Branch: master Commit: fbc798a58aea8ac80cec82b165d7595ba2bdc546 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=fbc798a58aea8ac80cec82b165d7595ba2bdc546
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Tue Apr 24 11:06:05 2012 +0200 b/f: do not use SEMS' payload IDs for dynamic payloads Those payload IDs could collide with those from the B-leg. --- apps/sbc/SBCCallProfile.cpp | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/sbc/SBCCallProfile.cpp b/apps/sbc/SBCCallProfile.cpp index 0514a52..218af58 100644 --- a/apps/sbc/SBCCallProfile.cpp +++ b/apps/sbc/SBCCallProfile.cpp @@ -805,8 +805,11 @@ static bool read(const std::string &src, vector<SdpPayload> &codecs) p.encoding_name.c_str(), p.clock_rate); } else { - p.int_pt = payload_id; - p.payload_type = payload->payload_id; + if(payload_id < DYNAMIC_PAYLOAD_TYPE_START) + p.payload_type = payload->payload_id; + else + p.payload_type = -1; + codecs.push_back(p); } } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
