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

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>:   
INFO: <script>:   
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 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

From: sr-users [] On Behalf Of Mack 
Sent: Thursday, May 17, 2018 9:43 AM
To: Kamailio (SER) - Users Mailing List <>
Subject: Re: [SR-Users] Further question on transport issue.

Hey Steve,

Can provide us a snippet of code on how you are populating the $ru and making 
invoking the relay?

Mack Hendricks / Head of Support / dOpenSource
support: +888-907-2085
dSIPRouter<> - GUI focused on implementing Kamailio to 
provide SIP Trunking and PBX Hosting Services

On May 17, 2018, at 3:36 PM, Wilkins, Steve 
<<>> wrote:


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 

Thank you,
Kamailio (SER) - Users Mailing List<>

Kamailio (SER) - Users Mailing List

Reply via email to