diff --git a/src/modules/registrar/doc/registrar_admin.xml b/src/modules/registrar/doc/registrar_admin.xml index 70dbbcd97d7..7c4226ad3c7 100644 --- a/src/modules/registrar/doc/registrar_admin.xml +++ b/src/modules/registrar/doc/registrar_admin.xml @@ -961,6 +961,37 @@ modparam("registrar", "contact_max_size", 1024) +
+ <varname>event_callback</varname> (str) + + The name of the function in the KEMI configuration file (embedded + scripting language such as Lua, Python, ...) to be executed instead + of event_route[...] blocks. + + + The function receives a string parameter with the name of the event. + The only possible value currently is 'usrloc:contact-expired'. + + + + Default value is 'empty' (no function is executed for events). + + + + Set <varname>event_callback</varname> parameter + +... +modparam("registrar", "event_callback", "ksr_registrar_event") +... +-- event callback function implemented in Lua +function ksr_registrar_event(evname) + KSR.info( "Expired contact for " .. KSR.pv.getw("$ulc(exp=>aor)") .. "\n"); + return 1; +end +... + + +