[SR-Users] How to distinguish is from Asterisk or from the client

Lợi Đặng loi.dangthanh at gmail.com
Thu Sep 12 05:19:44 CEST 2019


You may also want to consider dispatcher module's ds_is_from_list.
https://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.f.ds_is_from_list

rgds,
Loi Dang Thanh
Phone : +84. 774.735.448
Email : loi.dangthanh at gmail.com


On Thu, Sep 12, 2019 at 3:54 AM Alex Balashov <abalashov at evaristesys.com>
wrote:

> 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 at lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190912/a5eef8ee/attachment.html>


More information about the sr-users mailing list