[SR-Users] DID Routing
Daniel Tryba
daniel at pocos.nl
Fri Aug 16 10:37:55 CEST 2013
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;
}
...
}
--
POCOS B.V. - Croy 9c - 5653 LC Eindhoven
Telefoon: 040 293 8661 - Fax: 040 293 8658
http://www.pocos.nl/ - http://www.sipo.nl/
K.v.K. Eindhoven 17097024
More information about the sr-users
mailing list