[Kamailio-Devel] serialize_branches() nowhere documented?

Juha Heinanen jh at tutpro.com
Sun Oct 19 19:45:53 CEST 2008


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?

-- juha



More information about the Devel mailing list