All pastes #22228 Raw Edit

Anonymous

public text v1 · immutable
#22228 ·published 2005-09-06 14:10 UTC
rendered paste body

;----------------extensions configuration file-------------------------;

[globals]
L-PSTN1 => Zap/1
IAX-FJ => IAX2/fjean


;-----this is where the ivr kicks in-----------------------------------;
[mainmenu];created by jerry
exten => s,1,Answer()
exten => s,2,Background(mainmenu)          ;main menu
exten => 0,1,Dial(SIP/sipphone3,20,tr)     ;operator
exten => 1,1,Goto(internal,s,1)          ;extensions
exten => 2,1,Goto(directory,s,1)           ;directory assistance
exten => 3,1,Dial(SIP/sipphone3,20,tr)     ;tech support
exten => 4,1,Goto(contact,s,1)             ;contact information
exten => 5,1,Goto(productsandservices,s,1) ;products and services
exten => 9,1,Goto(mainmenu,s,2)            ;repeat main menu






;-----------menu for directory assistance------------------------------;
[directory]
exten => s,1,Background(directory)
exten => 1,1,Goto(directory,s,1)
exten => 9,1,Goto(mainmenu,s,2)


;----------menu for company contact information------------------------;
[contact]
exten => s,1,Background(contact)
exten => 1,1,Goto(contact,s,1)
exten => 9,1,Goto(mainmenu,s,2)


;----------menu for company products and services----------------------;
[productsandservices]
exten => s,1,Background(productsandservices)
exten => 1,1,Goto(productsandservices,s,1)
exten => 9,1,Goto(mainmenu,s,2)


;----sends incoming calls to the ivr-----------------------------------;
[external]
include => mainmenu


;-----sends internal calls to the right location-----------------------;
[internal]
;exten => 4101,1,Goto(mainmenu,s,1)  ;to dial main menu internally
;exten => 1,1,Goto(internal,s,1)   ;dial 1 to to place internal calls
exten => s,1,Background(enter-ext-of-person)
exten => 4111,1,Dial(SIP/sipphone1,20,tr)
exten => 4112,1,Dial(SIP/sipphone2,20,tr)
exten => 4113,1,Dial(SIP/sipphone3,20,tr)
exten => 4114,2,Dial(SIP/sipphone4,20,tr)
exten => 4121,1,Dial(IAX2/jerry,20,tr)
exten => 4122,1,Dial(IAX2/mego,20,tr)
exten => 4123,1,Dial(IAX2/anderson,20,tr)
exten => 4124,1,Dial(IAX2/joel,20,tr)




;-----------allows local calls to be made------------------------------;
[local]
exten => _NXXXXXX,1,Dial(${L-PSTN1}/${EXTEN},240)
exten => _NXXXXXX,2,Congestion
include => internal


;----------allows longdistance calls to be made------------------------;
[longdistance]
exten => _1NXXNXXXXXX,1,SetCallerID(8686283809);
exten => _1NXXNXXXXXX,2,Dial(IAX2/sgway/${EXTEN},240)
exten => _1NXXNXXXXXX,3,Congestion;
include => local

;----------allows international calls to be made-----------------------;
[intl]
exten => _001.,1,Dial(IAX2/sgway/${EXTEN},240)
exten => _001.,2,Congestion
include => local