[Asterisk-Users] Dial Plan Sequencing

Carlton J. O'Riley CORILEY at comcast.net
Wed Nov 12 13:48:53 MST 2003


Here is what I have which uses IAXTEL for 800 calling and VOIP for long
distance with a fall back to my PSTN line.  I don't have any issues as far
as 1800 numbers being grabbed before the long distance numbers.  My internal
context is for all extensions inside the house, whereas the fax doesn't use
VOIP at all.  Don't know if this will help or not:

[longdistance]
exten => _1NXXXXXXXXX,1,Dial(${VP_CONN}/${EXTEN}@voicepulseconn)
exten => _1NXXXXXXXXX,2,Dial(${OUTGOING}/${EXTEN})
exten => _1NXXXXXXXXX,3,Congestion

[longdistance-novoip]
exten => _1NXXXXXXXXX,1,Dial(${OUTGOING}/${EXTEN})
exten => _1NXXXXXXXXX,2,Congestion

[tollfree]
exten => _1800NXXXXXX,1,Dial(${IAXTEL}/${EXTEN}@iaxtel)
exten => _1800NXXXXXX,2,Dial(${OUTGOING}/${EXTEN})
exten => _1888NXXXXXX,1,Dial(${IAXTEL}/${EXTEN}@iaxtel)
exten => _1888NXXXXXX,2,Dial(${OUTGOING}/${EXTEN})
exten => _1877NXXXXXX,1,Dial(${IAXTEL}/${EXTEN}@iaxtel)
exten => _1877NXXXXXX,2,Dial(${OUTGOING}/${EXTEN})
exten => _1866NXXXXXX,1,Dial(${IAXTEL}/${EXTEN}@iaxtel)
exten => _1866NXXXXXX,2,Dial(${OUTGOING}/${EXTEN})

[tollfree-iax]
exten => _91800NXXXXXX,1,Dial(${IAXTEL}/${EXTEN:1}@iaxtel)
exten => _91888NXXXXXX,1,Dial(${IAXTEL}/${EXTEN:1}@iaxtel)
exten => _91877NXXXXXX,1,Dial(${IAXTEL}/${EXTEN:1}@iaxtel)
exten => _91866NXXXXXX,1,Dial(${IAXTEL}/${EXTEN:1}@iaxtel)

[local]
include => emergency
include => operator
include => info
exten => _703NXXXXXX,1,Dial(${OUTGOING}/${EXTEN})
exten => _202NXXXXXX,1,Dial(${OUTGOING}/${EXTEN})
exten => _301NXXXXXX,1,Dial(${OUTGOING}/${EXTEN})
exten => _571NXXXXXX,1,Dial(${OUTGOING}/${EXTEN})

[emergency]
exten => 911,1,Dial(${OUTGOING}/${EXTEN})

[operator]
exten => 0,1,Dial(${OUTGOING}/${EXTEN})

[info]
exten => 411,1,Dial(${OUTGOING}/${EXTEN})

[fax]
include => house
include => local
include => longdistance-novoip
include => international-novoip

[internal]
include => house
include => local
include => iaxtel
include => fwd-out
include => iconnect
include => tollfree
include => longdistance
include => international



More information about the asterisk-users mailing list