John Murray writes:
Does this also work for forked calls?
So if I add an RURI parameter to the contact of each device I can get the
one that answered the call?
accounting record is created when sip proxy gets final reply to invite.
so if you define, for example,
modparam("acc", "db_extra",
"translated_ruri=$avp(acc_translated_ruri))
and set $avp(acc_translated_ruri) in branch route, then $ru of winning
branch should show up in your accounting record.
give it a try to check if this theory works.
-- juha