<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    <div class="moz-cite-prefix">On 10/24/13 3:49 PM, anfecora wrote:<br>
    </div>
    <blockquote
cite="mid:CAHjGmHn8G8TfjWVkJV18z=5dhKueO1ioNVoZqPbvgD9jKTnGbg@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span
          style="font-family:arial,sans-serif;font-size:13.333333969116211px">Hi
          all, can anyone help me to find out what is wrong with my
          setup, i have an asterisk behind a kamailio, kamailio is
          proxying all packages  to the outside.</span>
        <div
          style="font-family:arial,sans-serif;font-size:13.333333969116211px">
          <br>
        </div>
        <div
          style="font-family:arial,sans-serif;font-size:13.333333969116211px">when
          the call is bridge it gets disconnected after a few seconds,
          it seems that our voip carrier is sending a bye because we
          didn't answer to their 200 ok properly, but as the trace shows
          we did only that kamailio is answering to the contact header
          ip not the ip that is sending the ok.</div>
      </div>
    </blockquote>
    <br>
    <br>
    the ACK has to be forwarded where the INVITE was forwarded, not
    where the 200ok was forwarded.<br>
    <br>
    We need full ngrep trace, from INVITE to BYE to see the contact and
    record-route headers in INVITE/200ok in order to state what part of
    the routing is going wrong there.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
cite="mid:CAHjGmHn8G8TfjWVkJV18z=5dhKueO1ioNVoZqPbvgD9jKTnGbg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div
          style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br>
        </div>
        <div
          style="font-family:arial,sans-serif;font-size:13.333333969116211px">I
          am sorry i sent a too long message before i will try skim it a
          bit. </div>
        <div
          style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br>
        </div>
        <div
          style="font-family:arial,sans-serif;font-size:13.333333969116211px">any
          help is appreciated .</div>
        <div
          style="font-family:arial,sans-serif;font-size:13.333333969116211px">
          <br>
        </div>
        <div
          style="font-family:arial,sans-serif;font-size:13.333333969116211px">thanks.</div>
        <div><br>
          <div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">my
                setup </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">request_route
                {</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">       
                if (!mf_process_maxfwd_header("10")) {</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">       
                        sl_send_reply("483","Too Many Hops");</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3">   
                            exit;</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">       
                }</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">       
                if(is_method("OPTIONS")) {</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3">   
                        # send reply for each options request</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">       
                    sl_send_reply("200", "ok");</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">       
                    exit();</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3">   
                     }</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"> 
                 if(method=="BYE") {</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3"> 
                 #Account BYE transactions</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">};</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3">if
                (method=="CANCEL") {</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">if
                (t_check_trans()) t_relay();</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">exit;</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">};</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"> if
                (loose_route()) {</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">t_relay();</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3">   
                            exit;</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">       }</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"> if
                (is_method("INVITE")) { </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3">   
                            record_route();</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">       
                }</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3">f
                (!t_relay_to_udp("3.1.1.1", "5060")) {</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">sl_reply_error();</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">exit;</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">};</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">exit</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">};</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">here is
                a trace to a call made to a hotel.</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">i had
                changed the real ips for obvious reasons.</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3">thanks.</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">asterisk
                ip 1.1.1.1</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">kamailio
                internal 1.1.1.2</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3">kamailio
                external 2.0.0.1</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">Voip
                Carrier 3.1.1.1</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px"><font
                color="#000000" face="Times New Roman" size="3">voip
                contact ip 3.1.1.2</font></div>
            <div
              style="font-family:arial,sans-serif;font-size:13.333333969116211px">
              <font color="#000000" face="Times New Roman" size="3"><br>
              </font></div>
            <div><font color="#000000" face="Times New Roman" size="3">
                <div>U 2013/10/23 17:26:20.354248 <a
                    moz-do-not-send="true" href="http://1.1.1.2:5060">1.1.1.2:5060</a>
                  -> <a moz-do-not-send="true"
                    href="http://3.1.1.2:5060">3.1.1.2:5060</a></div>
                <div>ACK <a moz-do-not-send="true"
                    href="http://sip:76890723276341079@3.1.1.2:5060">sip:76890723276341079@3.1.1.2:5060</a>
                  SIP/2.0.</div>
                <div>Via: SIP/2.0/UDP
                  2.0.0.1:5060;branch=z9hG4bKcydzigwkX.</div>
                <div>Via: SIP/2.0/UDP
                  1.1.1.1:5060;branch=z9hG4bK280c4e9c;rport=5060.</div>
                <div>Route:
<a class="moz-txt-link-rfc2396E" href="sip:2.0.0.1;lr=on;ftag=as4bc322e9"><sip:2.0.0.1;lr=on;ftag=as4bc322e9></a>,<a class="moz-txt-link-rfc2396E" href="sip:3.1.1.1;lr;ftag=as4bc322e9;did=8b8.d7ef5a05"><sip:3.1.1.1;lr;ftag=as4bc322e9;did=8b8.d7ef5a05></a>.</div>
                <div>Max-Forwards: 16.</div>
                <div>From: "+19812457865" <<a moz-do-not-send="true"
                    href="mailto:sip%3A%2B19812457865@1.1.1.1">sip:+19812457865@1.1.1.1</a>>;tag=as4bc322e9.</div>
                <div>To: <<a moz-do-not-send="true"
                    href="mailto:sip%3A76890723276341079@3.1.1.2">sip:76890723276341079@3.1.1.2</a>>;tag=3591552407-393967.</div>
                <div>Contact: <<a moz-do-not-send="true"
                    href="http://sip:+19812457865@1.1.1.1:5060">sip:+19812457865@1.1.1.1:5060</a>>.</div>
                <div>Call-ID: <a moz-do-not-send="true"
                    href="http://7d0ca48c1d48c14d104fac1f59194ae0@1.1.1.1:5060">7d0ca48c1d48c14d104fac1f59194ae0@1.1.1.1:5060</a>.</div>
                <div>CSeq: 102 ACK.</div>
                <div>User-Agent: Asterisk PBX 1.8.15-cert2.</div>
                <div>Content-Length: 0.</div>
                <div>.</div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>U 2013/10/23 17:26:36.355580 <a
                    moz-do-not-send="true" href="http://3.1.1.1:5060">3.1.1.1:5060</a>
                  -> <a moz-do-not-send="true"
                    href="http://1.1.1.2:5060">1.1.1.2:5060</a></div>
                <div>BYE <a moz-do-not-send="true"
                    href="http://sip:+19812457865@1.1.1.1:5060">sip:+19812457865@1.1.1.1:5060</a>
                  SIP/2.0.</div>
                <div>Max-Forwards: 69.</div>
                <div>Route: <a class="moz-txt-link-rfc2396E" href="sip:2.0.0.1;lr=on;ftag=as4bc322e9"><sip:2.0.0.1;lr=on;ftag=as4bc322e9></a>.</div>
                <div>To: "+19812457865" <<a moz-do-not-send="true"
                    href="mailto:sip%3A%2B19812457865@1.1.1.1">sip:+19812457865@1.1.1.1</a>>;tag=as4bc322e9.</div>
                <div>From: <<a moz-do-not-send="true"
                    href="mailto:sip%3A76890723276341079@3.1.1.1">sip:76890723276341079@3.1.1.1</a>>;tag=3591552407-393967.</div>
                <div>Call-ID: <a moz-do-not-send="true"
                    href="http://7d0ca48c1d48c14d104fac1f59194ae0@1.1.1.1:5060">7d0ca48c1d48c14d104fac1f59194ae0@1.1.1.1:5060</a>.</div>
                <div>CSeq: 2 BYE.</div>
                <div>Allow: INVITE, BYE, OPTIONS, CANCEL, ACK, REGISTER,
                  NOTIFY, INFO, REFER, SUBSCRIBE, PRACK, UPDATE.</div>
                <div>Via: SIP/2.0/UDP
                  3.1.1.1:5060;branch=z9hG4bKce8a.db93afa3.0.</div>
                <div>Via: SIP/2.0/UDP
                  3.1.1.2:5060;branch=z9hG4bK96003ecbb11f5deaf6014235140e6952.</div>
                <div>Contact: <<a moz-do-not-send="true"
                    href="http://sip:76890723276341079@3.1.1.2:5060">sip:76890723276341079@3.1.1.2:5060</a>>.</div>
                <div>Content-Length: 0.</div>
              </font></div>
          </div>
          <div
            style="font-family:arial,sans-serif;font-size:13.333333969116211px">
            <font color="#000000" face="Times New Roman" size="3"><br>
            </font></div>
          <div><font color="#000000" face="Times New Roman" size="3">
              <div>U 2013/10/23 17:26:20.354248 <a
                  moz-do-not-send="true" href="http://1.1.1.2:5060">1.1.1.2:5060</a>
                -> <a moz-do-not-send="true"
                  href="http://3.1.1.2:5060">3.1.1.2:5060</a></div>
              <div>ACK <a moz-do-not-send="true"
                  href="http://sip:76890723276341079@3.1.1.2:5060">sip:76890723276341079@3.1.1.2:5060</a>
                SIP/2.0.</div>
              <div>Via: SIP/2.0/UDP
                2.0.0.1:5060;branch=z9hG4bKcydzigwkX.</div>
              <div>Via: SIP/2.0/UDP
                1.1.1.1:5060;branch=z9hG4bK280c4e9c;rport=5060.</div>
              <div>Route:
<a class="moz-txt-link-rfc2396E" href="sip:2.0.0.1;lr=on;ftag=as4bc322e9"><sip:2.0.0.1;lr=on;ftag=as4bc322e9></a>,<a class="moz-txt-link-rfc2396E" href="sip:3.1.1.1;lr;ftag=as4bc322e9;did=8b8.d7ef5a05"><sip:3.1.1.1;lr;ftag=as4bc322e9;did=8b8.d7ef5a05></a>.</div>
              <div>Max-Forwards: 16.</div>
              <div>From: "+19812457865" <<a moz-do-not-send="true"
                  href="mailto:sip%3A%2B19812457865@1.1.1.1">sip:+19812457865@1.1.1.1</a>>;tag=as4bc322e9.</div>
              <div>To: <<a moz-do-not-send="true"
                  href="mailto:sip%3A76890723276341079@3.1.1.2">sip:76890723276341079@3.1.1.2</a>>;tag=3591552407-393967.</div>
              <div>Contact: <<a moz-do-not-send="true"
                  href="http://sip:+19812457865@1.1.1.1:5060">sip:+19812457865@1.1.1.1:5060</a>>.</div>
              <div>Call-ID: <a moz-do-not-send="true"
                  href="http://7d0ca48c1d48c14d104fac1f59194ae0@1.1.1.1:5060">7d0ca48c1d48c14d104fac1f59194ae0@1.1.1.1:5060</a>.</div>
              <div>CSeq: 102 ACK.</div>
              <div>User-Agent: Asterisk PBX 1.8.15-cert2.</div>
              <div>Content-Length: 0.</div>
              <div>.</div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>U 2013/10/23 17:26:36.355580 <a
                  moz-do-not-send="true" href="http://3.1.1.1:5060">3.1.1.1:5060</a>
                -> <a moz-do-not-send="true"
                  href="http://1.1.1.2:5060">1.1.1.2:5060</a></div>
              <div>BYE <a moz-do-not-send="true"
                  href="http://sip:+19812457865@1.1.1.1:5060">sip:+19812457865@1.1.1.1:5060</a>
                SIP/2.0.</div>
              <div>Max-Forwards: 69.</div>
              <div>Route: <a class="moz-txt-link-rfc2396E" href="sip:2.0.0.1;lr=on;ftag=as4bc322e9"><sip:2.0.0.1;lr=on;ftag=as4bc322e9></a>.</div>
              <div>To: "+19812457865" <<a moz-do-not-send="true"
                  href="mailto:sip%3A%2B19812457865@1.1.1.1">sip:+19812457865@1.1.1.1</a>>;tag=as4bc322e9.</div>
              <div>From: <<a moz-do-not-send="true"
                  href="mailto:sip%3A76890723276341079@3.1.1.1">sip:76890723276341079@3.1.1.1</a>>;tag=3591552407-393967.</div>
              <div>Call-ID: <a moz-do-not-send="true"
                  href="http://7d0ca48c1d48c14d104fac1f59194ae0@1.1.1.1:5060">7d0ca48c1d48c14d104fac1f59194ae0@1.1.1.1:5060</a>.</div>
              <div>CSeq: 2 BYE.</div>
              <div>Allow: INVITE, BYE, OPTIONS, CANCEL, ACK, REGISTER,
                NOTIFY, INFO, REFER, SUBSCRIBE, PRACK, UPDATE.</div>
              <div>Via: SIP/2.0/UDP
                3.1.1.1:5060;branch=z9hG4bKce8a.db93afa3.0.</div>
              <div>Via: SIP/2.0/UDP
                3.1.1.2:5060;branch=z9hG4bK96003ecbb11f5deaf6014235140e6952.</div>
              <div>Contact: <<a moz-do-not-send="true"
                  href="http://sip:76890723276341079@3.1.1.2:5060">sip:76890723276341079@3.1.1.2:5060</a>>.</div>
              <div>Content-Length: 0.</div>
            </font></div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.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-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Trainings - Berlin, Nov 25-28
  - more details about Kamailio trainings at <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> -
</pre>
  </body>
</html>