<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" 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); 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="">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="">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="">sr-users@lists.kamailio.org</a><br class="">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users<br class=""></blockquote><br class="">-- <br class="">Daniel-Constantin Mierla -- <a href="http://www.asipto.com" class="">www.asipto.com</a><br class=""><a href="http://www.twitter.com/miconda" class="">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" class="">www.linkedin.com/in/miconda</a><br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>