Hi Steve-o
As we discussed above, Asterisk will pretty much accept a sip call from anywhere provided you have an "extension" in extensions.conf to catch it.
Registration is pretty much exactly as you decribe for Tbox, or whatever you were using before. For this carrier, you can just use the "generalSIP" predefined carrier (already in SAIL). It is already set up to do most of what you need.
You only need register a carrier once, so you only need to create one carrier trunk, no matter how many DiDs you have. To create the DiDs just use the PTT_DiD_Group trunk. This won't actually create a trunk, it will just create entries in the correct context within extensions.conf. However, you already told the carrier where you were when you registered the one carrier trunk, so there isn't any need to register any more. Moreover, if your DiDs are consecutive, you can create them all at once with the PTT_DiD_Group trunk.
When you create your trunk (specifying generalSIP), SAIL will ask you for 5 items... Here's how we would fill it out
Trunk Name: Vitelity1
DiD Number: Your Vitelity UID
Carrier's URL/IP Address: inbound5.vitelity.net
Username : your Vitelity UID
Password : your Vitelity pwd
Hit Commit.
Now go edit your new trunk..
SAIL will already have filled out your regsitration correctly for you. Don't change what it has done.
Next; in the left hand window... the only two things you might want to add to what SAIL has already generated for you are...
trustrpid=yes
sendrpid=yes
I'm not sure that the sendrpid and trustrpid values are necessary but you can try it with and without. DO NOT be tempted to add a "context= " statement. SAIL has already got this covered and you will screw SAIL up if you include your own.
You shouldn't need anything at all in the right-hand window so you can just leave it empty (depite what the carrier says in her literature).
Finally, create your DiD trunks (using PTT_DiD_Group) and route them to wherever you want each call to end up.
That should about do it. You don't need to add anything to extensions.conf, SAIL will take care of that for you.
Kind Regards
S