<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Thanks for replying!<div><br></div><div>Yes I have </div><div><br></div><div><div><font face="monospace, monospace"> children=2</font></div><div><font face="monospace, monospace"> listen=udp:<a href="http://10.10.0.209:5060">10.10.0.209:5060</a><br></font></div><div><font face="monospace, monospace"> listen=udp:</font><span style="font-family:monospace,monospace">MY_PUBLIC_IP</span><font face="monospace, monospace">:5060</font><br></div><div><br></div></div><div>tried:</div><div><br></div><div><div> <font face="monospace, monospace"> # This will check if the TO user is a office user</font></div><div><font face="monospace, monospace"> if (avp_db_load("$to", "$avp(gsmoffice")) {</font></div><div><font face="monospace, monospace"> if ( $avp(office)==1 ) {</font></div><div><font face="monospace, monospace"> xlog("L_ERR","[REQUEST_ROUTE]: [$rm] callid: $ci Call from=$fU to=$tU is a Office USER ($avp(office)) - Appending branch\n");</font></div><div><font face="monospace, monospace"> #append_branch("sip:$<a href="http://tU@1.2.3.4:5060">tU@1.2.3.4:5060</a>");</font></div><div><font face="monospace, monospace"> $fs = 'udp:MY_PUBLIC_IP:5060';</font></div><div><font face="monospace, monospace"> }</font></div><div><font face="monospace, monospace"> }</font></div><div><br></div><div>But no INVITE is ever sent out... with force_send_socket it would only use the private...</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 8, 2018 at 1:31 AM Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
1. force_send_socket() is essentially deprecated in favour of mutating<br>
$fs:<br>
<br>
$fs = 'udp:<a href="http://67.215.186.219:5060" rel="noreferrer" target="_blank">67.215.186.219:5060</a>';<br>
<br>
2. Do you have an exact matching[1] listener for this outgoing<br>
interface?<br>
<br>
[1] Transport, IP, port.<br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) <br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><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>