<div dir="ltr">Hello,<div><br></div><div>likely you have to look at the implementation of the function, the cfg export flags are not enough to be changed, the process of suspending implies different things for requests and replies.</div><div><br></div><div>Maybe if you can explain with more details what exactly you want to achieve, there could be some other option. Otherwise, again, looking at the C implementation of the function is the way to go.</div><div><br></div><div>Cheers,<br>Daniel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 1, 2017 at 12:10 PM, Rajagopal Maddi <span dir="ltr"><<a href="mailto:rajagopal.maddi@plintron.com" target="_blank">rajagopal.maddi@plintron.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_495620518514222487WordSection1">
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We are checking the kamailio source code for the ASYNC module. The system is working for REQUEST_ROUTE, but not for REPLY_ROUTE.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We added the ANY_ROUTE in the cmd_export_t, but still the async_route is not able to suspend for SIP Reply (For example, 401 – Unauthorized). Can we get some help on how to perform this. Some hints on how to perform would really help our
 development.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">static cmd_export_t cmds[]={<u></u><u></u></p>
<p class="MsoNormal">        {"async_route", (cmd_function)w_async_route, 2, fixup_async_route,<u></u><u></u></p>
<p class="MsoNormal">                0, REQUEST_ROUTE|FAILURE_ROUTE|<span style="background:aqua">AN<wbr>Y_ROUTE</span>},<u></u><u></u></p>
<p class="MsoNormal">        {"async_sleep", (cmd_function)w_async_sleep, 1, fixup_async_sleep,<u></u><u></u></p>
<p class="MsoNormal">                0, REQUEST_ROUTE|FAILURE_ROUTE|<span style="background:aqua">AN<wbr>Y_ROUTE</span>},<u></u><u></u></p>
<p class="MsoNormal">        {"async_task_route", (cmd_function)w_async_task_<wbr>route, 1, fixup_async_task_route,<u></u><u></u></p>
<p class="MsoNormal">                0, REQUEST_ROUTE|FAILURE_ROUTE|<span style="background:aqua">AN<wbr>Y_ROUTE</span>},<u></u><u></u></p>
<p class="MsoNormal">       {0, 0, 0, 0, 0, 0}<u></u><u></u></p>
<p class="MsoNormal">};<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal">RajaGopal Maddi<u></u><u></u></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></div><div><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></div></div></div></div></div>
</div>