[OpenSIPS-Users] check_source_address()

Mark Farmer farmorg at gmail.com
Tue Apr 23 07:10:36 EDT 2019


Hi everyone,

I'm seeing some odd behaviour in tha initial requests are allowed but
RE-INVITES are resulting in 403. From my logging I can see the INVITE
coming in so I think it must be matching. Why would it not obey and route
the request?

This is the bit of my request route that identifies the source:

if (check_source_address("1","$avp(trunk_attrs)")) {
                # request comes from trunks
                xlog ("MF - $rm FROM $avp(trunk_attrs)");
                setflag(IS_TRUNK);
        } else {
                send_reply("403","Forbidden");
                exit;
        }

Many thanks
Mark.

-- 
Mark Farmer
farmorg at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190423/f09fbcb5/attachment.html>


More information about the Users mailing list