<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Looks like the socket used for sending out is the loopback
address and thus cannot send to 192.168.2.101.</p>
<p>Do you use t_relay() for forwarding the request?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 10.04.18 10:08, Kjeld Flarup wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CACRoYp9u9ecSy--ixDYXzCCMmigC901_w8Tt4WQ0Thfo5XQioQ@mail.gmail.com">
<div dir="ltr">
<div>Listening is configured like this:</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><font face="monospace, monospace">#!define LOCALIP
192.168.2.9</font></div>
<div><font face="monospace, monospace">#!subst "/LOCALIP/<a
href="http://192.168.2.9/g" moz-do-not-send="true">192.168.2.9/g</a>"</font></div>
<div>
<div><font face="monospace, monospace">listen=<a
href="http://127.0.0.1:5069" moz-do-not-send="true">127.0.0.1:5069</a> </font></div>
</div>
<div>
<div><font face="monospace, monospace">listen=LOCALIP:5069</font></div>
</div>
</blockquote>
<div><br>
</div>
<div>Kjeld</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-04-10 9:43 GMT+02:00
Daniel-Constantin Mierla <span dir="ltr"><<a
href="mailto:miconda@gmail.com" target="_blank"
moz-do-not-send="true">miconda@gmail.com</a>></span>:<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>is the instance throwing the error listening only on
127.0.0.1 address?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>
<div class="h5"> <br>
<div class="m_-2467796071268748008moz-cite-prefix">On
09.04.18 23:54, Kjeld Flarup wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<p>Hi</p>
<p>I have a setup with three kamailio's in the same
host but on different ports. client ->5069
-> 5070 -> 5071 -> SIP provider</p>
<p>Now I get this error from the 5069 Kamailio when
it is routing a 200 Ok to the client:</p>
<p><tt>Apr 9 21:54:10 kfcpbx
/usr/sbin/kamailio[9688]: ERROR: <core>
[forward.c:181]: get_out_socket(): no socket
found</tt><tt><br>
</tt><tt>Apr 9 21:54:10 kfcpbx
/usr/sbin/kamailio[9688]: ERROR: <core>
[forward.c:183]: get_out_socket(): no
corresponding socket found for(udp:<a
href="http://192.168.2.101:10120"
target="_blank" moz-do-not-send="true">192.168.2.101:10120</a>)</tt><tt><br>
</tt><tt>Apr 9 21:54:10 kfcpbx
/usr/sbin/kamailio[9688]: ERROR: <core>
[forward.c:808]: do_forward_reply(): cannot
forward reply</tt><br>
</p>
<p>By manipulating the database I can skip the 5070
Kamailio, and then it works.<br>
</p>
<p>I captured these two 200 Ok packets to the 5069
kamailio<br>
</p>
<p><b>Failing:</b><br>
</p>
<p><tt>No. Time
Source Destination
Protocol Length Info</tt><tt><br>
</tt><tt> 4713 21:54:12.814245
127.0.0.1 127.0.0.1
SIP/SDP 2297 Status: 200 OK |</tt><tt><br>
</tt><tt><br>
</tt><tt>Frame 4713: 2297 bytes on wire (18376
bits), 2297 bytes captured (18376 bits)</tt><tt><br>
</tt><tt>Linux cooked capture</tt><tt><br>
</tt><tt>Internet Protocol Version 4, Src:
127.0.0.1, Dst: 127.0.0.1</tt><tt><br>
</tt><tt>User Datagram Protocol, Src Port: 5070,
Dst Port: 5069</tt><tt><br>
</tt><tt>Session Initiation Protocol (200)</tt><tt><br>
</tt><tt> Status-Line: SIP/2.0 200 OK</tt><tt><br>
</tt><tt> Message Header</tt><tt><br>
</tt><tt> Via: SIP/2.0/UDP
127.0.0.1:5069;rport=5069;<wbr>branch=z9hG4bK6ef1.<wbr>0c009dcf5b4965c5d1a13d508e0b31<wbr>c5.0</tt><tt><br>
</tt><tt> Via: SIP/2.0/UDP
192.168.2.101:10120;received=<wbr>192.168.2.101;rport=10120;<wbr>branch=z9hG4bKPjIq.<wbr>uY6jYbHkIqCo03bYLsTzccb7oy9jw</tt><tt><br>
</tt><tt> Record-Route: <a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.8;line=sr-z-<wbr>yMngm271wI73zx7gmx0CmHdDZWd-w*<wbr>></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.8;line=sr-z-<wbr>yMngm271wI73zx7gmx0Cq.7Cc-<wbr>039Sz4Rxz5kezbQWOtUMn-<wbr>9yTjcWODXoTC9BzK**></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.8;line=sr-z-<wbr>yMngmS0-R4LCz2LtZ-Lg02L-<wbr>JoLNQGn3057t0SntZ5LNL2QD7Vz12-<wbr>sjkSTtMxTiB.7Cc-<wbr>0399LtUqzgSGnCQx0gQ56gLG6g0wn5<wbr>UILt2NziWIO3ooTDcHdDZ*></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.8;line=sr-z-<wbr>yMngm271wI73zx7gmx0Nm.<wbr>7Cc5039Sz4Rxz5kezbQWOtUMn-<wbr>9yTjcWODXoTC9BzK**></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.8;line=sr-z-<wbr>yMngm271wI7CJx0gZx73Q.<wbr>7Cc50C9I0goedg9Bzgoedg94OiRbvE<wbr>ynTR7EFm0wFSOZQCOsOiGQs3EIzyUM<wbr>Ti7jnD7qzmWjn-<wbr>UVT3SwTiJx7NLo0Q**></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.1:5071;r2=on;lr=<wbr>on;ftag=<wbr>YNdSUHC8KGHA7ZtlPh5rrTpdcW8sdp<wbr>OW;did=8de.7651></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.1:5070;lr=on;<wbr>ftag=<wbr>YNdSUHC8KGHA7ZtlPh5rrTpdcW8sdp<wbr>OW;did=8de.01b2></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.1:5069;r2=on;lr=<wbr>on;ftag=<wbr>YNdSUHC8KGHA7ZtlPh5rrTpdcW8sdp<wbr>OW;vsf=<wbr>AAAAAAABAAAAAAAAAAAAAAAIMDE-;<wbr>did=8de.d821></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:192.168.2.9:5069;r2=on;<wbr>lr=on;ftag=<wbr>YNdSUHC8KGHA7ZtlPh5rrTpdcW8sdp<wbr>OW;vsf=<wbr>AAAAAAABAAAAAAAAAAAAAAAIMDE-;<wbr>did=8de.d821></a></tt><tt><br>
</tt><tt> From: "Door" <a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
href="mailto:sip:u1@192.168.2.101"
target="_blank" moz-do-not-send="true"><sip:u1@192.168.2.101></a>;tag=<wbr>YNdSUHC8KGHA7ZtlPh5rrTpdcW8sdp<wbr>OW</tt><tt><br>
</tt><tt> To: <a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
href="mailto:sip:004540294149@scantron.viptel.dk:5070" target="_blank"
moz-do-not-send="true"><sip:004540294149@scantron.<wbr>viptel.dk:5070></a>;tag=1865008112</tt><tt><br>
</tt><tt> Call-ID: ou8V0cLHn.P7Oca-<wbr>pgsnMmrWO43kIQX8</tt><tt><br>
</tt><tt> CSeq: 5778 INVITE</tt><tt><br>
</tt><tt> Contact:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.8;line=sr-z-<wbr>yMnrBS7CQM0gqS0CQ2Q3m27FwI73qx<wbr>0CQo6gJSngJM7gcHODXPdb7Md5XSvj<wbr>Eqzc**></a></tt><tt><br>
</tt><tt> Allow:
INVITE,ACK,PRACK,SUBSCRIBE,<wbr>BYE,CANCEL,NOTIFY,INFO,REFER,<wbr>UPDATE</tt><tt><br>
</tt><tt> P-AS-Response: 40294149</tt><tt><br>
</tt><tt> Content-Type: application/sdp</tt><tt><br>
</tt><tt> Content-Length: 499</tt><tt><br>
</tt><tt> Message Body</tt><br>
</p>
<p><b>OK (Without 5070)</b><br>
</p>
<p><tt>No. Time
Source Destination
Protocol Length Info</tt><tt><br>
</tt><tt> 373 21:44:42.955075
127.0.0.1 127.0.0.1
SIP/SDP 2199 Status: 200 OK |</tt><tt><br>
</tt><tt><br>
</tt><tt>Frame 373: 2199 bytes on wire (17592
bits), 2199 bytes captured (17592 bits)</tt><tt><br>
</tt><tt>Linux cooked capture</tt><tt><br>
</tt><tt>Internet Protocol Version 4, Src:
127.0.0.1, Dst: 127.0.0.1</tt><tt><br>
</tt><tt>User Datagram Protocol, Src Port: 5071,
Dst Port: 5069</tt><tt><br>
</tt><tt>Session Initiation Protocol (200)</tt><tt><br>
</tt><tt> Status-Line: SIP/2.0 200 OK</tt><tt><br>
</tt><tt> Message Header</tt><tt><br>
</tt><tt> Via: SIP/2.0/UDP
127.0.0.1:5069;rport=5069;<wbr>branch=z9hG4bKeea.<wbr>431611add9dee6ae89135983a85d30<wbr>21.0</tt><tt><br>
</tt><tt> Via: SIP/2.0/UDP
192.168.2.101:10120;received=<wbr>192.168.2.101;rport=10120;<wbr>branch=z9hG4bKPjXjzYAzDU-<wbr>AJ9ug6mWhSQVI4gwRomuejk</tt><tt><br>
</tt><tt> Record-Route: <a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.8;line=sr-z-<wbr>yMngm271wI73zx7gmx0CmHdDZWd-w*<wbr>></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.8;line=sr-z-<wbr>yMngm271wI73zx7gmx0Cq.7Cc-<wbr>039Sz4Rxz5kezbQWOtUMn-<wbr>9yTjcWODXoTC9BzK**></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.8;line=sr-z-<wbr>yMn4LSntRr0NzI7NQ574XqnC0M7gQ5<wbr>0NJNL4EgTCQ-7imIQD7Vz12-<wbr>sjkSTtMxTiB.7Cc-<wbr>0399LtUqzgSGnCQx0gQ56gLG6g0wn5<wbr>UILt2NziWIO3ooTDcHdDZ*></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.8;line=sr-z-<wbr>yMngm271wI73zx7gmx0Nm.<wbr>7Cc5039Sz4Rxz5kezbQWOtUMn-<wbr>9yTjcWODXoTC9BzK**></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.8;line=sr-z-<wbr>yMngm271wI7CJx0gZx73Q.<wbr>7Cc50C9I0goedg9Bzgoedg94OiRbvj<wbr>7pJJTBsJyFttWTd-<wbr>XVsSuS75k3EqOEsCOZF3k6YiyQn-<wbr>UVT3oyLCQx73Z-></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.1:5071;r2=on;lr=<wbr>on;ftag=<wbr>sJQFliIRYoYobikO47pCVGUi7HH0Kx<wbr>iP;did=ea4.426></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.1:5069;r2=on;lr=<wbr>on;ftag=<wbr>sJQFliIRYoYobikO47pCVGUi7HH0Kx<wbr>iP;vsf=<wbr>AAAAAAABAAAAAAAAAAAAAAAIMDE-;<wbr>did=ea4.7dd2></a></tt><tt><br>
</tt><tt> Record-Route:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:192.168.2.9:5069;r2=on;<wbr>lr=on;ftag=<wbr>sJQFliIRYoYobikO47pCVGUi7HH0Kx<wbr>iP;vsf=<wbr>AAAAAAABAAAAAAAAAAAAAAAIMDE-;<wbr>did=ea4.7dd2></a></tt><tt><br>
</tt><tt> From: "Door" <a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
href="mailto:sip:u1@192.168.2.101"
target="_blank" moz-do-not-send="true"><sip:u1@192.168.2.101></a>;tag=<wbr>sJQFliIRYoYobikO47pCVGUi7HH0Kx<wbr>iP</tt><tt><br>
</tt><tt> To: <a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
href="mailto:sip:004540294149@scantron.viptel.dk:5070" target="_blank"
moz-do-not-send="true"><sip:004540294149@scantron.<wbr>viptel.dk:5070></a>;tag=1402236088</tt><tt><br>
</tt><tt> Call-ID:
31a27HAVA7aFhLaX9uZkBxHu31OEZq<wbr>Oz</tt><tt><br>
</tt><tt> CSeq: 9542 INVITE</tt><tt><br>
</tt><tt> Contact:
<a
class="m_-2467796071268748008moz-txt-link-rfc2396E"
moz-do-not-send="true"><sip:127.0.0.8;line=sr-z-<wbr>yMnrBS7CQM0gqS0CQ2Q3m27FwI73qx<wbr>0CQo6gJSngJM7gcHODXPdb7Md5XSvj<wbr>Eqzc**></a></tt><tt><br>
</tt><tt> Allow:
INVITE,ACK,PRACK,SUBSCRIBE,<wbr>BYE,CANCEL,NOTIFY,INFO,REFER,<wbr>UPDATE</tt><tt><br>
</tt><tt> P-AS-Response: 40294149</tt><tt><br>
</tt><tt> Content-Type: application/sdp</tt><tt><br>
</tt><tt> Content-Length: 500</tt><tt><br>
</tt><tt> Message Body</tt><br>
<br>
</p>
<p>Somehow it must be the contents in the 200 Ok
package, but I really cant se any significant
difference.</p>
<p>Anybody knows what that message is caused by?<br>
</p>
<pre class="m_-2467796071268748008moz-signature" cols="72">--
-------------------- Med Liberalistiske Hilsner ----------------------
Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
<a href="https://maps.google.com/?q=Sofienlundvej+6B&entry=gmail&source=g" moz-do-not-send="true">Sofienlundvej 6B</a>, 7560 Hjerm, Tlf: 40 29 41 49
Den ikke akademiske hjemmeside for liberalismen - <a class="m_-2467796071268748008moz-txt-link-abbreviated" href="http://www.liberalismen.dk" target="_blank" moz-do-not-send="true">www.liberalismen.dk</a>
</pre>
<br>
<fieldset
class="m_-2467796071268748008mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_-2467796071268748008moz-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_-2467796071268748008moz-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/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
<span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
<span class="HOEnZb"><font color="#888888"> <br>
<pre class="m_-2467796071268748008moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_-2467796071268748008moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="m_-2467796071268748008moz-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 - April 16-18, 2018, Berlin - <a class="m_-2467796071268748008moz-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_-2467796071268748008moz-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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</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 - April 16-18, 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>