<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    not being the author and not using the app_python module, but I
    pushed a commit to add a bit to the documentation, based on quick
    look at the source code. The commit is in devel (master branch).<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 01/12/15 23:12, Mititelu Stefan
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAO7wsJuBR014aXWTe44MGQkfvK2m3+pEg6p6yBGyDWeQPjKH1g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Hello,<br>
              <br>
            </div>
            I'm also interested in this subject. I can also see there is
            also an app_python module [1] which is mostly TBD. I want to
            ask you if there is already some dev going on related to
            this(i.e. certain branch). I'd like to look into it and
            maybe help with it.<br>
            <br>
          </div>
          Thanks,<br>
        </div>
        Stefan Mititelu<br>
        <div>
          <div><br>
            [1] <a moz-do-not-send="true"
              href="http://kamailio.org/docs/modules/devel/modules/app_python.html">http://kamailio.org/docs/modules/devel/modules/app_python.html</a><br>
            <div>
              <div class="gmail_extra"><br>
                <div class="gmail_quote">On Tue, Dec 1, 2015 at 7:57 PM,
                  Jayesh Nambiar <span dir="ltr"><<a
                      moz-do-not-send="true"
                      href="mailto:jayesh1017@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:jayesh1017@gmail.com">jayesh1017@gmail.com</a></a>></span>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0px 0px
                    0px 0.8ex;border-left:1px solid
                    rgb(204,204,204);padding-left:1ex">
                    <div dir="ltr">Hi,
                      <div>Playing around a little more with app_lua, I
                        realized that once you set any variables inside
                        lua, they are readable from within the kamailio
                        config. So that worked out well. This is place
                        for everything LUA in kamailio:</div>
                      <div><a moz-do-not-send="true"
                          href="http://sip-router.org/wiki/api/lua/devel"
                          target="_blank">http://sip-router.org/wiki/api/lua/devel</a><br>
                      </div>
                      <div><br>
                      </div>
                      <div>Thanks,</div>
                      <div><br>
                      </div>
                      <div>- Jayesh</div>
                    </div>
                    <div class="">
                      <div class="h5"><br>
                        <div class="gmail_quote">
                          <div dir="ltr">On Tue, Dec 1, 2015 at 7:23 PM
                            Jayesh Nambiar <<a moz-do-not-send="true"
                              href="mailto:jayesh1017@gmail.com"
                              target="_blank">jayesh1017@gmail.com</a>>
                            wrote:<br>
                          </div>
                          <blockquote class="gmail_quote"
                            style="margin:0px 0px 0px
                            0.8ex;border-left:1px solid
                            rgb(204,204,204);padding-left:1ex">
                            <div dir="ltr">Hi,
                              <div>I understand that kamailio does not
                                allow float-point values in variables
                                and I think kamailio is not a great
                                place to do complex arithemtic
                                operations and so I thought of using
                                app_lua for the same.</div>
                              <div>So can I pass the control to app_lua
                                and come back to config script with some
                                values? For eg. can I call a lua script
                                that does a complex arithemetic
                                operation on my AVP values and based on
                                certain conditions; return back a true
                                or false and then I continue in my
                                existing script.</div>
                              <div>I came across an exmaple <a
                                  moz-do-not-send="true"
                                  href="http://kb.asipto.com/kamailio:usage:k32-lua-routing"
                                  target="_blank"><a class="moz-txt-link-freetext" href="http://kb.asipto.com/kamailio:usage:k32-lua-routing">http://kb.asipto.com/kamailio:usage:k32-lua-routing</a></a> but
                                this is more like doing the entire thing
                                inside LUA. What I'm looking at is
                                getting certain things done in lua and
                                continue the script processing.</div>
                              <div>Thanks for any help here.</div>
                            </div>
                            <div dir="ltr">
                              <div dir="ltr">
                                <div><br>
                                </div>
                                <div>- Jayesh</div>
                              </div>
                            </div>
                          </blockquote>
                        </div>
                      </div>
                    </div>
                    <br>
                    _______________________________________________<br>
                    SIP Express Router (SER) and Kamailio (OpenSER) -
                    sr-users mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                    <a moz-do-not-send="true"
                      href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                      rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                    <br>
                  </blockquote>
                </div>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
  </body>
</html>