[Asterisk-Users] Auto Attendant??

Joe Dennick joe at dennick.net
Thu Apr 8 21:35:53 MST 2004


You guys are making this way harder than it needs to be.  Assume your
main number comes in on 4400, you want to give the receptionist an
opportunity to answer the call, but if s/he's away from the desk or on
another call you want to proceed to an auto-attendant to direct the call
as necessary.  In the extensions.conf you will enter the following:

[default]
exten => 4400,1,Dial(SIP/4401,15,r) ; Ring the Receptionist for 15
seconds
exten => 4400,2,GoTo(MainMenu,s,1) ; If the Receptionist doesn't answer
goto the main menu
exten => 4400,102,GoTo(MainMenu,s,1) ; If the Receptionist is on the
phone goto the main menu

[MainMenu]
exten => s,1,Answer
exten => s,2,SetMusicOnHold(default)
exten => s,3,DigitTimeout,5
exten => s,4,Background(welcome) ; Play Welcome to companyname greeting
exten => s,5,Background(select) ; Play options menu that says select 1
for directory, 2 for sales, etc.

; Provide a directory of users
exten => 1,1,Directory(default) ; Users are listed in the default
context of voicemail.conf

; Go to the sales department
exten => 2,1,Dial(SIP/4402$SIP/4403,20,r) ; Ring the sales department

; Leave a voicemail for the sales department
exten => 2,2,Voicemail(sales) ; If no answer leave a message for the
sales department

; etc.....

***** End extensions.conf *****

You can create a simple extension to record the menu prompts in
extensions.conf like this:

exten => 205,1,Wait(2)
exten => 205,2,Record(/tmp/asterisk-recording:gsm)
exten => 205,3,Wait(2)
exten => 205,4,Playback(/tmp/asterisk-recording)
exten => 205,5,Wait(2)
exten => 205,6,Hangup

When you dial extension 205, you will hear a 'beep', after which you
should begin recording; press the # key when finished.  After each
recording is recorded, move it (/tmp/asterisk-recording.gsm) to
/var/lib/asterisk/sounds/filename.gsm so you can find it and access it
via the 'Background(filename)' command issued earlier.  

I just did this today to provide a customized menu system for a
Financial Consultant so that users could contact the Consultant, his
assistant, or leave a voicemail for each if they were busy or
unavailable.  You can provide a custom menu for each extension by
placing each in its own [context] and jumping to them with the GoTo
command.

Good Luck, and have fun!

Joe

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of AstGrp
Sent: Thursday, April 08, 2004 3:38 PM
To: asterisk-users at lists.digium.com
Subject: RE: [Asterisk-Users] Auto Attendant??


If you are refering to the Login & Logout of Auto Attendant you can find
an example in the wiki...

But here is an my example of what you will find in the wiki....

;Auto Attendant Login & Out
exten => *801,1,DBPut(auto/attendant=1)
exten => *801,2,Hangup
exten => *802,1,DBPut(auto/attendant=0)
exten => *802,2,Hangup

;Incoming calls- check if autoattendant is logged in, otherwise goto
"main" exten => s,1,DBGet(autoattendant=auto/attendant)
exten => s,2,GotoIf($[${autoattendant} = 1]?3:4)
exten => s,3,Dial(SIP/recep,30,t)
exten => s,4,Goto(main,s,1)

[main]
exten => s,1,Answer
exten => s,2,Background(ctm-main-thanks)
exten => 1,1,Goto(default-ctm,3001,1)
exten => 2,1,Goto(default-ctm,3002,1)
exten => 0,1,Goto(default-pb,2002,1)
exten => 3,1,Hangup

Hope this helps....

-gcc


-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of James Moran
Posted At: Thursday, April 08, 2004 1:48 PM Posted To: Asterisk User
Group
Conversation: [Asterisk-Users] Auto Attendant??
Subject: [Asterisk-Users] Auto Attendant??


I'm having trouble finding documentation for the auto attendant does
anyone have an idea where there might be some???

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.645 / Virus Database: 413 - Release Date: 3/28/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.645 / Virus Database: 413 - Release Date: 3/28/2004
 




More information about the asterisk-users mailing list