In PBX web portal, Add a trunk,

[didforsale]
type=peer
host=[IP ADDRESS OF OUR SERVER]
nat=no
canreinvite=yes
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.

In extension.conf, add these lines.  //This will remove + from the callerid, which many people can not handle.
[from-didforsale]
exten => _X.,1,Set(CALLERID(num)=${CALLERID(num):1})
include => from-trunk

Now your system will be able to accept calls from didforsale.com. Now you can do anything you want with the DIDs.

Hope this helps, feel free to comment in this if you want to see any additional information of help.

Thank you,

-Jai

Fix for THEINCREDIBLEPBX.com/nerdvittles.com version of Asterisk (Contributed by one of our customer)

DIDforSale is sending calls to their server but the PBX was not getting any calls.  PBX in a Flash / The Incredible PBX is designed to be a completely secure system.  It turns out that I just needed to add your IPs to my iptables firewall.  Please follow the following steps:

1. SSH to your PBX
2. Run the following commands:
iptables -A INPUT -s 209.216.15.70 -j ACCEPT
iptables -A INPUT -s 209.216.2.211 -j ACCEPT
iptables -A WHITELIST -s 209.216.15.70 -j ACCEPT
iptables -A WHITELIST -s 209.216.2.211 -j ACCEPT
service iptables save
service iptables restart
This should fix your issue.