[SR-Users] Further question on transport issue.

Wilkins, Steve swwilkins at mitre.org
Thu May 17 18:38:05 CEST 2018


      Code snippet
#!ifdef WITH_TCP
        #$ru = $ru + ";transport=tcp";
        #force_send_socket(xx.xx.xx.xx:5060); where xx.xx.xx.xx is Kamailio IP-Address
        xlog("L_INFO","=>Transport TCP");
        xlog("L_INFO","  =>du:$du");
        xlog("L_INFO","  =>ru:$ru");
        if (!t_relay_to_tcp()) {
           sl_reply_error();
        }
#!else
        xlog("L_INFO","=>Transport UDP");
        xlog("L_INFO","  =>du:$du");
        xlog("L_INFO","  =>ru:$ru");
        if (!t_relay()) {
           sl_reply_error();
        }
#!endif


LOG =>

ERROR: <core> [core/pvapi.c:1377]: pv_printf(): no more space for spec value
ERROR: <core> [core/pvapi.c:1386]: pv_printf(): buffer overflow -- increase the
        NOTE: I have both of these set to 8K and still get these errors

INFO: <script>: =>Transport TCP
INFO: <script>:   =>du:sip:9NCUg2nceiuKagasFQFsAbtsMGcH1yE=@xx.xx.xx.xx:54080;transport=TCP;lr;r2=on;ftag=suhg8sv2lm;nat=yes
INFO: <script>:   =>ru:sip:9NCUg2nceiuKagasFQFsAbtsMGcH1yE=@xx.xx.xx.xx:54080;transport=TCP;lr;r2=on;ftag=suhg8sv2lm;nat=yes
WARNING: <core> [core/forward.c:231]: get_send_socket2(): protocol/port mismatch (forced tls:xx.xx.xx.xx:443, to tcp:xx.xx.xx.xx:54080)
ERROR: <core> [core/tcp_main.c:2660]: tcpconn_1st_send(): connect 172.21.1.108:54080 failed (RST) Connection refused
ERROR: <core> [core/tcp_main.c:2670]: tcpconn_1st_send(): xx.xx.xx.xx:54080: connect & send  for 0x7f1915a61040 failed: Connection refused (111)
         NOTE: Our tcp ports are controlled, a port number this high would never be opend on our server
         NOTE: This error occurs on ACK back to the INVITE


-----Original Message-----
From: sr-users [mailto:sr-users-bounces at lists.kamailio.org] On Behalf Of Alex Balashov
Sent: Thursday, May 17, 2018 9:44 AM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] Further question on transport issue.

What is the full and exact RURI of the request immediately prior to relay, and also the value of $du?

Can you xlog() both $du and $ru prior to t_relay() and tell us what those values are?

Thanks,

-- Alex

On Thu, May 17, 2018 at 01:36:25PM +0000, Wilkins, Steve wrote:

> Hello,
> 
> I am still struggling with getting TCP relay to work.  Kamailio is now trying to send TCP but it is using the incorrect port.  Kamailio is relaying to Asterisk on xx.xx.xx.xx:some-large-port but Asterisk is listening on xx.xx.xx.xx:5060.  I'm not sure why this is happening.  I would appreciate any help.
> 
> Thank you,

> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
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