[sr-dev] git:master: modules/tm: Added branch_failure event route to tm documentation
Hugh Waite
hugh.waite at crocodile-rcs.com
Sat Apr 6 20:44:04 CEST 2013
Hi,
On 06/04/2013 11:44, Daniel-Constantin Mierla wrote:
> This branch-failure route has been implemented as an event route after
> discussion with Daniel. (See
> http://lists.kamailio.org/pipermail/sr-dev/2013-March/019191.html).
>> As a result, you cannot specify multiple named routes and enable them
>> with a t_on_branch_failure() function. There can only be one route
>> and it is enabled when it is defined.
>
> if I understood right, you can't specify the
> event_route[tm:branch_failure] per transaction. This is not a
> limitation of the event_route, you can do it. Just that so far it was
> used only when enabled.
>
> You can code to do something like:
>
> t_on_branch_failure("myroute");
>
> which should execute following event route in case of branch failure.
>
> event_route[tm:branch_failure:myroute] { ... }
>
> Hope now is more clear, or maybe I misunderstood what you added.
I did not realise this was possible as I was learning from other code
examples. This was part of my first attempt, so I will try to add this
back in soon.
Hugh
--
Hugh Waite
Principal Design Engineer
Crocodile RCS Ltd.
More information about the sr-dev
mailing list