Hello,
you can use htable module to cache data in memory and access it from
config file or lua script via pv.
Cheers,
Daniel
On 6/13/12 2:27 PM, Sharif Tanvir Rahman wrote:
Hi Daniel,
I need to access custom database tables (i.e. not default with
kamailio) from a lua script (extending kam
Hi Daniel,
I need to access custom database tables (i.e. not default with kamailio)
from a lua script (extending kamailio.cfg).
Processing any incoming SIP request starts with a lua function and that in
turn call other functions - and each one needs database access for taking
routing decision. T
Hello,
to rewrite the r-uri you can use the function for setting PV value:
sr.pv.sets("$ru", "_here_is_new_uri_");
To add contact headers to reply, you should use:
sr.hdr.append_to_reply("Contact: <_here_is_your_uri_>\r\n");
Cheers,
Daniel
On 6/20/11 3:23 PM, Sharif Tanvir Rahman wrote:
Hel