STEPS to get started :-
STEP-1 How to purchase DID from DIDforSale?
Create your portal by signing up with us at www.didforsale.com .
You can make a purchase by logging into your portal. All the transactions are carried over secured server.
STEP-2 Configure DID
2.1 Login in to your account and Click on Manage IP.
2.2 Enter the IP Address of your asterisk server or the softswitch you are using to receive calls. You can also specify the port number if you are not accepting calls on default port 5060.
You can configure more than one gateway.
2.3 Click on Manage DID. Select the gateway you want to receive calls for this DID.
Your DID is now configured. Call the DID and your system should now be receiving calls.
STEP-3 How to Configure YOUR Asterisk with DIDForSale?
Add the code below to your ‘sip.conf ‘ file
[didforsale_did]
type=peer
host=[IP ADDRESS OF OUR SERVER]
nat=yes
canreinvite=no
disallow=all
allow=ulaw
allow=alaw
dtmfmode=rfc2833
insecure=very
context=from-didforsale
Please note: You can find the IP for DIDForSale upon logging into your account. We send the calls to your public IP address and do not require any username, password or registration to our server.
Add the code below to your ‘extensions.conf ‘ file
[from-didforsale]
exten => _X.,1,Set(CALLERID(num)=${CALLERID(num):1}) ;This line removes the “+” in front of the CallerID.
include => from-trunk
;[you can forward it to your default context]
Looking forward to reselling DID’s?
If you are using VOIP SOFT Swicth and want to resell DID or want to give did’s to your customers using DIDForSale.com. You can configure multiple gateway’s under Manage IP and assign different gateway’s to each DID.
You need to set your switch to accept the calls from our ip address, and accept the call on g711 or g729 whatever works best for you.
Have Questions, Problems or Suggestions?
You can always reach us at Contact-support@didforsale.com with your questions, Problems or Suggestions.
For more information about our company and products visit http://www.didforsale.com

[...] You can find the instructions here. [...]
How to Configure Asterisk behind NAT?
How to Configure Asterisk behind Router?
How to Configure Asterisk behind firewall?
My asterisk works with DID For Sale but no Sound and no DTMF?
If your asterisk does not have public IP address and is on local LAN,
Update these values to configure your asterisk with DID for Sale.
In SIP.CON,
Under general section
[general]
externip=external IP address (IP address fo your router or firewall
localnet=local subnet
Say Public IP address of your router is 216.34.241.32 and IP address of you asterisk is 192.168.1.5
externip=216.34.241.32
localnet=192.168.1.0/24
Hope this will help.
Buy SIP DIDs from buysipdid.com
Can DID for sale work with a dynamic public IP address? Dynamic DNS?
Yes, VoIP DIDs from DID For Sale can be used with Dynamic Public IP address.
You will have to update your gateway as soon as your IP changes and you will also need to change your configuration.
externip=216.34.241.32 (This IP will need to be changed every time you get new IP)
localnet=192.168.1.0/24
So if your IP changes every day then it will be very hard to manage, if it changes once in few months, then it will be worth.
I keep getting errors when I use the above example and attempt to make a phone call. Most people tell me I need to include a username/password in the block and maybe a register line in the sip.con to make it work.
The error I get upon making any phone callis:
[Apr 19 16:12:54] NOTICE[15778]: chan_sip.c:12322 handle_response_invite: Failed to authenticate on INVITE to ‘”301″ ;tag=as6e1129c1′
I xxx out the IP of our asterisk server. The error appears in the console any time we attempt to make any call.
the last comment appears to have mangled the error message
let me try to insert it again and fix it
Apr 19 16:24:35 NOTICE[15778]: chan_sip.c:12322 handle_response_invite: Failed to authenticate on INVITE to ‘”301″ (sip:jason@xxx.xxx.xxx.xxx);tag=as13ab6b04′
I placed ( ) where the greater then and less then was. Apparently this page thinks its an html tag. Hopefully someone can tell me what I am doing wrong here.
Here is the sip.con entry:
[didforsale]
type=peer
host=xxx.xxx.xxx.xxx
nat=no
canrinvite=yes
disallow=all
allow=ulaw
allow=alaw
dtmfmode=rfc2833
insecure=very
context=incoming_calls
Again I XXX out the Ip of the didforsale server since this is a public page.
And here is the extensions.conf file
[outgoing_calls]
exten => _1NXXNXXXXXX,1,NoOp()
exten => _1NXXNXXXXXX,n,Dial(SIP/didforsale/${EXTEN})
Where am I going wrong here?
For Dynamic Public IP address, it would be perfect if DIDforsale accepts domain (ie. sip.mycompany.com) instead of IP address in “Manage IP”.
In my case, the IP address changes every day so I reasonably cannot user DIDforsale
kunal fixed the problem.
You should ask him specifically every DID you want to work with domain name
In Tribox CE (using FreePBX) you can set Asterisk to use DNS name to get the external ip address of the server to work properly behind a NAT
I have the following data in sip_general_custom.conf
nat=yes
externhost=externname.mydomain.com
localnet=192.168.1.0/255.255.255.0
externrefresh=60
edit values to reflect your setup. extername.mydomain.com should resolve to the, wait for it, external ip address of your router
[...] follow the <a href=“http://www.didforsale.com/blog/?p=47″>same instructions</a> to setup a *SIP* trunk (not an IAX [...]