[SR-Users] app_ruby - KSR::PV.sets method not found
Andrew White
andrew at uconnected.com.au
Sat Mar 30 05:45:45 CET 2019
Hi all,
I’m trying to set a pseudovariable via app_ruby. I’m able to retrieve pseudovariables using PV.gete as such:
However trying to set these using sets, I get “No method found”:
KSR::PV.sets("$fu", "sip:#{$uacs[trunk]['r_username']}@#{$uacs[trunk]['r_domain']}")
Mar 30 04:44:59 ip-10-0-0-2 /usr/local/sbin/kamailio[28421]: ERROR: {1 102 INVITE 0fae8097312bec2b5ec79ada30c227e7 at 127.0.0.1:5060} app_ruby [app_ruby_api.c:107]: app_ruby_print_last_exception(): exception: undefined method `[]' for nil:NilClass
PV.seti appears to work correctly. Am I calling the wrong method?
Thanks!
________________________________
Andrew White - Director
uConnected
Email: andrew at uconnected.com.au
Web: www.uConnected.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190330/ad5234ca/attachment.html>
More information about the sr-users
mailing list