[Kamailio-Devel] [SR-Dev] append_branch() inside modules

Klaus Darilion klaus.mailinglists at pernau.at
Fri Nov 28 10:33:08 CET 2008



Iñaki Baz Castillo schrieb:
> El Viernes, 28 de Noviembre de 2008, Andrei Pelinescu-Onciul escribió:
>> On Nov 28, 2008 at 01:04, Daniel-Constantin Mierla <miconda at gmail.com> 
> wrote:
>>> Hello,
>>>
>>> there are couple of modules that change the R-URI and automatically call
>>> append_branch() if the execution takes place in failure_route, other
>>> modules don't.
>>>
>>> Perhaps we should get to a coherent behavior, if not for existing code,
>>> then for the future. Probably the most flexible, better in my opinion,
>>> is to let script writer to call append_branch() in config -- once done,
>>> it is no way now to revert. A new branch should be automatically done
>>> only if it is a specific operation, e.g., location lookup with more than
>>> one record.
>>>
>>> What do you think?
>> I agree, the script writer should call append_branch explicitly in the
>> script.
> 
> Does it mean that functions like "next_gw()" in LCR would require 
> adding "append_branch()" in failure_route? Now it's not needed.

Yes. So currently it is simpler, but not so flexible

klaus



More information about the Devel mailing list