[Serusers] wrong translated request-uri in accounting records

Juha Heinanen jh at tutpro.com
Thu Dec 16 21:13:22 CET 2004


if a request is forwarded to another destination in failure route by
appending a new branch to it like in this example from the manual:

failure_route[1] {
	# forwarding failed -- try again at another destination 
	append_branch("sip:nonsense at iptel.org");
	log(1,"first redirection\n");
	# if this alternative destination fails too, proceed to reply_route[2] 
	t_on_failure("2");
	t_relay();
}

then translated request-uri (format o) of accounting record does not
contain this appended new uri, since the appended branch is not checked,
when o-value is selected:

		case 'o':
			if (rq->new_uri.len) val_arr[cnt]=&rq->new_uri;
			else val_arr[cnt]=&rq->first_line.u.request.uri;
			ATR(OURI);
			break;

is there an existing solution to this problem or should the above code
be fixed?

-- juha




More information about the sr-users mailing list