Module: sip-router Branch: master Commit: 7b91c4d48ecc3b2da82b21966c9fb75fa392f3e5 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7b91c4d4...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Tue Jan 26 00:11:02 2010 +0100
app_lua: run Lua scripts from cfg
- new module to run embedded Lua scripts from cfg - module exports functions to Lua in order to access current processed SIP message - uses two Lua contexts, one for cached scripts (run functions from them at runtime) and one for execution of entire Lua scripts at runtime - so far exported to Lua - dbg, err and log functions - print messages using internal DBG API - sr.hdr.{append, insert, remove, append_to_reply} - header management - sr.pv.{get, seti, setf, unset, is_null} - PV management
---
modules/app_lua/Makefile | 18 + modules/app_lua/README | 186 ++++++++++ modules/app_lua/app_lua_mod.c | 151 ++++++++ modules/app_lua/app_lua_sr.c | 657 +++++++++++++++++++++++++++++++++ modules/app_lua/app_lua_sr.h | 42 +++ modules/app_lua/doc/Makefile | 4 + modules/app_lua/doc/app_lua.xml | 36 ++ modules/app_lua/doc/app_lua_admin.xml | 206 +++++++++++ 8 files changed, 1300 insertions(+), 0 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=7b91...