<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>