<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Thank you Andrew, already merged.  :-)<br>
</p>
<div class="moz-cite-prefix">Am 06.08.19 um 14:52 schrieb Andrew White:<br>
</div>
<blockquote type="cite" cite="mid:A4A9E17F-2A83-47B0-8B84-D78E39C5A975@uconnected.com.au">
Hi Henning,
<div class=""><br class="">
</div>
<div class="">Thanks! I’ll start bisecting now and see what I can find and report back.</div>
<div class=""><br class="">
</div>
<div class="">Awesome, I’ve built and tested a generic config and submitted a pull request - I’m excited to finally be contributing!</div>
<div class=""><br class="">
</div>
<div class="">Thanks again,</div>
<div class=""><br class="">
</div>
<div class="">Andrew<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 6 Aug 2019, at 5:30 pm, Henning Westerholt <<a href="mailto:hw@skalatan.de" class="" moz-do-not-send="true">hw@skalatan.de</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div text="#000000" bgcolor="#FFFFFF" class="">
<p class="">Hi Andrew,</p>
<p class="">comments below inline<br class="">
</p>
<div class="moz-cite-prefix">Am 06.08.19 um 09:14 schrieb Andrew White:<br class="">
</div>
<blockquote type="cite" cite="mid:E8B62634-8B9D-4122-9CF2-752921450A16@uconnected.com.au" class="">
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);
                        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);
                            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;" class="">
<br class="">
</div>
<div style="caret-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;" class="">
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>
</div>
</div>
</div>
</blockquote>
<p class="">Just looked to the app_ruby commits - they are only 10 or so after dev4. Maybe you can just a bi-sect (pick the one in the middle, see if still works, pick the next one in the "new" middle etc..) to find the commit that broke  it for you.<br class="">
</p>
<blockquote type="cite" cite="mid:E8B62634-8B9D-4122-9CF2-752921450A16@uconnected.com.au" class="">
<div class="">
<div class="">
<div dir="auto" style="caret-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 class="">
<div style="caret-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;" class="">
<br class="">
</div>
<div style="caret-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;" class="">
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);
                            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;" class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
</blockquote>
Pull requests are always welcome, and an example cfg would make testing of course easier for other developers as well.<br class="">
<p class="">Cheers,</p>
<p class="">Henning<br class="">
</p>
<blockquote type="cite" cite="mid:E8B62634-8B9D-4122-9CF2-752921450A16@uconnected.com.au" class="">
<div class="">
<div class="">
<div dir="auto" style="caret-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 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" moz-do-not-send="true">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>
</div>
</div>
<br class="">
</div>
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-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>
<pre class="moz-signature" cols="72">-- 
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/" moz-do-not-send="true">https://skalatan.de/blog/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services" moz-do-not-send="true">https://skalatan.de/services</a></pre>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</blockquote>
<pre class="moz-signature" cols="72">-- 
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services">https://skalatan.de/services</a></pre>
</body>
</html>