Have you looked at comparing a header with a string? like;
if($hdr(Refer-To)=~"^011.*") { do something}
Have you also looked at how to reply? maybe something like:
sl_send_reply("603", "Decline");
then exiting further processing, like:
exit;
Then put it all together, and you got what you're looking for.
or maybe instead of replying with an error, just stop processing if these are attacks?
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Mon, Aug 14, 2023 at 3:41 AM David Cunningham dcunningham@voisonics.com wrote:
Hello,
We want to check if the number in a REFER's Refer-To header begins with 011, and if so reject the request as not allowed. What would be the most effective way to do that?
Thanks in advance,
-- David Cunningham, Voisonics Limited http://voisonics.com/ USA: +1 213 221 1092 New Zealand: +64 (0)28 2558 3782 __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: