<div dir="ltr"><div><div><div><div><div><div>Hello Daniel,<br><br></div>Record-route is only used on request route:<br>        <br># record routing for dialog forming requests (in case they are routed)<br>        # - remove preloaded route headers<br>        remove_hf("Route");<br>        if (is_method("INVITE|SUBSCRIBE"))<br>                record_route();<br><br></div>But not after.<br></div>In the next few lines, in route[WITHINDLG], i have: <br><br>if (has_totag()) {<br>                # sequential request withing a dialog should<br>                # take the path determined by record-routing<br>                if (loose_route()) {<br>                        if (is_method("BYE")) {<br>                                setflag(FLT_ACC); # do accounting ...<br>                                setflag(FLT_ACCFAILED); # ... even if the transaction fails<br>                        }<br>                        if ( is_method("ACK") ) {<br>                                # ACK is forwarded statelessy<br>                                route(NATMANAGE);<br>                        }<br>                        route(RELAY);<br>                } else {<br>                        if (is_method("SUBSCRIBE") && uri == myself) {<br>                                # in-dialog subscribe requests<br>                                route(PRESENCE);<br>                                exit;<br>                        }<br>                        if ( is_method("ACK") ) {<br>                                if ( t_check_trans() ) {<br>                                        # no loose-route, but stateful ACK;<br>                                        # must be an ACK after a 487<br>                                        # or e.g. 404 from upstream server<br>                                        t_relay();<br>                                        exit;<br>                                } else {<br>                                        # ACK without matching transaction ... ignore and discard<br>                                        exit;<br>                                }<br>                        }<br>                        sl_send_reply("404","Not here");<br>                }<br>                exit;<br>        }<br><br><br></div>But i don't understand why  "sl_send_reply("404","Not here");" has been executed, and not the other statement ?<br><br></div>Thanks in advance,<br><br></div>Regards.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-06 8:47 GMT+02:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">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 bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    you have the config of kamailio doing record_route() and then
    expecting Route header in BYE, but your BYE is not having one.<br>
    <br>
    Cheers,<br>
    Daniel<div><div class="h5"><br>
    <br>
    <div>On 05/07/15 12:05, Loic Chabert wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hello everyone,<br>
                <br>
              </div>
              I'm a newbie in kamailio world and make some tests to
              dispatch call over several asterisk instances. This part
              works, my call has been distributed over two instances (if
              i make a call with jitsi for example).<br>
            </div>
            Now, i want to test performance of my cluster and use Sipp
            to chalenge it.<br>
            <br>
          </div>
          All method is working fine, except the BYE method, where
          kamailio send me back a 404 Not here.<br>
          <br>
        </div>
        <div>This is my SIPP scenario:<br>
          <br>
          ...<br>
        </div>
        <div>
          <div>
            <div>
              <div><br>
                  <pause/><br>
                <br>
                  <!-- The 'crlf' option inserts a blank line in the
                statistics report. --><br>
                  <send retrans="500"><br>
                    <![CDATA[<br>
                <br>
                      BYE sip:[service]@[remote_ip] SIP/2.0<br>
                      Via: SIP/2.0/[transport]
                [local_ip]:[local_port];branch=[branch]<br>
                      From: sipp <<a href="mailto:sip%3Asipp@loicchabert.fr" target="_blank">sip:sipp@loicchabert.fr</a>>;tag=[pid]SIPpTag00[call_number]<br>
                      To: sut
                <a><sip:[service]@[remote_ip]:[remote_port]></a>[peer_tag_param]<br>
                      Call-ID: [call_id]<br>
                      CSeq: 2 BYE<br>
                      Contact: <a>sip:sipp@</a>[local_ip]:[local_port]<br>
                      Max-Forwards: 70<br>
                      Subject: Performance Test<br>
                      Content-Length: 0<br>
                <br>
                    ]]><br>
                  </send><br>
                ...<br>
                <br>
              </div>
              <div>I use the classic file of kamailio, with some
                adjustement for dispatching.<br>
                <br>
              </div>
              <div>Any ideas concerning this problem ? This BYE is not
                in transaction so he is drop by kamailio ?<br>
                <br>
              </div>
              <div>Thank in advance,<br>
                <br>
              </div>
              <div>Regards.<br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-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 cols="72">-- 
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
  </font></span></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>