diff --git a/src/modules/msrp/doc/msrp_admin.xml b/src/modules/msrp/doc/msrp_admin.xml index 9bab02d6f0b..ca1720d8933 100644 --- a/src/modules/msrp/doc/msrp_admin.xml +++ b/src/modules/msrp/doc/msrp_admin.xml @@ -10,9 +10,9 @@ - + &adminguide; - +
Overview @@ -37,8 +37,8 @@ One of the main benefits of this module is the ability to reuse - all the other extensions that exist in the SIP server, including - accounting, authentication, authorization to database connectors, + all the other extensions that exist in the SIP server, including + accounting, authentication, authorization to database connectors, security and DoS attack protections. @@ -210,6 +210,37 @@ modparam("msrp", "auth_max_expiresl", 1800) ... modparam("msrp", "use_path_addr", "msrp.kamailio.org:5061") ... + + +
+
+ <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 values can be: 'msrp:frame-in'. + + + + Default value is 'empty' (no function is executed for events). + + + + Set <varname>event_callback</varname> parameter + +... +modparam("htable", "event_callback", "ksr_msrp_event") +... +-- event callback function implemented in Lua +function ksr_msrp_event(evname) + KSR.info("===== msrp module triggered event: " .. evname .. "\n"); + return 1; +end +...
@@ -222,7 +253,7 @@ modparam("msrp", "use_path_addr", "msrp.kamailio.org:5061") msrp_relay() - Relay MSRP frame according to the To-Path. This function has to be + Relay MSRP frame according to the To-Path. This function has to be executed for each MSRP request or reply that has to be forwarded. Note that due to nature of the MSRP transport layer, which is reliable (TCP/TLS), there is no retransmission of MSRP frames.