This is a question of your own business rules.
The most common way to do it is to use something like the 'permissions' module. Build a 'trusted' table with all your Asterisk gateway IPs, and then do the following when you receive an initial INVITE:
if(allow_trusted()) { # Must be from platform gateways to customer - treat as # "inbound".
... } else { # Do authentication challenge and treat as "outbound" # from customer softphone.
... }
-- Alex
On Wed, Sep 11, 2019 at 10:46:49PM +0200, przeqpiciel wrote:
Hi, I looking information how to distinguish whether the packet is directed to the Astersik (my platform) or to the customer (softphone / sip client ).
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users