<div dir="auto">Thank you for your response! Probably it was at 5.0.x kemi guide.<div dir="auto">But anyway Domt uderstand how to call it.</div><div dir="auto"><br></div><div dir="auto">I need tm:local reqest,<div dir="auto">Websockets event_route and dialog. Thats it)</div><div dir="auto"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Aug 3, 2017 08:15, "Daniel-Constantin Mierla" <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>where is that TBD note? It needs to be adjusted, probably it is a
leftover from first days of this feature.</p>
<p>The failure_route, branch_route and onreply_route can be now
natively in the embedded language, see the Lua script example I
provide with the link in my previous email.</p>
<p>If you are using event_route blocks, let me know which and I can
say if they are available -- many of them are, but some are
missing, as I am not using all the modules available and didn't
have the time to dig in all of them.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="m_6459513521142066838moz-cite-prefix">On 02.08.17 13:42, Yuriy Gorlichenko
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote"><br>
<div dir="ltr">thx. I just thought that it's possibe to
concatenate both engines together.<br>
<br>
So this is my last question regardng kemi:<br>
<br>
Main goal why i still not use kemi at the my projects is a:<br>
<span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px"><br>
TBD: the options for specific event_route blocks.
Meanwhile, should work using hybrid configuration with
request_route/reply_route/… in embedded interpreter and
the other routing blocks in native kamailio.cfg.<br>
</span><br>
As i uderstand it is not possible to use event_route in a
kemi. only native. If yes - do you expect t ointegrate this
part of routes at the kemi interface in future?<br>
<br>
<br>
</div>
<div class="m_6459513521142066838HOEnZb">
<div class="m_6459513521142066838h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-08-02 14:36 GMT+03:00
Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>if you want to do routing in lua via kemi, the
kamailio.cfg has only the passive part (global
parameters, loading modules and modparams) and
the active part (routing blocks) is a separate
file written in the desired scripting language
(e.g., lua). See examples:</p>
<p> -
<a class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/blob/master/misc/examples/kemi/kamailio-basic-kemi.cfg" target="_blank">https://github.com/kamailio/ka<wbr>mailio/blob/master/misc/exampl<wbr>es/kemi/kamailio-basic-kemi.cf<wbr>g</a></p>
<p> -
<a class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/blob/master/misc/examples/kemi/kamailio-basic-kemi-lua.lua" target="_blank">https://github.com/kamailio/ka<wbr>mailio/blob/master/misc/exampl<wbr>es/kemi/kamailio-basic-kemi-lu<wbr>a.lua</a></p>
<p>If you still want to have the native
kamailio.cfg with its routing blocks, but
executed some Lua scripts inline, see app_lua
exported functions:</p>
<p> -
<a class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969moz-txt-link-freetext" href="http://www.kamailio.org/docs/modules/5.1.x/modules/app_lua.html#app_lua.f.lua_run" target="_blank">http://www.kamailio.org/docs/m<wbr>odules/5.1.x/modules/app_lua.h<wbr>tml#app_lua.f.lua_run</a></p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>
<div class="m_6459513521142066838m_7049937816513234883h5"> <br>
<div class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969moz-cite-prefix">On
02.08.17 13:28, Yuriy Gorlichenko wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="m_6459513521142066838m_7049937816513234883h5">
<div dir="ltr">
<div class="gmail_extra">Hi, no<br>
I wanna include lua routes part at
existing kamailio.cfg file<br>
<br>
Just wanna rewrite some route with lua
code using kemi because lua more
flexible for my needs, but want to call
this route at the cfg file.<br>
<br>
like <br>
kamailio.cfg<br>
...<br>
route {<br>
[MY_SUPER_ROUTE_IN_LUA]<br>
}<br>
...<br>
<br>
Where MY_SUPER_ROUTE_IN_LUA is a route
written with kemi on lua language.<br>
<br>
<br>
<div class="gmail_quote">2017-08-02
14:10 GMT+03:00 Daniel-Constantin
Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<div>
<div class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969gmail-m_-6876203992600536125h5"><br>
<br>
On 02.08.17 12:02, Yuriy
Gorlichenko wrote:<br>
> Hello. I found how to
implement lua routimg logic with<br>
> cfgengine but didn't found
how to include cimple route in
lua at the<br>
> cfg file<br>
><br>
> Presume i have routing
logic and want to include<br>
> my_super_custom_route
written with Kemo on lua. How i
need to set up<br>
> my config for it work with
both engines?<br>
><br>
</div>
</div>
I am not sure I understand what you
try to do. The path to yiour Lua<br>
script with routing logic has to be
set via modparam of app_lua module.<br>
<br>
Are you trying to include a lua file
in another lua file?<br>
<br>
Cheers,<br>
Daniel<br>
<span class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969gmail-m_-6876203992600536125HOEnZb"><font color="#888888"><br>
--<br>
Daniel-Constantin Mierla<br>
<a href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank">www.twitter.com/miconda</a>
-- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">www.linkedin.com/in/miconda</a><br>
Kamailio Advanced Training - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a><br>
Kamailio World Conference - <a href="http://www.kamailioworld.com" rel="noreferrer" target="_blank">www.kamailioworld.com</a><br>
<br>
</font></span></blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<span> <br>
<pre class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - <a class="m_6459513521142066838m_7049937816513234883m_-4650079318266554969moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
<br>
<fieldset class="m_6459513521142066838mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_6459513521142066838moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_6459513521142066838moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a>
</pre>
</blockquote>
<br>
<pre class="m_6459513521142066838moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_6459513521142066838moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_6459513521142066838moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="m_6459513521142066838moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - <a class="m_6459513521142066838moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</div>
</blockquote></div></div>