[OpenSIPS-Users] codec_delete_except_re SDP Corruption

Kneeoh kneeoh at yahoo.com
Wed Mar 5 19:58:19 CET 2014


Sure, I'll get that for you. I've got some additional data that may answer your question. The problem seems to occur when the codec being removed is at the end of the SDP offer. So you'll get something like

0 18 101 19 in the media description line and 19 is the one you remove. It leaves the space after the 101, which is causing the problem.



On Wednesday, March 5, 2014 12:57 PM, Bogdan-Andrei Iancu <bogdan at opensips.org> wrote:
Hello,

Is the codec deletion the only change you do over the SDP (codec related) ?

What opensips version are you using ?  Also, could you post (privately 
is needed) the exact original and modified SDP ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 28.02.2014 23:09, Kneeoh wrote:
> I am using the codec codec_delete_except_re function to remove unwanted codecs:
>
> codec_delete_except_re("PCMU|G729|telephone-event");
>
> Apparently it is placing or leaving a space (hex 20) at the end of the media description line if the codec at the end of the description is removed by this function. Which I'm told is not syntactically correct.
>
> The net result is that upstream vendors 488 the calls on which codecs are removed and have this space at the end of the media description line.
>
>
> Has anyone else encountered this issue and resolved it?
>
> Thanks in advance
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

>
>



More information about the Users mailing list