<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>can you explain a bit more what you want to achieve? Usually the record-route handling is just done automatically by the rr and the record_route()/loose_route() functions.</p>
<p>Cheers,</p>
<p>Henning<br>
</p>
<div class="moz-cite-prefix">Am 12.09.19 um 18:03 schrieb przeqpiciel:<br>
</div>
<blockquote type="cite" cite="mid:CADgxv4oqRqQyRNRX_NvRGgJCVMcxnYYR34cYwXja9FFndckfrg@mail.gmail.com">
<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" moz-do-not-send="true">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" moz-do-not-send="true">
sr-users@lists.kamailio.org</a><br>
>> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank" moz-do-not-send="true">
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" moz-do-not-send="true">
www.asipto.com</a><br>
<a href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> --
<a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank" moz-do-not-send="true">
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" moz-do-not-send="true">
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" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">-- 
Kamailio Merchandising - <a class="moz-txt-link-freetext" href="https://skalatan.de/merchandising/">https://skalatan.de/merchandising/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services">https://skalatan.de/services</a>
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a></pre>
</body>
</html>