From b241fc7e1d20098dd8b0666297303fe7255587e8 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 27 Aug 2019 09:17:18 +0200 Subject: [PATCH] tm: docs - clarifications about event routes --- src/modules/tm/doc/event_routes.xml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/src/modules/tm/doc/event_routes.xml b/src/modules/tm/doc/event_routes.xml index adda5536ed7..b969695c9aa 100644 --- a/src/modules/tm/doc/event_routes.xml +++ b/src/modules/tm/doc/event_routes.xml @@ -10,20 +10,20 @@
- <function moreinfo="none">event_route[tm:branch-failure]</function> + <function moreinfo="none">event_route[tm:branch-failure:id]</function> Named branch failure routes can be defined to run when when a failure response is received. This allows handling failures on individual branches, for example, retrying an alternative outbound flow. - - The format of the event_route name is "tm:branch-failure:<name>" - and is enabled with the t_on_branch_failure function. - This event_route uses the BRANCH_FAILURE_ROUTE route type. - + + The format of the event_route name is "tm:branch-failure:<id>" + and is enabled with the t_on_branch_failure function. + This event_route uses the BRANCH_FAILURE_ROUTE route type. + - <function>event_route[tm:branch-failure]</function> usage + <function>event_route[tm:branch-failure:id]</function> usage ... request_route { @@ -44,7 +44,17 @@ event_route[tm:branch-failure:myroute] { event_route[tm:local-request] - Executed after the tm module has sent a local generated, transaction stateful request. + Executed when the tm module generates a request, in other words, + the request originates from &kamailio; and a transaction is created + for it. The source of the requests can be tm itself or other modules + that use tm internally (e.g., msilo, uac). The event route is executed + if it is defined in the native &kamailio; config file. To execute + the equivalent callback when using KEMI scripting, see the + 'event_callback' module parameter. + + + The request can still be updated, i.e., changes are possible to + R-URI ($ru), destination URI ($du) or the send socket ($fs). <function>event_route[tm:local-request]</function> usage @@ -63,7 +73,8 @@ event_route [tm:local-request] { event_route[tm:local-response] - Executed after the tm module has sent a local generated, transaction stateful response. + Executed when the tm module is about to send a local generated, + transaction stateful response. <function>event_route[tm:local-response]</function> usage