<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    haven't had time to look into sources, can you try:<br>
    <br>
    $ru = $ru;<br>
    <br>
    after uac_auth()?<br>
    <br>
    What I am trying to discover is if uac_auth() creates a new branch,
    because if it doesn't and you don't update any of the elements
    related to next hop address, kamailio won't detect there is need for
    a new relay.<br>
    <br>
    If still doesn't work, then provide the log messages with debug=3 in
    config file.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 10/8/13 1:31 PM, Keith wrote:<br>
    </div>
    <blockquote
cite="mid:CAK7Ybu96QT+xt6BqJCjemai5En8uZ7VHigCg=AFvpP5tUYKXWw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I am trying to "on register" from kamailio to an asterisk
          box. I am having trouble when asterisk sends a 401 to the
          first register response. I have tried to set a failure route
          as follows:</div>
        <div>t_on_failure("FAILURE_HANDLE"); <br>
        </div>
        <div><br>
        </div>
        <div>
          <div>failure_route[FAILURE_HANDLE] { </div>
          <div><br>
          </div>
          <div>       if (t_is_canceled()) {</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>} </div>
          <div><br>
          </div>
          <div>       if(t_check_status("401")) { </div>
          <div>          uac_auth(); </div>
          <div>       } </div>
          <div><br>
          </div>
          <div>       </div>
          <div>
            <br>
          </div>
          <div>       t_relay(); </div>
          <div>    } </div>
        </div>
        <div><br>
        </div>
        <div>But it doesn't see to send the credentials back.</div>
        <div><br>
        </div>
        <div>Any help would be appreciated.</div>
        <div>Thanks.</div>
        <div>Keith</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; Miami, Nov 18-20, 2013
  - 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>