[Kamailio-Devel] serialize_branches() nowhere documented?
Jan Janak
jan at iptel.org
Mon Oct 20 10:56:18 CEST 2008
On 19-10 20:45, Juha Heinanen wrote:
> Jan Janak writes:
>
> > How about putting these functions into the tm module? Forking cannot
> > be done without that module anyway.
>
> jan,
>
> that makes sense to me. it would also solve the problem that i'm having
> with figuring out if transaction already exists.
> next_branches()/next_contacts() namely now rewrites request uri if it is
> called from route block and appends a branch(es) if it is called from
> failure route, which is artificial.
>
> the same problem exists with load_gws()/next_gw(). looks like tm module
> does not export that information. for example, t_fwd.c/t_forward_nonack
> has
>
> /* branch to begin with */
> t->first_branch=t->nr_of_outgoings;
>
> /* on first-time forwarding, use current uri, later only what
> is in additional branches (which may be continuously refilled)
> */
> if (t->first_branch==0) {
>
> that kind of info should be available also to other modules. or is it
> somehow?
Hmm, I don't really know how to do this in k., in ser/tm there is a
global variable called rmode which can be used to determine what kind of
route block you are in. I quickly checked your sources but could not
find it, so maybe it was removed or replaced with something else (this
is a pretty old thing).
Jan.
More information about the Devel
mailing list