[SR-Users] how to access request uri of answering branch?

Juha Heinanen jh at tutpro.com
Sun Nov 30 13:44:16 CET 2014


Juha Heinanen writes:

> lets say that invite is parallel forked to two contacts.  if the call is
> answered, i would like to set in reply route an accounting avp that
> contains the request uri of answering branch.  i have tried $T_req($ru),
> but that gives the original request uri.  any suggestions?

it might be possible to store in branch route request uris to an avp and
then select the correct one based on the last field of top via branch,
but that is a far too complicated solution for such a simple task as
finding out the request uri of replied request.  therefore, i must be
missing something.

-- juha



More information about the sr-users mailing list