[OpenSIPS-Users] Problem with force_send_socket

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Apr 5 06:25:29 EDT 2018


Hi Olle,

Do you have any other errors in log before the lines you already mentioned ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   http://www.opensips-solutions.com
OpenSIPS Summit 2018
   http://www.opensips.org/events/Summit-2018Amsterdam

On 04/03/2018 08:31 PM, Olle Frimanson wrote:
>
> Hi ,
>
> Sorry I think I type incorrect in my previous mail, just tested again 
> and I get same error:
>
> 2018-04-03T17:26:02.238170+00:00 err sipedge-qa-1 ERROR:tm:msg_send: 
> send() to 172.27.251.4:5060 for proto tcp/2 failed
>
> 2018-04-03T17:26:02.238590+00:00 err sipedge-qa-1 
> ERROR:tm:t_forward_nonack: sending request failed
>
> This is a snippet from my config:
>
> # Internal
>
> listen=udp:172.27.0.17:5070 AS 172.27.0.17:5070
>
> listen=tcp:172.27.0.17:5070 AS 172.27.0.17:5070
>
> …..
>
> if (is_method("INVITE") || is_method("REGISTER")) {
>
> xlog("L_INFO","$ci|Route0|Change du|Add homeproxy to path");
>
> $du = "sip:172.27.251.4:5060";
>
> xlog("L_INFO","$ci|Route0|force_send_socket|");
>
> force_send_socket(tcp:172.27.0.17:5070);
>
> xlog("L_INFO","$ci|Route0|Record route|");
>
> record_route("");
>
> if (!t_relay()) {
>
> sl_reply_error();
>
> };
>
> Br/Olle
>
> *Från:*Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
> *Skickat:* den 3 april 2018 18:03
> *Till:* OpenSIPS users mailling list <users at lists.opensips.org>; Olle 
> Frimanson <olle at zaark.com>
> *Ämne:* Re: [OpenSIPS-Users] Problem with force_send_socket
>
> Hi Olle,
>
> Are you sure the setup is correct ? based on the error log
>
> 2018-03-22T16:58:50.517287+00:00 err sipedge-qa-1 ERROR:tm:msg_send: 
> send() to 172.27.251.4:5070 for proto tcp/2 failed
>
> you are trying to send to 172.27.251.4:5070 as destination. In the 
> same time, you use the same IP and port as local socket (as source).
>
>
> Best regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
>    http://www.opensips-solutions.com
> OpenSIPS Summit 2018
>    http://www.opensips.org/events/Summit-2018Amsterdam
>
> On 03/22/2018 07:17 PM, Olle Frimanson wrote:
>
>     Hi , we are using Opensips 2.3.3 and have a setup with
>
>     UAC- Edge Proxy – Registrar – Freeswitch
>
>     Clients connect using TLS and we use UDP for internal communication.
>
>     Edge proxy use force_send_socket(udp:172.27.251.4:5070) and all
>     have been fine even for packets of around 1700 bytes.
>
>     Now we have installed the system in a new environment and have
>     started to see MTU problems and we want to switch to TCP for the
>     internal communication.
>
>     We have switched to setting the sent socket to tcp:
>      force_send_socket(tcp:172.27.251.4:5070) but this fails.
>
>     We listen on the same port on both UDP and TCP.
>
>     With debug logging this is the only output:
>
>     2018-03-22T16:58:50.517287+00:00 err sipedge-qa-1
>     ERROR:tm:msg_send: send() to 172.27.251.4:5070 for proto tcp/2 failed
>
>     2018-03-22T16:58:50.517669+00:00 err sipedge-qa-1
>     ERROR:tm:t_forward_nonack: sending request failed
>
>     Any ideas?
>
>     Thanks in advance / Olle
>
>
>
>
>     _______________________________________________
>
>     Users mailing list
>
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180405/47e2c441/attachment.html>


More information about the Users mailing list