Map a "friendly" phone number to a unique directory user address.
There are times when you would like to have a directory username which is very different from the contact information for reaching that user. For instance, maybe you want each device to register with mac-address_line-number (000e081c4f6a_1) but they will have a standard npa-nxx number which routes to them (509.123.4567).
There are a couple things that you will need. First the directory:
The key here is the variable
sip-force-user . Set this to the phone number to which you want to map the user:
Next, match a number and send the call to this user.
You must use
sofia_contact in the bridge string here,
user will not work because of
sip-force-user. Here is an example:
A word of caution: depending on how you route calls here, this will match all numbers and try to send them to
sip-force-users listed in your directory.
There is an alternative method to contact mapping described here: XML User Directory - Alphanumeric to numeric user mapping