<div dir="ltr">Hi Bogdan,<div><br></div><div>That pointed me in the right direction and I'm able to reject calls. I ended up using codec_exists_re()</div><div><br></div><div>Thank you! <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 7 Jan 2021 at 16:37, Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<tt>Hi,<br>
<br>
See the codec checking related functions here ->
<a href="https://opensips.org/html/docs/modules/2.4.x/sipmsgops.html#func_codec_exists" target="_blank">https://opensips.org/html/docs/modules/2.4.x/sipmsgops.html#func_codec_exists</a><br>
<br>
Regards,</tt><br>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 2020 online
<a href="https://opensips.org/training/OpenSIPS_eBootcamp_2020/" target="_blank">https://opensips.org/training/OpenSIPS_eBootcamp_2020/</a></pre>
<div>On 1/7/21 6:33 PM, solarmon wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi,<br>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Thank you.</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div>