<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    you can keep the route[WITHINDLG] as it is in the default
    configuration file, no need to update as in websocket readme. The
    current default one is including the more or less the same logic, so
    it should just work.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 22/03/15 14:22, Austin Einter wrote:<br>
    </div>
    <blockquote
cite="mid:CANXt1k-6rTZMBZFHGvyJp6E+mOoV-jvbFvZKSvJ56MWsDbiWZA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>The README of websocket suggests to modify
                  kamailio.cfg as below<br>
                  <br>
                  <i><b># Handle requests within SIP dialogs<br>
                      route[WITHINDLG] {<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 ($du == "") {<br>
                                                      if
                      (!handle_ruri_alias()) {<br>
                                                             
                      xlog("L_ERR", "Bad alias <$ru>\n");<br>
                                                             
                      sl_send_reply("400", "Bad Request");<br>
                                                              exit;<br>
                                                      }<br>
                                              }<br>
                                              route(RELAY);<br>
                                      } else {<br>
                                              if ( is_method("ACK") ) {<br>
                      ...</b></i><br>
                  <br>
                </div>
                But the original script was<br>
                <br>
                <i><b><br>
                    # Handle requests within SIP dialogs<br>
                    route[WITHINDLG] {<br>
                            if (!has_totag()) return;<br>
                    <br>
                            # sequential request withing a dialog should<br>
                            # take the path determined by record-routing<br>
                            if (loose_route()) {<br>
                                    route(DLGURI);<br>
                                    if (is_method("BYE")) {<br>
                                            setflag(FLT_ACC); # do
                    accounting ...<br>
                                            setflag(FLT_ACCFAILED); #
                    ... even if the transaction fails<br>
                                    }<br>
                                    else if ( is_method("ACK") ) {<br>
                                            # ACK is forwarded
                    statelessy<br>
                                            route(NATMANAGE);<br>
                                    }<br>
                                    else if ( is_method("NOTIFY") ) {<br>
                                            # Add Record-Route for
                    in-dialog NOTIFY as per RFC 6665.<br>
                                            record_route();<br>
                                    }<br>
                                    route(RELAY);<br>
                                    exit;<br>
                            }<br>
                    <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>
                                            route(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>
                            exit;<br>
                    }<br>
                  </b></i><br>
              </div>
              Now I have to include the websocket README suggested
              script in original script. I am not finding logical way
              where shall I include websocket part.<br>
              <br>
            </div>
            Can somebody please help me.<br>
            <br>
          </div>
          Thanks<br>
        </div>
        Austin<br>
      </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://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 World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>