[OpenSIPS-Users] [NEW] SDP codec manipulation feature

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Jul 28 09:53:15 CEST 2009


Hi Jeff,

Only in 1.6, as this is a new piece of code and only fixes are 
backported to stable 1.5.

Regards,
Bogdan

Jeff Pyle wrote:
> Rockstar!  Is this available in 1.5 as well, or just 1.6?
>
>
> - Jeff
>
>
>
> On 7/23/09 5:46 AM, "andrei dragus" <andreidragus at yahoo.com> wrote:
>
>   
>> Hello,
>>
>> Methods have been added for SDP codec manipulation in the textops module.
>> Please update your module if you wish to use them.
>>
>> There are 4 methods:
>>   codec_exists(name[,clock]); //test if a codec exists
>>   codec_delete(name[,clock]); //delete a codec
>>   codec_move_up(name[,clock]); //move a codec to the front of the list
>>   codec_move_down(name[,clock]);//move a codec to the back of the list
>>
>> Each of them can take a codec name and an optional clock parameter. If the
>> clock is unspecified all of the codecs with that name will match.
>>
>> All of the methods will act on all streams from all sessions inside the SDP.
>>
>> You can use these methods one after another to get a desired effect.
>> E.g. To make GSM the least prefered codec but GSM/8000 the most prefered of
>> all GSM codecs use:
>>
>> codec_move_up("GSM","8000");
>> codec_move_down("GSM");
>>
>> Once a codec was deleted it will not be detected by codec_exists().
>>
>> Feel free to test these methods and please report any bugs you may find.
>>
>> Thanks,
>> Andrei.
>>
>>
>>
>>
>>
>>       
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>     
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the Users mailing list