<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>are the other module names in lowercase or upper case? I am at
ClueCon with limited resources to start up a ruby environment for
testing.</p>
<p>I will look at the difference of the code between the two
revisions and see if I can spot something quickly.</p>
<p>Meanwhile, if you make a pull request with the equivalent of the
other routing scripts in misc/examples/kemi would be great ... I
actually wanted to ask you do it at some point, but since you
mentioned now, it's good to express my interest as well...</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 06.08.19 09:14, Andrew White wrote:<br>
</div>
<blockquote type="cite"
cite="mid:E8B62634-8B9D-4122-9CF2-752921450A16@uconnected.com.au">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Hey Daniel,
<div class=""><br class="">
</div>
<div class="">They certainly seem to be, here’s a snippet:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">{</div>
<div class=""> "func": {</div>
<div class=""> "ret": "xval",</div>
<div class=""> "module": "pv",</div>
<div class=""> "name": "getw",</div>
<div class=""> "params": "str"</div>
<div class=""> }</div>
<div class=""> }, {</div>
<div class=""> "func": {</div>
<div class=""> "ret": "xval",</div>
<div class=""> "module": "pv",</div>
<div class=""> "name": "gete",</div>
<div class=""> "params": "str"</div>
<div class=""> }</div>
<div class=""> }, {</div>
<div class=""> "func": {</div>
<div class=""> "ret": "xval",</div>
<div class=""> "module": "pv",</div>
<div class=""> "name": "getvn",</div>
<div class=""> "params": "str, int"</div>
<div class=""> }</div>
<div class=""> }, {</div>
<div class=""> "func": {</div>
<div class=""> "ret": "xval",</div>
<div class=""> "module": "pv",</div>
<div class=""> "name": "getvs",</div>
<div class=""> "params": "str, str"</div>
<div class=""> }</div>
<div class=""> }, {</div>
<div class=""> "func": {</div>
<div class=""> "ret": "bool",</div>
<div class=""> "module": "pv",</div>
<div class=""> "name": "seti",</div>
<div class=""> "params": "str, int"</div>
<div class=""> }</div>
<div class=""> }, {</div>
<div class=""> "func": {</div>
<div class=""> "ret": "bool",</div>
<div class=""> "module": "pv",</div>
<div class=""> "name": "sets",</div>
<div class=""> "params": "str, str"</div>
<div class=""> }</div>
<div class=""> },</div>
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0); letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none; word-wrap: break-word;
-webkit-nbsp-mode: space; line-break: after-white-space;"
class="">
<div dir="auto" style="word-wrap: break-word;
-webkit-nbsp-mode: space; line-break: after-white-space;"
class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0,
0); font-family: Helvetica; font-size: 12px; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; text-align: start; text-indent:
0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none;"><br class="">
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0,
0); font-family: Helvetica; font-size: 12px; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; text-align: start; text-indent:
0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none;">I’ve just done a fresh deploy
with the same playbook to a new instance, but using
dev-4 (6d43eacd6d5b78fe857267e70b7fa85519a7d5b6) instead
of dev-7 (bd477f5bb938a05efab76fb096cf5ac780d65c45) and
it works perfectly, so it must be a change in between
the two.</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0,
0); font-family: Helvetica; font-size: 12px; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; text-align: start; text-indent:
0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none;"><br class="">
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0,
0); font-family: Helvetica; font-size: 12px; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; text-align: start; text-indent:
0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none;">I was going to add in a ruby
example config to <a
href="https://github.com/kamailio/kamailio/tree/master/misc/examples/kemi"
class="" moz-do-not-send="true">https://github.com/kamailio/kamailio/tree/master/misc/examples/kemi</a>
a while ago, but I keep getting caught up with other
things. Would it be helpful here for testing if I did
this and put in a pull request? I’ll see if I can get
that done tonight (I guess today EU time!)</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0,
0); font-family: Helvetica; font-size: 12px; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; text-align: start; text-indent:
0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none;"><br class="">
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0,
0); font-family: Helvetica; font-size: 12px; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; text-align: start; text-indent:
0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none;">Cheers,</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0,
0); font-family: Helvetica; font-size: 12px; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; text-align: start; text-indent:
0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none;"><br class="">
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0,
0); font-family: Helvetica; font-size: 12px; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; text-align: start; text-indent:
0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none;">Andrew</div>
</div>
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 6 Aug 2019, at 2:27 am, Daniel-Constantin
Mierla <<a href="mailto:miconda@gmail.com" class=""
moz-do-not-send="true">miconda@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hello,<br class="">
<br class="">
there was a change to use the core PV functions, not
those implemented<br class="">
in app_ruby, so this might have broken something.<br
class="">
<br class="">
Can you run kamailio master branch with jsonrpcs module
loaded and then<br class="">
execute:<br class="">
<br class="">
kamctl rpc app_ruby.api_list<br class="">
<br class="">
See if the PV functions are listed int the output.<br
class="">
<br class="">
Cheers,<br class="">
Daniel<br class="">
<br class="">
On 05.08.19 15:19, Andrew White wrote:<br class="">
<blockquote type="cite" class="">Hey all,<br class="">
<br class="">
I’m setting up a dev-7 (bd477f) server to test as per
the other thread, however I’m getting the following
loading my config:<br class="">
<br class="">
ERROR: app_ruby [app_ruby_api.c:465]:
sr_kemi_ruby_exec_func_ex(): invalid ruby environment
attributes or parameters<br class="">
<br class="">
I’m unsure what this error means - are there expected
environment variables or other values that must be
set? I didn’t see this issue in dev-4.<br class="">
<br class="">
I thought it might be not able to find the library,
but I ran with debug=4 and saw:<br class="">
<br class="">
DEBUG: app_ruby [app_ruby_api.c:193]:
ruby_sr_init_child(): test execution without error<br
class="">
ERROR: app_ruby [app_ruby_api.c:107]:
app_ruby_print_last_exception(): exception: undefined
method `>' for false:FalseClass<br class="">
<br class="">
I changed kamailio.cfg to load my generic routing
script, and during the onreply_manage it runs:<br
class="">
<br class="">
scode = KSR::PV.get("$rs”)<br class="">
<br class="">
This now returns false (which appears to be the second
error above, I check if scode is > 599).<br
class="">
<br class="">
Has anything changed in the way ruby is loaded in
dev-7? I’m using the same ruby/ruby-devel library
versions on the same OS. I did this deploy the same
with devel-4 a few weeks ago and this didn’t happen.<br
class="">
<br class="">
Thanks!<br class="">
<br class="">
Andrew<br class="">
_______________________________________________<br
class="">
Kamailio (SER) - Users Mailing List<br class="">
<a href="mailto:sr-users@lists.kamailio.org" class=""
moz-do-not-send="true">sr-users@lists.kamailio.org</a><br
class="">
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br class="">
</blockquote>
<br class="">
-- <br class="">
Daniel-Constantin Mierla -- <a
href="http://www.asipto.com" class=""
moz-do-not-send="true">www.asipto.com</a><br class="">
<a href="http://www.twitter.com/miconda" class=""
moz-do-not-send="true">www.twitter.com/miconda</a> --
<a href="http://www.linkedin.com/in/miconda" class=""
moz-do-not-send="true">www.linkedin.com/in/miconda</a><br
class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<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></pre>
</body>
</html>