<div dir="ltr">My issue is that I need regarding to direction add record-route or remove it </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">czw., 12 wrz 2019 o 09:22 Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 11.09.19 22:53, Alex Balashov wrote:<br>
> This is a question of your own business rules. <br>
><br>
> The most common way to do it is to use something like the 'permissions'<br>
> module. Build a 'trusted' table with all your Asterisk gateway IPs, and<br>
> then do the following when you receive an initial INVITE:<br>
<br>
Just a remark: if it is about matching on IP address (subnet address),<br>
it is better to use address table with allow_source_address() instead of<br>
trusted table with allow trusted -- it is from the same permission module.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
><br>
>    if(allow_trusted()) {<br>
>       # Must be from platform gateways to customer - treat as<br>
>       # "inbound".<br>
><br>
>       ...<br>
>    } else {<br>
>       # Do authentication challenge and treat as "outbound"<br>
>       # from customer softphone.<br>
><br>
>       ...<br>
>    }<br>
><br>
> -- Alex<br>
><br>
> On Wed, Sep 11, 2019 at 10:46:49PM +0200, przeqpiciel wrote:<br>
><br>
>> Hi,<br>
>> I looking information how to distinguish whether the packet is directed to<br>
>> the Astersik (my platform) or to the customer (softphone / sip client ).<br>
>> _______________________________________________<br>
>> Kamailio (SER) - Users Mailing List<br>
>> <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
>> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
-- <br>
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a><br>
<a href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">www.linkedin.com/in/miconda</a><br>
Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- <a href="https://asipto.com/u/kat" rel="noreferrer" target="_blank">https://asipto.com/u/kat</a><br>
<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>