<div dir="ltr">An excerpt from:<div><br></div><div><a href="https://www.kamailio.org/dokuwiki/doku.php/development:write-module">https://www.kamailio.org/dokuwiki/doku.php/development:write-module</a></div><div><br></div><div>It reads:</div><div><br></div><div><div class="gmail-li" style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.7px;background-color:rgb(255,255,255)"><strong>flags</strong> <em>int</em> - Can't have a structure without flags! The flags tell the script when it is legal to call the function. The flag values can be “or'ed” together if the function can be called from more then one routing section of the openser.cfg script. i.e. <code style="background-color:rgb(249,249,249)"><em>REQUEST_ROUTE | ONREPLY_ROUTE</em></code></div><ul style="line-height:1.5em;list-style-type:square;margin:0.3em 0px 0px 1.5em;padding:0px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.7px"><li class="gmail-level2" style="margin-bottom:0.1em"><div class="gmail-li"><strong>REQUEST_ROUTE</strong> - The function can be called in the request route section of the openser.cfg script.</div></li><li class="gmail-level2" style="margin-bottom:0.1em"><div class="gmail-li"><strong>FAILURE_ROUTE</strong> - The function can be called in the failure route section of the openser.cfg script.</div></li><li class="gmail-level2" style="margin-bottom:0.1em"><div class="gmail-li"><strong>ONREPLY_ROUTE</strong> - The function can be called in the reply route section of the openser.cfg script.</div></li><li class="gmail-level2" style="margin-bottom:0.1em"><div class="gmail-li"><strong>BRANCH_ROUTE</strong> - The function can be called in the branch route section of the openser.cfg script.</div></li></ul></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=8921f54d-9d2f-46aa-ae38-8913055d09b5"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div>
<br><div class="gmail_quote">On Tue, Jul 4, 2017 at 4:36 PM, Cléviton Mendes de Araújo <span dir="ltr"><<a href="mailto:clevitonmendes@gmail.com" target="_blank">clevitonmendes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><p style="font-family:sans-serif;font-size:13.696px">Hi Folks</p><p style="font-family:sans-serif;font-size:13.696px">Let me do one design question about to writing code module when write it.</p><p style="font-family:sans-serif;font-size:13.696px">What’s conditions to allow an module exported function may be running from Kamailio route blocks?</p><p style="font-family:sans-serif;font-size:13.696px">Why can I running an module function from REQUST_ROUTE and isn’t from REPLY_ROUTE block?</p><p style="font-family:sans-serif;font-size:13.696px">What restricts me to run from one block and not another?</p><p style="font-family:sans-serif;font-size:13.696px">Best regards<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888"><p style="font-family:sans-serif;font-size:13.696px">CMA</p></font></span></div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Development Mailing List<br>
<a href="mailto:sr-dev@lists.kamailio.org">sr-dev@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>dev</a><br>
<br></blockquote></div><br></div>