Sorry, mispasted:
if (avp_db_load("$to", "$avp(office)")) {
if ( $avp(office)==1 ) {
xlog("L_ERR","[REQUEST_ROUTE]: [$rm] callid: $ci DAVID
Call from=$fU to=$tU is a Office USER ($avp(office)) - Appending branch\n");
append_branch("sip:$tU@1.2.3.4:5080");
$fs = 'udp:MY_PUBLIC_IP:5060';
}
}
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337
On Mon, Oct 8, 2018 at 1:55 AM David Villasmil <
david.villasmil.work(a)gmail.com> wrote:
Thanks for replying!
Yes I have
children=2
listen=udp:10.10.0.209:5060
listen=udp:MY_PUBLIC_IP:5060
tried:
# This will check if the TO user is a office user
if (avp_db_load("$to", "$avp(gsmoffice")) {
if ( $avp(office)==1 ) {
xlog("L_ERR","[REQUEST_ROUTE]: [$rm] callid: $ci Call
from=$fU to=$tU is a Office USER ($avp(office)) - Appending branch\n");
#append_branch("sip:$tU@1.2.3.4:5060");
$fs = 'udp:MY_PUBLIC_IP:5060';
}
}
But no INVITE is ever sent out... with force_send_socket it would only use
the private...
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337
On Mon, Oct 8, 2018 at 1:31 AM Alex Balashov <abalashov(a)evaristesys.com>
wrote:
Hi,
1. force_send_socket() is essentially deprecated in favour of mutating
$fs:
$fs = 'udp:67.215.186.219:5060';
2. Do you have an exact matching[1] listener for this outgoing
interface?
[1] Transport, IP, port.
--
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(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users