<div dir="ltr"><span class="" id=":18u.1" tabindex="-1" style="">kamailio</span> 5.5.0-dev3<br><br>I'm unsure if this is expected behavior, so thought I would ask...<br><br>When using http_<span class="" id=":18u.2" tabindex="-1" style="">async</span>_query("URI", "<span class="" id=":18u.3" tabindex="-1" style="">ROUTENAME</span>")<br><br>request_route {<br>    route(<span class="" id=":18u.4" tabindex="-1" style="">AUTH</span>);<br><br>    # this does not get executed below route(<span class="" id=":18u.5" tabindex="-1" style="">AUTH</span>)<br>    <span class="" id=":18u.6" tabindex="-1" style="">xinfo</span>("[$<span class="" id=":18u.7" tabindex="-1" style="">ci</span>][$rm] we hit this line");<br>}<br><br>route[<span class="" id=":18u.8" tabindex="-1" style="">AUTH</span>] {<br>    t_<span class="" id=":18u.9" tabindex="-1" style="">newtran</span>();<br>    http_<span class="" id=":18u.10" tabindex="-1" style="">async</span>_query("URI", "<span class="" id=":18u.11" tabindex="-1" style="">ROUTENAME</span>");<br>}<br><br>route[<span class="" id=":18u.12" tabindex="-1" style="">ROUTENAME</span>] {<br>    # do stuff here to check authentication and return<br><br>    if(<span class="" id=":18u.13" tabindex="-1" style="">auth</span> + registration) {<br>        append_hf("Path....");<br>        <span class="" id=":18u.14" tabindex="-1" style="">msg</span>_apply_changes(); # this fails and errors out about incorrect route<br>        # ^ invalid usage - not in request route or a reply<br>        save("location");<br>    }<br><br>    if(<span class="" id=":18u.15" tabindex="-1" style="">auth</span> + invite) {<br>        # route to <span class="" id=":18u.16" tabindex="-1" style="">pstn</span> <br>    }<br>}





<div><br></div><div>Expected behavior: to be able to obtain some processing / information gathering about authentication with the call and additional information possibly and return to normal routing.  As-is now I've to move the actions all into <span class="" id=":18u.17" tabindex="-1" style="">ROUTENAME</span> for <span class="" id=":18u.18" tabindex="-1" style="">kamailio</span> to continue processing, it does not go back to request_route { }.</div><div><br></div><div># this does not get executed below route(<span class="" id=":18u.19" tabindex="-1" style="">AUTH</span>)</div><div><br></div><div>Is this expected behavior, or am I missing something?</div><div><br></div><div>If I do catch route(<span class="" id=":18u.20" tabindex="-1" style="">AUTH</span>) with a hash table and prevent its execution after first run, the <span class="" id=":18u.21" tabindex="-1" style="">avp's</span> from the transaction created are not available in request_route that were set in <span class="" id=":18u.22" tabindex="-1" style="">ROUTENAME</span>.</div></div>