Daniel-Constantin Mierla writes:

> well, $branch is actually not dealing with r-uri branch in 
> request_route. branch_route deals with current branch in tm, which can 
> be an additional branch to the r-uri and $branch() with proper index 
> should work to retrieve the details. But it might not be safe overall 
> and not working with r-uri branch is a limitation.

i tried in branch-failure route to assign ruid of the branch like this:

  $branch(ruid) = $T_reply_ruid;

and it resulted in errors:

Apr 18 20:19:21 siika /usr/sbin/sip-proxy[31962]: ERROR: <core> [lvalue.c:363]: 
lval_pvar_assign(): setting pvar failed
Apr 18 20:19:21 siika /usr/sbin/sip-proxy[31962]: ERROR: <core> [lvalue.c:416]: 
lval_assign(): assignment failed at pos: (2737,25-2737,37)

then i tried

  $(branch(ruid)[$T(branch_index)]) = $T_reply_ruid;

with the same result.

any other suggestions or is new code needed?

-- juha

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to