sipwise / kamailio

Kamailio SIP Proxy with Sipwise patches
http://www.kamailio.org/
Other
57 stars 27 forks source link

modules/dialplan: Want logging which rule id has actually matched #4

Closed lathspell closed 10 years ago

lathspell commented 10 years ago

It would be very helpful if I could log which of the rules actually matched.

I don't know much about LUA or Kamailio but ideas that come to my mind are: a) Logging from inside the C module, maybe activated using a functio parameter or modparam b) Returning not "1" but the actual rule id (careful if those can be "0" as this would probably break backwards compatibility for people using "if (!dp_translate(...))".

linuxmaniac commented 10 years ago

If this is just for debug, you can set the dialplan debug level as:

loadmodule "debugger.so" modparam("debugger", "mod_level_mode", 1) modparam("debugger", "mod_hash_size", 4) modparam("debugger", "mod_level", "dialplan=4")

Anyhow, please use sr-dev mail list to ask such questions. http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev