<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
            <div>Perfect. </div><div><br></div><div>Thanks</div><div><br></div><div>KD</div><div><br></div>
            
            <div id="yahoo_quoted_7496371911" class="yahoo_quoted">
                <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                    
                    <div>
                        On Tuesday, May 22, 2018, 3:44:48 PM EDT, Alex Balashov <abalashov@evaristesys.com> wrote:
                    </div>
                    <div><br></div>
                    <div><br></div>
                    <div>It does not return a function, but it can set variables and manipulate<br clear="none">message values within the API exposed into Python:<br clear="none"><br clear="none"><a shape="rect" href="https://github.com/kamailio/kamailio/blob/master/src/modules/app_python/python_examples/handler.py" target="_blank">https://github.com/kamailio/kamailio/blob/master/src/modules/app_python/python_examples/handler.py</a><br clear="none"><br clear="none">In a larger sense, app_python implements the KEMI framework:<br clear="none"><br clear="none"><a shape="rect" href="https://kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/kemi/" target="_blank">https://kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/kemi/</a><br clear="none"><br clear="none">-- Alex<br clear="none"><br clear="none">On Tue, May 22, 2018 at 07:32:35PM +0000, KamDev Essa wrote:<br clear="none"><br clear="none">>  On the app_python. How do I get the value of rn back to to kamailio. does the function return a value? likern = python_exec("my_python_function", "$rU");and evaluate rn later in teh script?<br clear="none">> KD<br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">>     On Tuesday, May 22, 2018, 3:18:01 PM EDT, Alex Balashov <<a shape="rect" ymailto="mailto:abalashov@evaristesys.com" href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> wrote:  <br clear="none">>  <br clear="none">>  <a shape="rect" href="https://kamailio.org/docs/modules/5.1.x/modules/app_python.html" target="_blank">https://kamailio.org/docs/modules/5.1.x/modules/app_python.html</a><br clear="none">> <br clear="none">> Or, if you absolutely must — though I don't recommend it:<br clear="none">> <br clear="none">> <a shape="rect" href="https://kamailio.org/docs/modules/5.1.x/modules/exec.html" target="_blank">https://kamailio.org/docs/modules/5.1.x/modules/exec.html</a><br clear="none">> <br clear="none">> -- Alex<br clear="none">> <br clear="none">> On Tue, May 22, 2018 at 07:14:32PM +0000, KamDev Essa wrote:<br clear="none">> <br clear="none">> >  Awesome. Where can I get info on shelling out to run a lua or python script and getting data. That could very well be a quick and dirty option if its not to bad on performance stats.<br clear="none">> > KD<br clear="none">> >    On Tuesday, May 22, 2018, 3:05:08 PM EDT, Henning Westerholt <<a shape="rect" ymailto="mailto:hw@kamailio.org" href="mailto:hw@kamailio.org">hw@kamailio.org</a>> wrote:  <br clear="none">> >  <br clear="none">> >  #yiv3106319993 p, #yiv3106319993 li {white-space:pre-wrap;}<br clear="none">> > Am Dienstag, 22. Mai 2018, 21:00:47 CEST schrieb KamDev Essa:<br clear="none">> > <br clear="none">> > > In the LRN request via ENUM using dig I provide an IP of my LRN dip provide<br clear="none">> > <br clear="none">> > > and a E.164 formatted TN of the requested user. I get a text dump from<br clear="none">> > <br clear="none">> > > which I extract the rn value if present. I dont not know how to automate<br clear="none">> > <br clear="none">> > > those steps or other steps to get the same solution. KD<br clear="none">> > <br clear="none">> > > [..]<br clear="none">> > <br clear="none">> >  <br clear="none">> > <br clear="none">> > Hello,<br clear="none">> > <br clear="none">> >  <br clear="none">> > <br clear="none">> > if the enum module somehow does not work for you, maybe you could think of adding some python or lua code. You could exec with python_exec e.g. a DNS query and put the result in a pseudo-variable. Just an idea, not tested obviously.<br clear="none">> > <br clear="none">> >  <br clear="none">> > <br clear="none">> > Henning<br clear="none">> >  <br clear="none">> <br clear="none">> > _______________________________________________<br clear="none">> > Kamailio (SER) - Users Mailing List<br clear="none">> > <a shape="rect" ymailto="mailto:sr-users@lists.kamailio.org" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br clear="none">> > <a shape="rect" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br clear="none">> <br clear="none">> <br clear="none">> -- <br clear="none">> Alex Balashov | Principal | Evariste Systems LLC<br clear="none">> <br clear="none">> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) <br clear="none">> Web: <a shape="rect" href="http://www.evaristesys.com/, " target="_blank">http://www.evaristesys.com/, </a><a shape="rect" href="http://www.csrpswitch.com/" target="_blank">http://www.csrpswitch.com/</a><br clear="none">> <br clear="none">> _______________________________________________<br clear="none">> Kamailio (SER) - Users Mailing List<br clear="none">> <a shape="rect" ymailto="mailto:sr-users@lists.kamailio.org" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br clear="none">> <a shape="rect" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><div class="yqt6827667920" id="yqtfd66899"><br clear="none">>   <br clear="none"><br clear="none">> _______________________________________________<br clear="none">> Kamailio (SER) - Users Mailing List<br clear="none">> <a shape="rect" ymailto="mailto:sr-users@lists.kamailio.org" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br clear="none">> <a shape="rect" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br clear="none"><br clear="none"><br clear="none">-- <br clear="none">Alex Balashov | Principal | Evariste Systems LLC<br clear="none"><br clear="none">Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) <br clear="none">Web: <a shape="rect" href="http://www.evaristesys.com/, " target="_blank">http://www.evaristesys.com/, </a><a shape="rect" href="http://www.csrpswitch.com/" target="_blank">http://www.csrpswitch.com/</a><br clear="none"><br clear="none">_______________________________________________<br clear="none">Kamailio (SER) - Users Mailing List<br clear="none"><a shape="rect" ymailto="mailto:sr-users@lists.kamailio.org" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br clear="none"><a shape="rect" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br clear="none"></div></div>
                </div>
            </div></div></body></html>