[sr-dev] [kamailio/kamailio] Kamailio 5.3 app_ruby crashed with example config (#2180)
Daniel-Constantin Mierla
notifications at github.com
Wed Jan 8 15:50:36 CET 2020
It seems to be related to the functions exported via KEMI that return string value. I looked at the code, but I could not find a reason for it.
The next ruby line is executing ok:
```
KSR.err("RUBY - #{KSR.is_INVITE} - #{KSR::PV.get('$pp')}\n")
```
$pp returns the process id, which is int.
Next one causes a crash:
```
KSR.err("RUBY - #{KSR.is_INVITE} - #{KSR::PV.get('$si')}\n")
```
$si returns source ip as a string.
I am not familiar with Ruby, I did the embedding of Ruby following some online examples. Maybe other people familiar with Ruby ecosystem can provide some hints.
If it cannot be sorted out, I can add again the code for dealing with PVs from v5.3, however, in that case there will still be some functions that won't work, like those exposed by kemix module.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2180#issuecomment-572103553
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200108/b96090b6/attachment.html>
More information about the sr-dev
mailing list