<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>indeed, I looked at code and ds_is_from_list is not exported. Do
you need to use it with parameters or without?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 15.03.18 15:55, Igor Olhovskiy
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:bd8175ef-31d8-4c88-a80c-c6fa60ba0945@Spark">
<title></title>
<div name="messageBodySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;">Hi!
<div><br>
</div>
<div>Checked with 5.1.4 about <span style="font-family:
-apple-system, BlinkMacSystemFont, sans-serif;">ds_is_from_list</span></div>
<div><br>
</div>
<div>
<div>exporting KSR.dispatcher.ds_select(...)</div>
<div>exporting KSR.dispatcher.ds_select_limit(...)</div>
<div>exporting KSR.dispatcher.ds_select_domain(...)</div>
<div>exporting KSR.dispatcher.ds_select_domain_limit(...)</div>
<div>exporting KSR.dispatcher.ds_next_domain(...)</div>
<div>exporting KSR.dispatcher.ds_select_dst(...)</div>
<div>exporting KSR.dispatcher.ds_select_dst_limit(...)</div>
<div>exporting KSR.dispatcher.ds_next_dst(...)</div>
<div>initializing kemi sub-module: KSR.dispatcher (dispatcher)
(8/24/261)</div>
</div>
<div><br>
</div>
<div>Seems no function for check if source in dispatcher table….</div>
<div><br>
</div>
<div>Also not mentioned here</div>
<div><br>
</div>
<div><a
href="https://www.kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/modules/#dispatcher"
moz-do-not-send="true">https://www.kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/modules/#dispatcher</a><br>
</div>
</div>
<div name="messageSignatureSection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br>
Regards, Igor</div>
<div name="messageReplySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br>
On Mar 14, 2018, 5:58 PM +0200, Daniel-Constantin Mierla
<a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a>, wrote:<br>
<blockquote type="cite" style="margin: 5px 5px; padding-left:
10px; border-left: thin solid #1abc9c;">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 14.03.18 16:53, Igor Olhovskiy
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:fe2da8ac-a540-4d23-bf69-ce050608d5b6@Spark"
style="margin: 5px 5px; padding-left: 10px; border-left:
thin solid #e67e22;">
<div name="messageBodySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont,
sans-serif;">It was has_body(), not has_totag()</div>
</blockquote>
Ohh, I misread...<br>
<blockquote type="cite"
cite="mid:fe2da8ac-a540-4d23-bf69-ce050608d5b6@Spark"
style="margin: 5px 5px; padding-left: 10px; border-left:
thin solid #e67e22;">
<div name="messageBodySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont,
sans-serif;">
<div><br>
</div>
<div>Thanks for tip, will try to upgrade. This version was
from debian repo.</div>
</div>
</blockquote>
Probably from debian repo for master branch, which meanwhile
has kamailio 5.2.0-dev there.<br>
<br>
<blockquote type="cite"
cite="mid:fe2da8ac-a540-4d23-bf69-ce050608d5b6@Spark"
style="margin: 5px 5px; padding-left: 10px; border-left:
thin solid #e67e22;">
<div name="messageBodySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont,
sans-serif;">
<div><br>
</div>
<div>Also missing quite needed function
like ds_is_from_list</div>
</div>
</blockquote>
<br>
Stable branch releases 5.1.x should have it.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote type="cite"
cite="mid:fe2da8ac-a540-4d23-bf69-ce050608d5b6@Spark"
style="margin: 5px 5px; padding-left: 10px; border-left:
thin solid #e67e22;">
<div name="messageSignatureSection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont,
sans-serif;"><br>
Regards, Igor</div>
<div name="messageReplySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont,
sans-serif;"><br>
On Mar 14, 2018, 11:13 AM +0200, Daniel-Constantin Mierla
<a class="moz-txt-link-rfc2396E"
href="mailto:miconda@gmail.com" moz-do-not-send="true"><miconda@gmail.com></a>,
wrote:<br>
<blockquote type="cite" style="margin: 5px 5px;
padding-left: 10px; border-left: thin solid #3498db;">
<p>Again, wrote in previous response, if you are looking
for has_totag(), you look at the wrong module.</p>
<p>However, regarding the exports, you are using a
version during devel phase, upgrade to latest stable
5.1.x and you will get more exported functions.</p>
<p>On the other hand, for some of the functions related
to string search/comparison, I put lower priority,
because they can be done in the scripting language
itself - Lua has more operations and functions for
string handling that we have in our modules. I do not
recall by heart right now if I exported all of them at
the end, but there are more than you listed here in
5.1.2.<br>
</p>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 13.03.18 15:57, Igor
Olhovskiy wrote:<br>
</div>
<blockquote type="cite"
cite="mid:3b22e61d-e1ea-4f2e-886a-0fdace678b7c@Spark"
style="margin: 5px 5px; padding-left: 10px;
border-left: thin solid #d35400;">
<div name="messageBodySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont,
sans-serif;">For textops.
<div><br>
</div>
<div>Seems textops module not exporting everything
to Lua</div>
<div><br>
</div>
<div>
<div>app_lua [app_lua_sr.c:1961]:
lua_sr_kemi_register_libs(): exporting
KSR.textops.search(...)</div>
<div>app_lua [app_lua_sr.c:1961]:
lua_sr_kemi_register_libs(): exporting
KSR.textops.search_body(...)</div>
<div>app_lua [app_lua_sr.c:1961]:
lua_sr_kemi_register_libs(): exporting
KSR.textops.search_hf(...)</div>
<div>app_lua [app_lua_sr.c:1961]:
lua_sr_kemi_register_libs(): exporting
KSR.textops.is_present_hf(...)</div>
<div>app_lua [app_lua_sr.c:1961]:
lua_sr_kemi_register_libs(): exporting
KSR.textops.subst(...)</div>
<div>app_lua [app_lua_sr.c:1961]:
lua_sr_kemi_register_libs(): exporting
KSR.textops.subst_uri(...)</div>
<div>app_lua [app_lua_sr.c:1961]:
lua_sr_kemi_register_libs(): exporting
KSR.textops.subst_user(...)</div>
<div>app_lua [app_lua_sr.c:1961]:
lua_sr_kemi_register_libs(): exporting
KSR.textops.subst_body(...)</div>
<div>app_lua [app_lua_sr.c:1961]:
lua_sr_kemi_register_libs(): exporting
KSR.textops.subst_hf(...)</div>
<div>app_lua [app_lua_sr.c:1961]:
lua_sr_kemi_register_libs(): exporting
KSR.textops.remove_hf_re(...)</div>
<div>app_lua [app_lua_sr.c:1961]:
lua_sr_kemi_register_libs(): exporting
KSR.textops.remove_hf_exp(...)</div>
<div>app_lua [app_lua_sr.c:1975]:
lua_sr_kemi_register_libs(): initializing kemi
sub-module: KSR.textops (textops)</div>
</div>
<div><br>
</div>
</div>
<div name="messageSignatureSection" style="font-size:
14px; font-family: -apple-system,
BlinkMacSystemFont, sans-serif;"><br>
Regards, Igor</div>
<div name="messageReplySection" style="font-size:
14px; font-family: -apple-system,
BlinkMacSystemFont, sans-serif;"><br>
On Mar 13, 2018, 4:03 PM +0200, Igor Olhovskiy <a
class="moz-txt-link-rfc2396E"
href="mailto:igorolhovskiy@gmail.com"
moz-do-not-send="true"><igorolhovskiy@gmail.com></a>,
wrote:<br>
<blockquote type="cite" style="margin: 5px 5px;
padding-left: 10px; border-left: thin solid
#34495e;">
<div name="messageBodySection" style="font-size:
14px; font-family: -apple-system,
BlinkMacSystemFont, sans-serif;">Hi!
<div><br>
</div>
<div>I’m playing with new KEMI framework and
trying to reload script without reloading
Kamailio.</div>
<div><br>
</div>
<div>Lua code is mostly one from example.</div>
<div><br>
</div>
<div>...</div>
<div>
<div>modparam("app_lua", "load",
"/etc/kamailio/lua/kamailio.lua")</div>
<div>cfgengine "lua"</div>
</div>
<div>...</div>
<div><br>
</div>
<div>So, I’m changing lua code and giving
command</div>
<div><br>
</div>
<div>kamctl rpc app_lua.reload<br>
</div>
<div><br>
</div>
<div>But in the answer</div>
<div><br>
</div>
<div>
<div>{</div>
<div> "jsonrpc": "2.0",</div>
<div> "error": {</div>
<div> "code": -32000,</div>
<div> "message": "Execution Error"</div>
<div> },</div>
<div> "id": 11098</div>
<div>}</div>
</div>
<div><br>
</div>
<div>In syslog there is a string </div>
<div><br>
</div>
<div>/usr/sbin/kamailio[10939]: ERROR: app_lua
[app_lua_api.c:399]: lua_sr_reload_script():
reload is not activated<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>What is need to be done to activate reload?</div>
<div><br>
</div>
</div>
<div name="messageSignatureSection"
style="font-size: 14px; font-family:
-apple-system, BlinkMacSystemFont, sans-serif;"><br>
Regards, Igor</div>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.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-abbreviated" href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com" moz-do-not-send="true">www.kamailioworld.com</a></pre>
</blockquote>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com" moz-do-not-send="true">www.kamailioworld.com</a></pre>
</blockquote>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>