i want to do that inside next_gw()/next_contacts()
functions, not in the
script. could it be somehow possible to check from the branch structure
(dset.h/c) if request-uri is still unused? would
get_branch_iterator(void) and next_branch() or get_branch() work
although they seem to be very heavy means.
looking at print_dset() implementation, it checks existence of
request-uri branch by testing
if (msg->new_uri.s) {
based on that, would this algorithm be correct:
IF transaction does not exist OR
(transaction exists AND msg->new_uri.s != null)
THEN
next_gw() sets request uri
ELSE
next_gw() appends branch
FI
-- juha