1. Add new mapping on your DIDWW account:
a. Enter your account at http://www.didww.com/ and go to Mapping page (Figure 1).

Figure 1: Access Mapping Page in your Account
b. Choose Custom mapping (Figure 2).

Figure 2: Entering Custom Mapping
c. If you already have custom mappings click on Add Custom Server. Fill the Custom mapping fields as follows:
· Friendly name – Specify name by your choice that you will be able to recognize this mapping easily, choosing the name is important when you have many mappings, e.g. MyTrixBox (Figure 3).

Figure 3: Setting Custom Mapping (1)
· IP address or domain – Enter your asterisk server's external IP address (Figure 3).
· Protocol – Choose SIP (Figure 3).
· Preferred server – Select the preferred server, choose the server which is closest to your location (Figure 3).
· Default mapping – Select this checkbox if you wish that all new DIDs will be assigned to this default mapping (Figure 4).

Figure 4: Setting Custom Mapping (2)
d. Press on the Add button to complete the mapping settings (Figure 4).
2. Go to My DIDs and map your DID to the new MyTrixBox mapping.
a. GO to My DIDspage (Figure 5).

Figure 5: Access My DIDs Page in your Account
b. Click on the checkbox of the DID numbers that you wish to map and open the Map selected DID(s) todropdown list to select the MyTrixBox mapping, press on Update button to complete your mapping (Figure 6).

Figure 6: Assign Mapping to DID
3. Additional configuration is required on your Asterisk server, you should add the IP addresses of DIDWW as follows:
Go to the FreePBX administration page, click on the Trunks menu and add SIP trunks with the following settings:
USER Context: [46.19.209.10]
host=46.19.209.10
dtmfmode=rfc2833
type=peer
context=from-trunk
insecure=very
nat=never
allow=all
Outgoing Settings
USER Context: [46.19.209.11]
USER Details:
host=46.19.209.11
dtmfmode=rfc2833
type=peer
context=from-trunk
insecure=very
nat=never
allow=all
Incoming Settings
USER Context: [46.19.209.12]
USER Details:
host=46.19.209.12
dtmfmode=rfc2833
type=peer
context=from-trunk
insecure=very
nat=never
allow=all
Outgoing Settings
Incoming Settings
USER Context: [46.19.209.13]
USER Details:
host=46.19.209.13
dtmfmode=rfc2833
type=peer
context=from-trunk
insecure=very
nat=never
allow=all
Incoming Settings
USER Context: [46.19.209.14]
USER Details:
host=46.19.209.14
dtmfmode=rfc2833
type=peer
context=from-trunk
insecure=very
nat=never
allow=all
Incoming Settings
USER Context: [46.19.209.15]
USER Details:
host=46.19.209.15
dtmfmode=rfc2833
type=peer
context=from-trunk
insecure=very
nat=never
allow=all
USA 7:
Incoming Settings
USER Context: [46.19.209.75]
USER Details:
host=46.19.209.75
dtmfmode=rfc2833
type=peer
context=from-trunk
insecure=very
nat=never
allow=all
USA 8:
Incoming Settings
USER Context: [46.19.209.76]
USER Details:
host=46.19.209.76
dtmfmode=rfc2833
type=peer
context=from-trunk
insecure=very
nat=never
allow=all
USA 9:
Incoming Settings
USER Context: [46.19.209.77]
USER Details:
host=46.19.209.77
dtmfmode=rfc2833
type=peer
context=from-trunk
insecure=very
nat=never
allow=all
USA 10:
Incoming Settings
USER Context: [46.19.209.78]
USER Details:
host=46.19.209.78
dtmfmode=rfc2833
type=peer
context=from-trunk
insecure=very
nat=never
allow=all
USA 11:
Incoming Settings
USER Context: [46.19.209.79]
USER Details:
host=46.19.209.79
dtmfmode=rfc2833
type=peer
context=from-trunk
insecure=very
nat=never
allow=all
USA 12:
Incoming Settings
USER Context: [46.19.209.80]
USER Details:
host=46.19.209.80
dtmfmode=rfc2833
type=peer
context=from-trunk
insecure=very
nat=never
allow=all
Please, make sure you have defined extensions within a context [from-trunk] in extensions.conf, otherwise you need to add context="your context" in sip.conf under the created trunk above.
Now click on Inbound Routes and add your DID number (full number, including the country code) and map it to your desired extension or IVR.
Please find more information about DIDWW Configuration Scripts
KB » Step By Step Guides

How to set Asterisk@Home/TrixBox with DIDWW DID numbers?