[SR-Users] Further question on transport issue.
Wilkins, Steve
swwilkins at mitre.org
Thu May 17 18:37:29 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
From: sr-users [mailto:sr-users-bounces at lists.kamailio.org] On Behalf Of Mack Hendricks
Sent: Thursday, May 17, 2018 9:43 AM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
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
web: http://dopensource.com
support: +888-907-2085
dSIPRouter<http://dsiprouter.org> - GUI focused on implementing Kamailio to provide SIP Trunking and PBX Hosting Services
On May 17, 2018, at 3:36 PM, Wilkins, Steve <swwilkins at mitre.org<mailto:swwilkins at mitre.org>> 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<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180517/6f1da802/attachment.html>
More information about the sr-users
mailing list