[OpenSIPS-Users] sipmsgops and codec_move_up

Jim DeVito jim at devito.cc
Mon Sep 19 17:12:33 CEST 2016


Thanks Ben! Learned something new.

---
Jim DeVito

On 2016-09-19 08:08, Newlin, Ben wrote:
> 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
> 
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users [1]
> 
> 
> 
> Links:
> ------
> [1] http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list