<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <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:192.168.2.101:10120)</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;branch=z9hG4bK6ef1.0c009dcf5b4965c5d1a13d508e0b31c5.0</tt><tt><br>
      </tt><tt>        Via: SIP/2.0/UDP
192.168.2.101:10120;received=192.168.2.101;rport=10120;branch=z9hG4bKPjIq.uY6jYbHkIqCo03bYLsTzccb7oy9jw</tt><tt><br>
      </tt><tt>        Record-Route:
        <sip:127.0.0.8;line=sr-z-yMngm271wI73zx7gmx0CmHdDZWd-w*></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:127.0.0.8;line=sr-z-yMngm271wI73zx7gmx0Cq.7Cc-039Sz4Rxz5kezbQWOtUMn-9yTjcWODXoTC9BzK**></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:127.0.0.8;line=sr-z-yMngmS0-R4LCz2LtZ-Lg02L-JoLNQGn3057t0SntZ5LNL2QD7Vz12-sjkSTtMxTiB.7Cc-0399LtUqzgSGnCQx0gQ56gLG6g0wn5UILt2NziWIO3ooTDcHdDZ*></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:127.0.0.8;line=sr-z-yMngm271wI73zx7gmx0Nm.7Cc5039Sz4Rxz5kezbQWOtUMn-9yTjcWODXoTC9BzK**></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:127.0.0.8;line=sr-z-yMngm271wI7CJx0gZx73Q.7Cc50C9I0goedg9Bzgoedg94OiRbvEynTR7EFm0wFSOZQCOsOiGQs3EIzyUMTi7jnD7qzmWjn-UVT3SwTiJx7NLo0Q**></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:127.0.0.1:5071;r2=on;lr=on;ftag=YNdSUHC8KGHA7ZtlPh5rrTpdcW8sdpOW;did=8de.7651></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:127.0.0.1:5070;lr=on;ftag=YNdSUHC8KGHA7ZtlPh5rrTpdcW8sdpOW;did=8de.01b2></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:127.0.0.1:5069;r2=on;lr=on;ftag=YNdSUHC8KGHA7ZtlPh5rrTpdcW8sdpOW;vsf=AAAAAAABAAAAAAAAAAAAAAAIMDE-;did=8de.d821></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:192.168.2.9:5069;r2=on;lr=on;ftag=YNdSUHC8KGHA7ZtlPh5rrTpdcW8sdpOW;vsf=AAAAAAABAAAAAAAAAAAAAAAIMDE-;did=8de.d821></tt><tt><br>
      </tt><tt>        From: "Door"
        <a class="moz-txt-link-rfc2396E" href="mailto:sip:u1@192.168.2.101"><sip:u1@192.168.2.101></a>;tag=YNdSUHC8KGHA7ZtlPh5rrTpdcW8sdpOW</tt><tt><br>
      </tt><tt>        To:
        <a class="moz-txt-link-rfc2396E" href="mailto:sip:004540294149@scantron.viptel.dk:5070"><sip:004540294149@scantron.viptel.dk:5070></a>;tag=1865008112</tt><tt><br>
      </tt><tt>        Call-ID: ou8V0cLHn.P7Oca-pgsnMmrWO43kIQX8</tt><tt><br>
      </tt><tt>        CSeq: 5778 INVITE</tt><tt><br>
      </tt><tt>        Contact:
<sip:127.0.0.8;line=sr-z-yMnrBS7CQM0gqS0CQ2Q3m27FwI73qx0CQo6gJSngJM7gcHODXPdb7Md5XSvjEqzc**></tt><tt><br>
      </tt><tt>        Allow:
        INVITE,ACK,PRACK,SUBSCRIBE,BYE,CANCEL,NOTIFY,INFO,REFER,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;branch=z9hG4bKeea.431611add9dee6ae89135983a85d3021.0</tt><tt><br>
      </tt><tt>        Via: SIP/2.0/UDP
192.168.2.101:10120;received=192.168.2.101;rport=10120;branch=z9hG4bKPjXjzYAzDU-AJ9ug6mWhSQVI4gwRomuejk</tt><tt><br>
      </tt><tt>        Record-Route:
        <sip:127.0.0.8;line=sr-z-yMngm271wI73zx7gmx0CmHdDZWd-w*></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:127.0.0.8;line=sr-z-yMngm271wI73zx7gmx0Cq.7Cc-039Sz4Rxz5kezbQWOtUMn-9yTjcWODXoTC9BzK**></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:127.0.0.8;line=sr-z-yMn4LSntRr0NzI7NQ574XqnC0M7gQ50NJNL4EgTCQ-7imIQD7Vz12-sjkSTtMxTiB.7Cc-0399LtUqzgSGnCQx0gQ56gLG6g0wn5UILt2NziWIO3ooTDcHdDZ*></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:127.0.0.8;line=sr-z-yMngm271wI73zx7gmx0Nm.7Cc5039Sz4Rxz5kezbQWOtUMn-9yTjcWODXoTC9BzK**></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:127.0.0.8;line=sr-z-yMngm271wI7CJx0gZx73Q.7Cc50C9I0goedg9Bzgoedg94OiRbvj7pJJTBsJyFttWTd-XVsSuS75k3EqOEsCOZF3k6YiyQn-UVT3oyLCQx73Z-></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:127.0.0.1:5071;r2=on;lr=on;ftag=sJQFliIRYoYobikO47pCVGUi7HH0KxiP;did=ea4.426></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:127.0.0.1:5069;r2=on;lr=on;ftag=sJQFliIRYoYobikO47pCVGUi7HH0KxiP;vsf=AAAAAAABAAAAAAAAAAAAAAAIMDE-;did=ea4.7dd2></tt><tt><br>
      </tt><tt>        Record-Route:
<sip:192.168.2.9:5069;r2=on;lr=on;ftag=sJQFliIRYoYobikO47pCVGUi7HH0KxiP;vsf=AAAAAAABAAAAAAAAAAAAAAAIMDE-;did=ea4.7dd2></tt><tt><br>
      </tt><tt>        From: "Door"
        <a class="moz-txt-link-rfc2396E" href="mailto:sip:u1@192.168.2.101"><sip:u1@192.168.2.101></a>;tag=sJQFliIRYoYobikO47pCVGUi7HH0KxiP</tt><tt><br>
      </tt><tt>        To:
        <a class="moz-txt-link-rfc2396E" href="mailto:sip:004540294149@scantron.viptel.dk:5070"><sip:004540294149@scantron.viptel.dk:5070></a>;tag=1402236088</tt><tt><br>
      </tt><tt>        Call-ID: 31a27HAVA7aFhLaX9uZkBxHu31OEZqOz</tt><tt><br>
      </tt><tt>        CSeq: 9542 INVITE</tt><tt><br>
      </tt><tt>        Contact:
<sip:127.0.0.8;line=sr-z-yMnrBS7CQM0gqS0CQ2Q3m27FwI73qx0CQo6gJSngJM7gcHODXPdb7Md5XSvjEqzc**></tt><tt><br>
      </tt><tt>        Allow:
        INVITE,ACK,PRACK,SUBSCRIBE,BYE,CANCEL,NOTIFY,INFO,REFER,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="moz-signature" cols="72">-- 
-------------------- Med Liberalistiske Hilsner ----------------------
   Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
   Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
   Den ikke akademiske hjemmeside for liberalismen - <a class="moz-txt-link-abbreviated" href="http://www.liberalismen.dk">www.liberalismen.dk</a>

</pre>
  </body>
</html>