The priority of the codecs is given by their ordering on the “m=audio” line. PCMU is “0” and you can see in the after SDP that “0” has been moved to the front of the list.
The ordering of the “a=rtpmap” lines is not important and does not indicate the preferred codec order. Ben Newlin From: <users-boun...@lists.opensips.org> on behalf of Jim DeVito <j...@devito.cc> Reply-To: "j...@devito.cc" <j...@devito.cc>, OpenSIPS Users Mailling List <users@lists.opensips.org> Date: Monday, September 19, 2016 at 10:57 AM To: OpenSIPS Users Mailling List <users@lists.opensips.org> Subject: [OpenSIPS-Users] sipmsgops and codec_move_up Hi All. Just wondering if I am missing something here. using codec_move_up() to rearrange the offered codecs in the SDP. Here is what I have... ... codec_move_up("PCMU"); ... However the offered codecs are never re-arranged. Before... m=audio 12002 RTP/AVP 18 0 101 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:0 PCMU/8000 And After... m=audio 12002 RTP/AVP 0 18 101 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:0 PCMU/8000 If I use codec_delete("G729") it works fine. -- Jim DeVito _______________________________________________ Users mailing list Users@lists.opensips.org<mailto:Users@lists.opensips.org> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users