[OpenSIPS-Users] Reject unsupported codec?

solarmon solarmon at one-n.co.uk
Thu Jan 7 17:14:00 EST 2021


Hi Bogdan,

That pointed me in the right direction and I'm able to reject calls. I
ended up using codec_exists_re()

Thank you!

On Thu, 7 Jan 2021 at 16:37, Bogdan-Andrei Iancu <bogdan at opensips.org>
wrote:

> Hi,
>
> See the codec checking related functions here ->
> https://opensips.org/html/docs/modules/2.4.x/sipmsgops.html#func_codec_exists
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS Bootcamp 2020 online
>   https://opensips.org/training/OpenSIPS_eBootcamp_2020/
>
> On 1/7/21 6:33 PM, solarmon wrote:
>
> Hi,
>
> On opensips 2.4.x how would I best check what codec is being offered, and
> reject the call if it ONLY offers a codec that is not supported by us. For
> example, if we only want to support G.711 PCMA/PCMU.
>
> Thank you.
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210107/810d2048/attachment.html>


More information about the Users mailing list