[SR-Users] force_send_socket

Alex Balashov abalashov at evaristesys.com
Mon Oct 8 03:23:33 CEST 2018


Yes, that could be related. 😂

--
Sent from mobile. Apologies for brevity and errors. 

-----Original Message-----
From: David Villasmil <david.villasmil.work at gmail.com>
To: "Kamailio (SER) - Users Mailing List" <sr-users at lists.kamailio.org>
Sent: Sun, 07 Oct 2018 9:22 PM
Subject: Re: [SR-Users] force_send_socket

I think this is related to the fact that the client is TCP and i'm trying
to send to UDP.
I just changed the client to UDP and the branch got sent properly from the
public ip in udp...


Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337


On Mon, Oct 8, 2018 at 2:07 AM David Villasmil <
david.villasmil.work at gmail.com> wrote:

> 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 at 1.2.3.4:5080");
>                     $fs = 'udp:MY_PUBLIC_IP:5060';
>                 }
>             }
>
>
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> phone: +34669448337
>
>
> On Mon, Oct 8, 2018 at 1:55 AM David Villasmil <
> david.villasmil.work at 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 at 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 at gmail.com
>> phone: +34669448337
>>
>>
>> On Mon, Oct 8, 2018 at 1:31 AM Alex Balashov <abalashov at 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 at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>



More information about the sr-users mailing list