[OpenSIPS-Users] sipmsgops and codec_move_up
Newlin, Ben
Ben.Newlin at inin.com
Mon Sep 19 17:08:43 CEST 2016
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-bounces at lists.opensips.org> on behalf of Jim DeVito <jim at devito.cc>
Reply-To: "jim at devito.cc" <jim at devito.cc>, OpenSIPS Users Mailling List <users at lists.opensips.org>
Date: Monday, September 19, 2016 at 10:57 AM
To: OpenSIPS Users Mailling List <users at 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 at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160919/6a3959e9/attachment.htm>
More information about the Users
mailing list