My dial plan begins with my Sipura SPA-2000 with the following:
Code:
(#x<:1253>[2-9]xxxxxx|#x<:1>[2-9]xx[2-9]xxxxxxS0|#x1[2-9]xx[2-9]xxxxxxS0|<:1253>[2-9]xxxxxx|<:1>[2-9]xx[2-9]xxxxxxS0|1[2-9]xx[2-9]xxxxxxS0|[x*][x*].)
Before passing my call to VoXaLot any 7 digit numbers are prefixed with 1253 (my local are code). 10 digit numbers are prefixed with a 1 and sent out (S0) immediately, and full 11 digit domestic numbers are sent out immediately. 7 10 and 11 digit numbers prefixed with a # are sent to VoXaLot for use with different providers. The [x*][x*]. at the end allows for everything else, such as * codes for use with SIPBroker, 500 for voice mail, 011 international calls, etc.
Code:
Priority Pattern Replacement Provider
30 _0114[479]800. *${EXTEN:3} FWD
31 _01131800. *${EXTEN:3} FWD
32 _01144500. *${EXTEN:3} FWD
33 _01144808. *${EXTEN:3} FWD
34 _01149130. *${EXTEN:3} FWD
40 _011XX. 00${EXTEN:3} VoipDiscount
51 _#1XX. ${EXTEN:2} Voxee
52 _#2XX. ${EXTEN:2} PlainVoip
53 _#3XX. ${EXTEN:2} Vbuzzer
411 _411 18003733411 TRX Telecom
800 _1800. 1613-${EXTEN} TRX Telecom
822 _1822. 1613-${EXTEN} TRX Telecom
833 _1833. 1613-${EXTEN} TRX Telecom
844 _1844. 1613-${EXTEN} TRX Telecom
855 _1855. 1613-${EXTEN} TRX Telecom
866 _1866. 1613-${EXTEN} TRX Telecom
877 _1877. 1613-${EXTEN} TRX Telecom
888 _1888. 1613-${EXTEN} TRX Telecom
999 _1NXXNXXXXXX 00${EXTEN} VoipDiscount
Priority Code - Explanation
- 30s - Some international toll free numbers are sent through FWD (free). The 011 is stripped and a * is added.
- 40 - International calls. The 011 is replaced with 00 (as required by VoipDiscount) and sent to VoipDiscount.
- 50s - Allows me to choose an alternative VOIP provider. I can simply enter #1+phone number and the call with be handled by Voxee.
- 411 - Directory calls are sent to an 800 number through a free provider.
- 800s - Toll free calls sent to through a free provider.
- 999 - Domestic calls are sent to VoipDiscount, adding 00 to beginning as required by them.