[VoIP] Asterisk Dialplan Question
Greg Blakely
greg at vyger.net
Sun Apr 27 09:12:05 CDT 2008
Yes, it is possible to set precedences. It is done in the dial plan.
Here is a brief US example.
exten => _1NXXNXXXXXX,1,Dial(IAX2/account at provider1/${EXTEN})
exten => _1NXXNXXXXXX,n,Dial(IAX2/differentaccount at provider2/${EXTEN})
exten => _1NXXNXXXXXX,n,Dial(ZAP/g1/${EXTEN})
In the example above, it will try the first route, and, failing that,
try the second. If it still doesn't work, it will dial out over a
standard POTS line attached to an FXO port (in group 1).
> -----Original Message-----
> From: voip-bounces at ckts.info [mailto:voip-bounces at ckts.info] On Behalf
> Of Richard Lane
> Sent: Sunday, April 27, 2008 12:47 AM
> To: CNET Groups (UK); CNET Groups (USA)
> Subject: [VoIP] Asterisk Dialplan Question
>
> Hi All,
>
> This is more of a general asterisk question but has a slight
connection
> to my CNET implementation.
>
> Description of system.
> I have my CNET asterisk server which has the Digium TDM400P card
> installed in it with 2 modules. One module is a FXS and the other is a
> FXO.
> The FXO is connected to the PSTN network (telstra) and the FXS is
> connected to my telephones.
> I have 2 sip providers, the first being free world dial up and the
> other
> being exetel voip which is a voip provider here in Australia.
> I also have dial plan configurations to dial CNET.
>
> Description of Dial plan
> To dial out via telstra currently I dial the full national number with
> a
> leading 1 in the front. i.e. 10394354150
> To dial out via exetel currently I dial the full national number with
a
> leading 2 in the front i.e. 20394354150
> To dial out via freeworlddialup currently I dial the number with a
> leading 393 in the front i.e. 393123456
> To dial out via CNET I dial the local, national or international
number
> i.e. 194 or 271194 or 060271194 or 00116160271194
>
> What I would like to do.
> Basically I would like to set an order of preference on my trunk lines
> so I can just dial the required number. What this do is basically look
> at the trunks and use exetel as preference 1 and telstra as preference
> 2. Is this possible? This would eliminate the need for the leading 1
or
> 2.
>
> Also I would like to have a simple menu on my dial plan so that you
> need
> to a leading number to get into CNET which then give you CNET dial
> tone.
> Is this possible? This would simplify my exetel and telstra dial plans
> because at the moment a lot of my numbers could be either PSTN or CNET
> calls from the same number. I hope this makes sense. Essentially by
> entering a number (say 1) it would pop you into CNET dial tone mode
and
> you dial your number from there. In the future when I have more FXS
> ports on my system some may or may not have access to the PSTN and or
> CNET.
>
> I reckon it would be possible to do this but thought I would throw
this
> out to the masses who may or may not have already implemented such
> facilities.
>
> Cheers
>
> Richard
> _______________________________________________
> VoIP mailing list
> VoIP at ckts.info
> http://lists.ckts.info/mailman/listinfo/voip
> Project Web Page: http://www.ckts.info/
>
More information about the VoIP
mailing list