[asterisk-users] Changing or Adding a Line to the Extensions.conf in Asterisk

Paul Torres ptorr at childshome.org
Thu Sep 17 08:12:58 CDT 2009


I have a Asterisk PBX System with Redhat Linux Fedora 4, Webmin version
1.400 and I am simply trying to configure into the "Extensions.conf"
script an entry that will add to the "Auto-Attendant" a line that will
allow a "Caller" to enter a "0" (Zero) will then ring the extension(s)
of the "Operator" to speak directly with the "OPERATOR" rather than
entering an "Employees Extension".

 

Below is a partial copy of the "Extensions.conf" file:

 

[globals]

 

[incoming]

exten => _X.,1,GotoIfTime(8:00-11:59|mon-fri|*|*?opened,s,1)

; closed for lunch

exten => _X.,n,GotoIfTime(12:00-13:00|mon-fri|*|*?closed,s,1)

exten => _X.,n,GotoIfTime(13:01-17:00|mon-fri|*|*?opened,s,1)

exten => _X.,n,GotoIfTime(17:01-23:59|fri|*|*?closed,s,1)

exten => _X.,n,GotoIfTime(*|sat-sun|*|*?closed,s,1)

exten => _X.,n,Goto(closed,s,1)

 

 

[opened]

include=parkedcalls

exten =>
s,1,MixMonitor(incoming-from_${CALLERIDNUM}-${TIMESTAMP}-${UNIQUEID}.wav
)

; Removed exten 201 and replaced with 238 on 8/24/06

;exten => s,n,Dial(Sip/201&Sip/209&Sip/211|20)

exten => s,n,Dial(Sip/238&Sip/209&Sip/211|20)

exten => s,n,Dial(Sip/227&Sip/225&Sip/213|20)

exten => s,n,Goto(ivr,s,1)

exten => _2XX,1,Macro(extensions,${EXTEN})

exten => 1234,1,Dial(Sip/phone1,20) ;Aastra 480iCT

 

[closed]

exten => s,1,Goto(ivr,s,1)

 

 

[ivr]

exten => s,1,Answer

exten => s,n,Set(LOOPCOUNT=0)

exten => s,n(begin),Set(TIMEOUT(digit)=3)

exten => s,n,Set(TIMEOUT(response)=10)

exten => s,n,Background(aa_1)

exten => s,n,WaitExten(10)

exten => s,n,Goto(loop,1)

 

exten => #,1,Directory(default|internal)

 

exten => i,1,Playback(invalid)

exten => i,n,Goto(loop,1)

exten => t,1,Goto(loop,1)

 

exten => loop,1,Set(LOOPCOUNT=$[${LOOPCOUNT} + 1])

exten => loop,n,GotoIf($[${LOOPCOUNT} > 2]?hang,1)

exten => loop,n,Goto(ivr,s,begin)

 

exten => hang,1,Playback(vm-goodbye)

exten => hang,n,Hangup

 

exten => _2XX,1,Macro(extensions,${EXTEN})

 

exten => 999,1,MusicOnhold

 

[internal]

include=parkedcalls

include=outgoing

exten => _2XX,1,Macro(extensions,${EXTEN})

 

exten => *97,1,VoicemailMain(${CALLERIDNUM}@default)

exten => *98,1,VoicemailMain

exten => _*XXX,1,VoicemailMain(${CALLERIDNUM}@default)

 

exten => 300,1,MeetMe(100)

 

exten => 678,1,Goto(ivr,s,1)

 

[macro-extensions]

exten =>
s,1,MixMonitor(exten_${ARG1}-from_${CALLERIDNUM}-${TIMESTAMP}-${UNIQUEID
}.wav)

exten => s,2,Dial(Sip/${ARG1}|20)

exten => s,3,Voicemail(${ARG1}|u)

exten => s,103,Voicemail(${ARG1}|b)

 

Thanks,

 

Paul Torres

IT Systems Manager

The Children's Home of Lubbock

 




More information about the asterisk-users mailing list