[SR-Users] bflag under failure_route (kamailio 1.5)

Iñaki Baz Castillo ibc at aliax.net
Mon Oct 25 18:35:46 CEST 2010


2010/10/25 Daniel-Constantin Mierla <miconda at gmail.com>:
> why are you using "i:1"? The parameter must be just 1.

Sorry, just a typo in the mail :)


>> , so the bflag will be set
>> for all the branches that could be generated  for this incoming
>> transaction. This also involves creating new branches manually under
>> failure_route, am I right?
>> Note: I do know that it would be much better just to use flag instead of
>> bflags.
>>
>> 2) The outgoing transaction(s) fail so I enter into failure_route. If
>> I inspect here bflag(i:1) will it be set or not? I remember that it
>> will be set.
>>
>> 3) Then I call append_branch in failure_route, or perhaps call
>> loockup("location") and I expect that all the generated branches will
>> have the bflag set, am I right?
>
> never used in this way, but the normal usage is per branch and when you do
> it in the main route then it is just for first branch.

It's more curiosity than need. But anyhow I'm 90% sure that if you set
a bflag in route then it will be set for all the branches generated
during loockup(location). Not sure what happens in case of serial
forking using append_branch() in failure_route...

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the sr-users mailing list