[SR-Users] app_lua in kamailio

Juha Heinanen jh at tutpro.com
Tue May 24 20:56:51 CEST 2011


Bret McDanel writes:

> How does one set a variable and subsequently access it outside of lua?
> I tried what I thought was correct, but absent any documentation I can
> find I cant seem to get that to work.

there must be some documentation somewhere, since i was able to write a
couple of lua functions.  here is an example from one script:

         sr.pv.sets("$avp(tail)", tail)

tail if lua variable and $avp(tail) is sr variable.

-- juha



More information about the sr-users mailing list