<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>using UDP for forwarding is a configuration file action. Kamailio
doesn't do any sip message forwarding unless there is such action
in configuration file. If you want to use only tcp for sending
out, be sure that request uri ($ru) or destination uri ($du) are
SIP addresses with TCP transport.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 26.02.18 21:22, Amar Tinawi wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGjMUphomsGjYfuUDvjEL9QaFdMJvvjxd3KQSfu+nkR6shoyRA@mail.gmail.com">
<div dir="ltr">Hello Daniel
<div><br>
</div>
<div>Thanks for your help, actually that is my question from the
beginning, is it mandatory to have sockets for UDP ?</div>
<div>Can I enable only TCP protocol between instances ?</div>
<div dir="rtl"><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Feb 26, 2018 at 9:26 AM,
Daniel-Constantin Mierla <span dir="ltr"><<a
href="mailto:miconda@gmail.com" target="_blank"
moz-do-not-send="true">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Actually the error is because you try to forward via
UDP (proto 1). Be sure you have listen parameter for UDP
and TCP sockets.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>
<div class="h5"> <br>
<div class="m_6131300225342439469moz-cite-prefix">On
25.02.18 11:38, Amar Tinawi wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>TCP alone errors were strange : on the proxy
node i couldn't register and got the following
errors : <br>
</div>
<div>
<div>Feb 25 12:15:28 server1
[Proxy-CSCF][31641]: ERROR: tm [ut.h:303]:
uri2dst2(): no corresponding socket for
"NET.SYRIATEL" af 2</div>
<div>Feb 25 12:15:28 server1
[Proxy-CSCF][31641]: ERROR: tm [t_fwd.c:469]:
prepare_new_uac(): can't fwd to af 2, proto 1
(no corresponding listening socket)</div>
<div>Feb 25 12:15:28 server1
[Proxy-CSCF][31641]: ERROR: tm [t_fwd.c:1735]:
t_forward_nonack(): failure to add branches</div>
<div>Feb 25 12:15:28 server1
[Proxy-CSCF][31641]: ERROR: siptrace
[siptrace.c:1930]:
trace_send_hep2_duplicate(): can't forward to
af 2, proto 1 no corresponding listening
socket</div>
<div>Feb 25 12:15:28 server1
[Proxy-CSCF][31641]: ERROR: sl
[sl_funcs.c:362]: sl_reply_error(): stateless
error reply used: I'm terribly sorry, server
error occurred (7/SL)</div>
</div>
<div>==============================<wbr>==============================<wbr>=========================</div>
<div><br>
</div>
<div>These errors appearing when using two TCP and
UDP, i could be able to register and make calls
but still get errors</div>
<div>
<div>Feb 25 11:37:15 server1
[Proxy-CSCF][28999]: ERROR: ims_usrloc_pcscf
[udomain.c:409]: update_pcontact(): Error
updating record in DB</div>
<div>Feb 25 11:37:15 server1
[Proxy-CSCF][28999]: ERROR:
ims_registrar_pcscf [notify.c:218]:
process_contact(): failed to update pcscf
contact</div>
<div>Feb 25 11:37:15 server1
[Proxy-CSCF][28999]: ERROR: tm [tm.c:1242]:
w_t_reply(): cannot send a t_reply to a
message for which no T-state has been
established</div>
</div>
<div><br>
</div>
<div>In addition i cleaned all UDP SRV related
records from DNS zone and tried to forced all
instances in the TCP mode configuration</div>
<div><br>
</div>
<div>**Also, in the TCP mode all the ip addresses
that the registrations comes from are not the
real ip's of the users, and also this is very
strange</div>
<div>i got some random IP's</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Feb 23, 2018 at
10:41 AM, Daniel-Constantin Mierla <span
dir="ltr"><<a
href="mailto:miconda@gmail.com"
target="_blank" moz-do-not-send="true">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>have you look at syslog messages? Are
there any errors? Between Kamailio
instances, tcp for sip should work.
Check also configs to be sure UDP is not
enforced there.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>
<div class="m_6131300225342439469h5"> <br>
<div
class="m_6131300225342439469m_-2222819399075722669moz-cite-prefix">On
22.02.18 12:40, Amar Tinawi wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="m_6131300225342439469h5">
<div dir="ltr">Hello list
<div><br>
</div>
<div>For some reason i couldn't
register on kamailio ims when i
use only TCP protocols between
nodes, the error was solved when
i enabled UDP between I-CSCF and
S-CSCF</div>
<div><br>
</div>
<div><br>
</div>
<div>is it mandatory for those two
nodes to talk over UDP only ? or
i'm missing something ? </div>
<div>and in general for sip
protocol which is better ? UDP
or TCP ?</div>
<div><br>
</div>
<div><br>
</div>
<div>Regards,</div>
</div>
<br>
<fieldset
class="m_6131300225342439469m_-2222819399075722669mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_6131300225342439469m_-2222819399075722669moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="m_6131300225342439469m_-2222819399075722669moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><span class="m_6131300225342439469HOEnZb"><font color="#888888">
</font></span></pre>
<span
class="m_6131300225342439469HOEnZb"><font
color="#888888"> </font></span></blockquote>
<span class="m_6131300225342439469HOEnZb"><font
color="#888888"> <br>
<pre class="m_6131300225342439469m_-2222819399075722669moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_6131300225342439469m_-2222819399075722669moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="m_6131300225342439469m_-2222819399075722669moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="m_6131300225342439469m_-2222819399075722669moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_6131300225342439469m_-2222819399075722669moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank" moz-do-not-send="true">www.kamailioworld.com</a></pre>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
<pre class="m_6131300225342439469moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_6131300225342439469moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="m_6131300225342439469moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="m_6131300225342439469moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_6131300225342439469moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank" moz-do-not-send="true">www.kamailioworld.com</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>