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

-----Original Message-----
From: sr-users [] On Behalf Of Alex 
Sent: Thursday, May 17, 2018 9:44 AM
To: Kamailio (SER) - Users Mailing List <>
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?


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

Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)

Kamailio (SER) - Users Mailing List
Kamailio (SER) - Users Mailing List

Reply via email to