Re: [SR-Users] Outgoing SIP/TLS connection error (msg_send_buffer(): tcp_send failed)

2022-12-08 Thread Denys Pozniak
Thanks!!!
Yeah, *set_forward_no_connect()* was in the script ...

чт, 8 дек. 2022 г. в 12:23, Daniel-Constantin Mierla :

> Hello,
>
> check to see if the set_forward_no_connect() is used.
>
> Cheers,
> Daniel
> On 08.12.22 10:28, Denys Pozniak wrote:
>
> Hello!
>
> We use trunk with Twilio through a SIP/TLS.
> They establish incoming calls from random ports, like:
> (Twilio)3.3.3.3:54321 --> (Kamailio)2.2.2.2:5061
>
> In case of sending in-dialog requests to them, Kamailio should establish
> an outgoing connection to the dst port 5061 (as per Route), like:
> (Kamailio)2.2.2.2 --> (Twilio)3.3.3.3:5061
>
> But as per tcpdump traces and logs, Kamailio does not even try to
> establish an outgoing connection to Twilio.
> There should be no problems with routes and the network on that server, as
> regular telnet to Twilio shows that 5061 is open.
>
> What could be the reason and how to debug?
>
> *Script:*
> onsend_route {
> xlog("L_ERR","[$cfg(route)]*RELAY ONSEND* $rm / $du / $fs / $fsn /
> [$ci]\n");
> }
>
> *Syslog:*
> DEBUG  [core/resolve.c:1259]: srv_sip_resolvehost(): 3.3.3.3:5061
> proto=3
> DEBUG  [core/resolve.c:1371]: srv_sip_resolvehost(): returning
> 0x55acd63a63c0 (3.3.3.3:5061 proto=3)
> ERROR 

Re: [SR-Users] Outgoing SIP/TLS connection error (msg_send_buffer(): tcp_send failed)

2022-12-08 Thread Daniel-Constantin Mierla
Hello,

check to see if the set_forward_no_connect() is used.

Cheers,
Daniel

On 08.12.22 10:28, Denys Pozniak wrote:
> Hello!
>
> We use trunk with Twilio through a SIP/TLS.
> They establish incoming calls from random ports, like:
> (Twilio)3.3.3.3:54321  -->
> (Kamailio)2.2.2.2:5061 
>
> In case of sending in-dialog requests to them, Kamailio should
> establish an outgoing connection to the dst port 5061 (as per Route),
> like:
> (Kamailio)2.2.2.2 --> (Twilio)3.3.3.3:5061 
>
> But as per tcpdump traces and logs, Kamailio does not even try to
> establish an outgoing connection to Twilio.
> There should be no problems with routes and the network on that
> server, as regular telnet to Twilio shows that 5061 is open.
>
> What could be the reason and how to debug?
>
> _Script:_
> onsend_route {
>         xlog("L_ERR","[$cfg(route)]*RELAY ONSEND* $rm / $du / $fs /
> $fsn / [$ci]\n");
> }
>
> _Syslog:_
> DEBUG  [core/resolve.c:1259]: srv_sip_resolvehost():
> 3.3.3.3:5061  proto=3
> DEBUG  [core/resolve.c:1371]: srv_sip_resolvehost(): returning
> 0x55acd63a63c0 (3.3.3.3:5061  proto=3)
> ERROR 

[SR-Users] Outgoing SIP/TLS connection error (msg_send_buffer(): tcp_send failed)

2022-12-08 Thread Denys Pozniak
Hello!

We use trunk with Twilio through a SIP/TLS.
They establish incoming calls from random ports, like:
(Twilio)3.3.3.3:54321 --> (Kamailio)2.2.2.2:5061

In case of sending in-dialog requests to them, Kamailio should establish an
outgoing connection to the dst port 5061 (as per Route), like:
(Kamailio)2.2.2.2 --> (Twilio)3.3.3.3:5061

But as per tcpdump traces and logs, Kamailio does not even try to establish
an outgoing connection to Twilio.
There should be no problems with routes and the network on that server, as
regular telnet to Twilio shows that 5061 is open.

What could be the reason and how to debug?

*Script:*
onsend_route {
xlog("L_ERR","[$cfg(route)]*RELAY ONSEND* $rm / $du / $fs / $fsn /
[$ci]\n");
}

*Syslog:*
DEBUG  [core/resolve.c:1259]: srv_sip_resolvehost(): 3.3.3.3:5061
proto=3
DEBUG  [core/resolve.c:1371]: srv_sip_resolvehost(): returning
0x55acd63a63c0 (3.3.3.3:5061 proto=3)
ERROR