Hello I'd like to write a script that would make it easier for people to call in, listen to the IVR, and make an appointment (eg. "When? ASAP? A given day?" -> "Morning? Afternon", etc.) I assume I'm not the first one to try and write this type of IVR, so would appreciate any feedback on writing this. Thank you.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Gilles
Sent: Thursday, July 15, 2010 11:40 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Good script to make appointment?
Hello
I'd like to write a script that would make it easier for people to
call in, listen to the IVR, and make an appointment (eg. "When? ASAP?
A given day?" -> "Morning? Afternon", etc.)
I assume I'm not the first one to try and write this type of IVR, so
would appreciate any feedback on writing this.
Thank you.
--
--
This how I would do it
Exten => 1234,1,answer
Exten => 1234,n,playback(instructions)
Exten => 1234,n,noop(choice-1 pick a day)
Exten => 1234,n,Goto(choice-1|s|1)
[choice-1]
Exten => s,1,waitexten(5,m)
Exten => 1,1,noop(pressed 1, do that action)
Exten => 2,1,noop(pressed 2, do that action)
Exten => 3,1,noop(pressed 3, do that action)
Exten => 4,1,noop(pressed 4, do that action)
Exten => 4,n,Set(apptday=2)
Exten => 4,n,Goto(time-choice|s|1)
Exten => i,1,Goto(choice-1|s|1)
Exten => *,1,Goto(choice-1|s|1)
Exten => t,1,hangup
[time-choice]
Exten => s,1,read(apptime,settime,4,5)
.. do an AGI or whatever to record the date and time.
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
That is why there is AEL (asterisk extension language). I wouuld highly suggest to spend an hour or two to get familiar with it, and it'll make writing dialplans a breeze. http://www.voip-info.org/wiki/view/Asterisk+AEL Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-07-17 6:06 AM, "Gilles" <codecomplete at free.fr> wrote: On Fri, 16 Jul 2010 09:36:04 -0500, "Danny Nicholas" <danny at debsinc.com> wrote:>Also, in my experie...Thanks for the input. Writing logic in extensions.conf is such a pain that I was looking for a higher-level solution, either through AGI or elsewhere. -- _____________________________________________________________________ -- Bandwidth and Colocation Pr... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100717/839dd8c0/attachment.htm
On 16/07/10 4:40 AM, Gilles wrote:> Hello > > I'd like to write a script that would make it easier for people to > call in, listen to the IVR, and make an appointment (eg. "When? ASAP? > A given day?" -> "Morning? Afternon", etc.) > > I assume I'm not the first one to try and write this type of IVR, so > would appreciate any feedback on writing this.http://www.voip-info.org/tiki-index.php?page=Asterisk+tips+Wake-Up+Call+PHP -- Cheers, Matt Riddell _______________________________________________ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/exchange.php (Full ITSP Solution) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer)