Hi All,
I was attempting to switch from UDP to TCP for relaying. I used t_relay_to_tcp() instead of t_relay() =>
if (!t_relay_to_tcp()) { sl_reply_error(); }
The problem is that I am still seeing the SIP messages as UDP on the Server that the messages are relayed to. Any Ideas?
Thank you, Steve
Hi Steve,
Do you have a TCP listener from which the messages would be expected to egress?
Also, try use regular t_relay(), but beforehand do:
$ru = $ru + ";transport=TCP";
-- Alex
On Tue, May 15, 2018 at 03:43:26PM +0000, Wilkins, Steve wrote:
Hi All,
I was attempting to switch from UDP to TCP for relaying. I used t_relay_to_tcp() instead of t_relay() =>
if (!t_relay_to_tcp()) { sl_reply_error(); }
The problem is that I am still seeing the SIP messages as UDP on the Server that the messages are relayed to. Any Ideas?
Thank you, Steve
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Thank you Alex,
Yes, I receive other SIP dialogs from other sources via TCP with no issues. I will try what you suggested.
Thanks again, -Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 11:44 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Hi Steve,
Do you have a TCP listener from which the messages would be expected to egress?
Also, try use regular t_relay(), but beforehand do:
$ru = $ru + ";transport=TCP";
-- Alex
On Tue, May 15, 2018 at 03:43:26PM +0000, Wilkins, Steve wrote:
Hi All,
I was attempting to switch from UDP to TCP for relaying. I used t_relay_to_tcp() instead of t_relay() =>
if (!t_relay_to_tcp()) { sl_reply_error(); }
The problem is that I am still seeing the SIP messages as UDP on the Server that the messages are relayed to. Any Ideas?
Thank you, Steve
Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi Alex,
I tried your suggestion and everything is still going over UDP. I verified with tcpdump/wireshark and all SIP traffic is UDP.
Thank you, -Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 11:44 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Hi Steve,
Do you have a TCP listener from which the messages would be expected to egress?
Also, try use regular t_relay(), but beforehand do:
$ru = $ru + ";transport=TCP";
-- Alex
On Tue, May 15, 2018 at 03:43:26PM +0000, Wilkins, Steve wrote:
Hi All,
I was attempting to switch from UDP to TCP for relaying. I used t_relay_to_tcp() instead of t_relay() =>
if (!t_relay_to_tcp()) { sl_reply_error(); }
The problem is that I am still seeing the SIP messages as UDP on the Server that the messages are relayed to. Any Ideas?
Thank you, Steve
Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Are there any errors in the logs suggestive of a failure to select an appropriate egress listener?
On Tue, May 15, 2018 at 04:14:07PM +0000, Wilkins, Steve wrote:
Hi Alex,
I tried your suggestion and everything is still going over UDP. I verified with tcpdump/wireshark and all SIP traffic is UDP.
Thank you, -Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 11:44 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Hi Steve,
Do you have a TCP listener from which the messages would be expected to egress?
Also, try use regular t_relay(), but beforehand do:
$ru = $ru + ";transport=TCP";
-- Alex
On Tue, May 15, 2018 at 03:43:26PM +0000, Wilkins, Steve wrote:
Hi All,
I was attempting to switch from UDP to TCP for relaying. I used t_relay_to_tcp() instead of t_relay() =>
if (!t_relay_to_tcp()) { sl_reply_error(); }
The problem is that I am still seeing the SIP messages as UDP on the Server that the messages are relayed to. Any Ideas?
Thank you, Steve
Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Yes there is an error. I get this error trying both ways => no corresponding socket found for "111.25.1.99" af 2 (udp: 111.25.1.99:5060). It is still trying to send UDP. 111.25.1.99 is accepting TCP traffic, other calls are reaching via other sources using TCP.
I'm just not sure why it is refusing to send tcp.
-Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 12:20 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Are there any errors in the logs suggestive of a failure to select an appropriate egress listener?
On Tue, May 15, 2018 at 04:14:07PM +0000, Wilkins, Steve wrote:
Hi Alex,
I tried your suggestion and everything is still going over UDP. I verified with tcpdump/wireshark and all SIP traffic is UDP.
Thank you, -Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 11:44 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Hi Steve,
Do you have a TCP listener from which the messages would be expected to egress?
Also, try use regular t_relay(), but beforehand do:
$ru = $ru + ";transport=TCP";
-- Alex
On Tue, May 15, 2018 at 03:43:26PM +0000, Wilkins, Steve wrote:
Hi All,
I was attempting to switch from UDP to TCP for relaying. I used t_relay_to_tcp() instead of t_relay() =>
if (!t_relay_to_tcp()) { sl_reply_error(); }
The problem is that I am still seeing the SIP messages as UDP on the Server that the messages are relayed to. Any Ideas?
Thank you, Steve
Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Have a read about 'mhomed' works and see if it might make sense to turn it off or on:
https://www.kamailio.org/wiki/cookbooks/5.1.x/core#mhomed
Otherwise, for experimentation's sake, try mhomed=0 and force the outgoing listener explicitly:
$fs = 'tcp:x.x.x.x:5060';
...
t_relay();
-- Alex
On Tue, May 15, 2018 at 04:38:59PM +0000, Wilkins, Steve wrote:
Yes there is an error. I get this error trying both ways => no corresponding socket found for "111.25.1.99" af 2 (udp: 111.25.1.99:5060). It is still trying to send UDP. 111.25.1.99 is accepting TCP traffic, other calls are reaching via other sources using TCP.
I'm just not sure why it is refusing to send tcp.
-Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 12:20 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Are there any errors in the logs suggestive of a failure to select an appropriate egress listener?
On Tue, May 15, 2018 at 04:14:07PM +0000, Wilkins, Steve wrote:
Hi Alex,
I tried your suggestion and everything is still going over UDP. I verified with tcpdump/wireshark and all SIP traffic is UDP.
Thank you, -Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 11:44 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Hi Steve,
Do you have a TCP listener from which the messages would be expected to egress?
Also, try use regular t_relay(), but beforehand do:
$ru = $ru + ";transport=TCP";
-- Alex
On Tue, May 15, 2018 at 03:43:26PM +0000, Wilkins, Steve wrote:
Hi All,
I was attempting to switch from UDP to TCP for relaying. I used t_relay_to_tcp() instead of t_relay() =>
if (!t_relay_to_tcp()) { sl_reply_error(); }
The problem is that I am still seeing the SIP messages as UDP on the Server that the messages are relayed to. Any Ideas?
Thank you, Steve
Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
I tried this and I now get
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 buffer size... (I have these values set super high, I was using the defaults and getting the same error)
WARNING: pv [pv_core.c:2315]: pv_set_force_sock(): no socket found to match [tcp: 111.25.1.99:5060] ERROR: tm [ut.h:317]: uri2dst2(): no corresponding socket found for "111.25.1.99" af 2 (udp: 111.25.1.99:5060) ERROR: tm [t_fwd.c:469]: prepare_new_uac(): can't fwd to af 2, proto 1 (no corresponding listening socket) ERROR: tm [t_fwd.c:1732]: t_forward_nonack(): failure to add branches
It seems strange the WARNING is showing tcp but the ERROR is showing udp.
Thank you!
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 12:41 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Have a read about 'mhomed' works and see if it might make sense to turn it off or on:
https://www.kamailio.org/wiki/cookbooks/5.1.x/core#mhomed
Otherwise, for experimentation's sake, try mhomed=0 and force the outgoing listener explicitly:
$fs = 'tcp:x.x.x.x:5060';
...
t_relay();
-- Alex
On Tue, May 15, 2018 at 04:38:59PM +0000, Wilkins, Steve wrote:
Yes there is an error. I get this error trying both ways => no corresponding socket found for "111.25.1.99" af 2 (udp: 111.25.1.99:5060). It is still trying to send UDP. 111.25.1.99 is accepting TCP traffic, other calls are reaching via other sources using TCP.
I'm just not sure why it is refusing to send tcp.
-Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 12:20 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Are there any errors in the logs suggestive of a failure to select an appropriate egress listener?
On Tue, May 15, 2018 at 04:14:07PM +0000, Wilkins, Steve wrote:
Hi Alex,
I tried your suggestion and everything is still going over UDP. I verified with tcpdump/wireshark and all SIP traffic is UDP.
Thank you, -Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 11:44 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Hi Steve,
Do you have a TCP listener from which the messages would be expected to egress?
Also, try use regular t_relay(), but beforehand do:
$ru = $ru + ";transport=TCP";
-- Alex
On Tue, May 15, 2018 at 03:43:26PM +0000, Wilkins, Steve wrote:
Hi All,
I was attempting to switch from UDP to TCP for relaying. I used t_relay_to_tcp() instead of t_relay() =>
if (!t_relay_to_tcp()) { sl_reply_error(); }
The problem is that I am still seeing the SIP messages as UDP on the Server that the messages are relayed to. Any Ideas?
Thank you, Steve
Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Well, that's a bit coincidental. Try increase the size of your package memory and/or shared memory pool.
On May 15, 2018 7:11:13 PM GMT+02:00, "Wilkins, Steve" swwilkins@mitre.org wrote:
I tried this and I now get
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 buffer size... (I have these values set super high, I was using the defaults and getting the same error)
WARNING: pv [pv_core.c:2315]: pv_set_force_sock(): no socket found to match [tcp: 111.25.1.99:5060] ERROR: tm [ut.h:317]: uri2dst2(): no corresponding socket found for "111.25.1.99" af 2 (udp: 111.25.1.99:5060) ERROR: tm [t_fwd.c:469]: prepare_new_uac(): can't fwd to af 2, proto 1 (no corresponding listening socket) ERROR: tm [t_fwd.c:1732]: t_forward_nonack(): failure to add branches
It seems strange the WARNING is showing tcp but the ERROR is showing udp.
Thank you!
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 12:41 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Have a read about 'mhomed' works and see if it might make sense to turn it off or on:
https://www.kamailio.org/wiki/cookbooks/5.1.x/core#mhomed
Otherwise, for experimentation's sake, try mhomed=0 and force the outgoing listener explicitly:
$fs = 'tcp:x.x.x.x:5060';
...
t_relay();
-- Alex
On Tue, May 15, 2018 at 04:38:59PM +0000, Wilkins, Steve wrote:
Yes there is an error. I get this error trying both ways => no corresponding socket found for "111.25.1.99" af 2 (udp:
111.25.1.99:5060). It is still trying to send UDP. 111.25.1.99 is accepting TCP traffic, other calls are reaching via other sources using TCP.
I'm just not sure why it is refusing to send tcp.
-Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf
Of Alex Balashov Sent: Tuesday, May 15, 2018 12:20 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Are there any errors in the logs suggestive of a failure to select an
appropriate egress listener?
On Tue, May 15, 2018 at 04:14:07PM +0000, Wilkins, Steve wrote:
Hi Alex,
I tried your suggestion and everything is still going over UDP. I
verified with tcpdump/wireshark and all SIP traffic is UDP.
Thank you, -Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 11:44 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Hi Steve,
Do you have a TCP listener from which the messages would be
expected to egress?
Also, try use regular t_relay(), but beforehand do:
$ru = $ru + ";transport=TCP";
-- Alex
On Tue, May 15, 2018 at 03:43:26PM +0000, Wilkins, Steve wrote:
Hi All,
I was attempting to switch from UDP to TCP for relaying. I used t_relay_to_tcp() instead of t_relay() =>
if (!t_relay_to_tcp()) { sl_reply_error(); }
The problem is that I am still seeing the SIP messages as UDP on
the Server that the messages are relayed to. Any Ideas?
Thank you, Steve
Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex
-- Sent via mobile, please forgive typos and brevity.
Where do I set this at?
Also, I noticed that when adding $ru=$ru + ";transport=tcp", tcp does get appended to $ru, it just refuses to send over TCP connection.
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 1:16 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Well, that's a bit coincidental. Try increase the size of your package memory and/or shared memory pool.
On May 15, 2018 7:11:13 PM GMT+02:00, "Wilkins, Steve" swwilkins@mitre.org wrote:
I tried this and I now get
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 buffer size... (I have these values set super high, I was using the defaults and getting the same error)
WARNING: pv [pv_core.c:2315]: pv_set_force_sock(): no socket found to match [tcp: 111.25.1.99:5060] ERROR: tm [ut.h:317]: uri2dst2(): no corresponding socket found for "111.25.1.99" af 2 (udp: 111.25.1.99:5060) ERROR: tm [t_fwd.c:469]: prepare_new_uac(): can't fwd to af 2, proto 1 (no corresponding listening socket) ERROR: tm [t_fwd.c:1732]: t_forward_nonack(): failure to add branches
It seems strange the WARNING is showing tcp but the ERROR is showing udp.
Thank you!
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 12:41 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Have a read about 'mhomed' works and see if it might make sense to turn it off or on:
https://www.kamailio.org/wiki/cookbooks/5.1.x/core#mhomed
Otherwise, for experimentation's sake, try mhomed=0 and force the outgoing listener explicitly:
$fs = 'tcp:x.x.x.x:5060';
...
t_relay();
-- Alex
On Tue, May 15, 2018 at 04:38:59PM +0000, Wilkins, Steve wrote:
Yes there is an error. I get this error trying both ways => no corresponding socket found for "111.25.1.99" af 2 (udp:
111.25.1.99:5060). It is still trying to send UDP. 111.25.1.99 is accepting TCP traffic, other calls are reaching via other sources using TCP.
I'm just not sure why it is refusing to send tcp.
-Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf
Of Alex Balashov Sent: Tuesday, May 15, 2018 12:20 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Are there any errors in the logs suggestive of a failure to select an
appropriate egress listener?
On Tue, May 15, 2018 at 04:14:07PM +0000, Wilkins, Steve wrote:
Hi Alex,
I tried your suggestion and everything is still going over UDP. I
verified with tcpdump/wireshark and all SIP traffic is UDP.
Thank you, -Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 11:44 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Hi Steve,
Do you have a TCP listener from which the messages would be
expected to egress?
Also, try use regular t_relay(), but beforehand do:
$ru = $ru + ";transport=TCP";
-- Alex
On Tue, May 15, 2018 at 03:43:26PM +0000, Wilkins, Steve wrote:
Hi All,
I was attempting to switch from UDP to TCP for relaying. I used t_relay_to_tcp() instead of t_relay() =>
if (!t_relay_to_tcp()) { sl_reply_error(); }
The problem is that I am still seeing the SIP messages as UDP on
the Server that the messages are relayed to. Any Ideas?
Thank you, Steve
Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex
-- Sent via mobile, please forgive typos and brevity.
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Am Dienstag, 15. Mai 2018, 19:47:54 CEST schrieb Wilkins, Steve:
Where do I set this at?
Also, I noticed that when adding $ru=$ru + ";transport=tcp", tcp does get appended to $ru, it just refuses to send over TCP connection. [..]
Hello,
have a look to the kamailio startup parameter, there are two settings for both memory pools.
Best regards,
Henning
I left both lines in you suggested => $ru = $ru + ";transport=tcp"; $fs = 'tcp:172.21.1.124:5060'; if (!t_relay()) { sl_reply_error(); }
And now only get the Warning => WARNING: pv [pv_core.c:2315]: pv_set_force_sock(): no socket found to match [tcp:x.x.x.x:5060]
I also increased the following, but still get that strange memory error. pv_buffer_size=16384 tcp_rd_buf_size=16384
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 1:16 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Well, that's a bit coincidental. Try increase the size of your package memory and/or shared memory pool.
On May 15, 2018 7:11:13 PM GMT+02:00, "Wilkins, Steve" swwilkins@mitre.org wrote:
I tried this and I now get
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 buffer size... (I have these values set super high, I was using the defaults and getting the same error)
WARNING: pv [pv_core.c:2315]: pv_set_force_sock(): no socket found to match [tcp: 111.25.1.99:5060] ERROR: tm [ut.h:317]: uri2dst2(): no corresponding socket found for "111.25.1.99" af 2 (udp: 111.25.1.99:5060) ERROR: tm [t_fwd.c:469]: prepare_new_uac(): can't fwd to af 2, proto 1 (no corresponding listening socket) ERROR: tm [t_fwd.c:1732]: t_forward_nonack(): failure to add branches
It seems strange the WARNING is showing tcp but the ERROR is showing udp.
Thank you!
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 12:41 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Have a read about 'mhomed' works and see if it might make sense to turn it off or on:
https://www.kamailio.org/wiki/cookbooks/5.1.x/core#mhomed
Otherwise, for experimentation's sake, try mhomed=0 and force the outgoing listener explicitly:
$fs = 'tcp:x.x.x.x:5060';
...
t_relay();
-- Alex
On Tue, May 15, 2018 at 04:38:59PM +0000, Wilkins, Steve wrote:
Yes there is an error. I get this error trying both ways => no corresponding socket found for "111.25.1.99" af 2 (udp:
111.25.1.99:5060). It is still trying to send UDP. 111.25.1.99 is accepting TCP traffic, other calls are reaching via other sources using TCP.
I'm just not sure why it is refusing to send tcp.
-Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf
Of Alex Balashov Sent: Tuesday, May 15, 2018 12:20 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Are there any errors in the logs suggestive of a failure to select an
appropriate egress listener?
On Tue, May 15, 2018 at 04:14:07PM +0000, Wilkins, Steve wrote:
Hi Alex,
I tried your suggestion and everything is still going over UDP. I
verified with tcpdump/wireshark and all SIP traffic is UDP.
Thank you, -Steve
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Alex Balashov Sent: Tuesday, May 15, 2018 11:44 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
Hi Steve,
Do you have a TCP listener from which the messages would be
expected to egress?
Also, try use regular t_relay(), but beforehand do:
$ru = $ru + ";transport=TCP";
-- Alex
On Tue, May 15, 2018 at 03:43:26PM +0000, Wilkins, Steve wrote:
Hi All,
I was attempting to switch from UDP to TCP for relaying. I used t_relay_to_tcp() instead of t_relay() =>
if (!t_relay_to_tcp()) { sl_reply_error(); }
The problem is that I am still seeing the SIP messages as UDP on
the Server that the messages are relayed to. Any Ideas?
Thank you, Steve
Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex
-- Sent via mobile, please forgive typos and brevity.
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
You have a listen= param with tcp transport right?
On Tue, May 15, 2018 at 9:22 AM, Juha Heinanen jh@tutpro.com wrote:
Wilkins, Steve writes:
I tried your suggestion and everything is still going over UDP. I verified with tcpdump/wireshark and all SIP traffic is UDP.
Check your send socket, i.e., that it listens on TCP.
-- Juha
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Yes, I do. It seems so strange that nothing I try will enable it to go out over TCP. There is very little configuration to force it out TCP. I have tried a few thing that Alex has suggested but nothing sends it over TCP.
Thank you,
From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Joel Serrano Sent: Tuesday, May 15, 2018 12:23 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
You have a listen= param with tcp transport right?
On Tue, May 15, 2018 at 9:22 AM, Juha Heinanen <jh@tutpro.commailto:jh@tutpro.com> wrote: Wilkins, Steve writes:
I tried your suggestion and everything is still going over UDP. I verified with tcpdump/wireshark and all SIP traffic is UDP.
Check your send socket, i.e., that it listens on TCP.
-- Juha
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Wilkins, Steve writes:
Yes, I do. It seems so strange that nothing I try will enable it to go out over TCP. There is very little configuration to force it out TCP. I have tried a few thing that Alex has suggested but nothing sends it over TCP.
Show what you get about Listening to syslog when you start K, for example:
May 16 14:49:21 trout sip-proxy[22795]: Listening on May 16 14:49:21 trout sip-proxy[22795]: udp: 192.168.43.82 [192.168.43.82]:5060 May 16 14:49:21 trout sip-proxy[22795]: udp: 127.0.0.1 [127.0.0.1]:5070 May 16 14:49:21 trout sip-proxy[22795]: tcp: 192.168.43.82 [192.168.43.82]:5060 May 16 14:49:21 trout sip-proxy[22795]: tcp: 127.0.0.1 [127.0.0.1]:5070 May 16 14:49:21 trout sip-proxy[22795]: tcp: 127.0.0.1 [127.0.0.1]:6060
then
$ru = $ru + ";transport=tcp"; force_send_socket(192.168.43.82:5060); # replace ip:port with yours t_relay();
-- Juha
On Wed, May 16, 2018 at 10:59:40AM +0000, Wilkins, Steve wrote:
Yes, I do. It seems so strange that nothing I try will enable it to go out over TCP. There is very little configuration to force it out TCP. I have tried a few thing that Alex has suggested but nothing sends it over TCP.
What is $du set to?
If have tried a few things (and combination of things), setting ru, du, and fs => $ru = $ru + ";transport=tcp"; $du = $ru + ";transport=tcp"; $fs = 'tcp:xx.xx.xx.xx:5060';
I have also tried both, t_relay_to_tcp(), and t_relay()
Thank you!
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Daniel Tryba Sent: Wednesday, May 16, 2018 11:18 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Transport question
On Wed, May 16, 2018 at 10:59:40AM +0000, Wilkins, Steve wrote:
Yes, I do. It seems so strange that nothing I try will enable it to go out over TCP. There is very little configuration to force it out TCP. I have tried a few thing that Alex has suggested but nothing sends it over TCP.
What is $du set to?
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users