[SR-Users] Converting to kemi

James Cloos cloos at jhcloos.com
Fri Aug 18 21:21:20 CEST 2017


[I see I posted this to -dev instead of -users; fixing that -JimC]

I'm working on converting some configs to kemi lua and have a couple of
questions:

First:

Does KSR.pv.get() support multiple pseudos in a single call?

The examples such as misc/examples/kemi/kamailio-basic-kemi-lua.lua
make several calls, but also do things like KSR.pv.get("$T_branch_idx]")
to avoid having the append "]" to the string.  That makes me wonder why
that file has code like this:

	KSR.dbg("new branch [".. KSR.pv.get("$T_branch_idx]")
				.. " to ".. KSR.pv.get("$ru") .. "\n");

instead of like:

        KSR.pv.get("[$T_branch_idx] to $ru\n")


Second:

Is it still the case that, eg, event_route[xhttp:request] cannot be in
the kemi lua code?

There was another.  Perhaps I'll recall what it was... :(

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6



More information about the sr-users mailing list