On Thursday 15 August 2013 20:55:27 Alex Balashov wrote:
You can do it however you like, but a common way this is handled is to map the DID to a registrar AOR using alias_db, then to revert the user part of the request URI to the DID (having stored it in a variable prior to the alias_db lookup).
You don't have to store the DID, it is available in $tU. A simple way to implement is to add to route[RELAY]:
route[RELAY] { #avp(dst_rewriterurito) is 1 if client want DID (from usr_preferences) if($avp(dst_rewriterurito)) { $rU=$tU; } ... }