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

Danny Nicholas danny at debsinc.com
Thu Sep 17 08:23:44 CDT 2009


This is simple;  in the [ivr] context, add
- exten => 0,1,Dial(SIP/238,20,KkTt)

A "better" way to handle this is to write a key in your asterisk database
and set up a context to allow changing the value
[ivr]
- exten => 0,1,Set(OPEREXT=${DB(Oper/ext)})
- exten => 0,2,Dial(SIP/${OPEREXT},20,KkTt)

Else where
exten => 199,1(start7),Playback(record/nightopext)
exten => 199,n,NoOp(executando - ${extensao} - )
exten => 199,n,BackGround(beep)
exten => 199,n,Read(digito,,3)
exten => 199,n,Gotoif($[ "${LEN(${digito})}" != "3"]?start7)
exten => 199,n,SayDigits(${digito})
exten => 199,n,Set(DB(Oper/ext)=${digito})
exten => 199,n,BackGround(vm-goodbye)

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Paul Torres
Sent: Thursday, September 17, 2009 8:13 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Changing or Adding a Line to the Extensions.confin
Asterisk

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

 


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list