Re: [asterisk-users] Good script to make appointment?

2010-08-02 Thread Matt Riddell
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)

-- 
_
-- 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


Re: [asterisk-users] Good script to make appointment?

2010-07-17 Thread Gilles
On Fri, 16 Jul 2010 09:36:04 -0500, Danny Nicholas
da...@debsinc.com wrote:
Also, in my experience, you will live a happier life depending on the
dialplan to handle DTMF processing than an AGI.

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 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


Re: [asterisk-users] Good script to make appointment?

2010-07-17 Thread Zeeshan Zakaria
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 codecompl...@free.fr wrote:

On Fri, 16 Jul 2010 09:36:04 -0500, Danny Nicholas
da...@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...
-- 
_
-- 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

Re: [asterisk-users] Good script to make appointment?

2010-07-16 Thread Gilles
On Thu, 15 Jul 2010 12:39:51 -0500, Danny Nicholas
da...@debsinc.com wrote:
This how I would do it

BTW, is it possible to trigger an AGI script right from the first step
and handle the whole IVR logic in an higher-level script language than
what's available in extensions.conf?


-- 
_
-- 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


Re: [asterisk-users] Good script to make appointment?

2010-07-16 Thread Danny Nicholas


-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Gilles
Sent: Friday, July 16, 2010 9:28 AM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Good script to make appointment?

On Thu, 15 Jul 2010 12:39:51 -0500, Danny Nicholas
da...@debsinc.com wrote:
This how I would do it

BTW, is it possible to trigger an AGI script right from the first step
and handle the whole IVR logic in an higher-level script language than
what's available in extensions.conf?


-- 
--
To give you the best answer I can - a qualified yes;  I always do 
Exten = s,1,answer
Then
Exten = s,2,AGI...
So that any functions that need the line active are housekeeped before the
AGI starts.  YMMV but that's my practice.
Also, in my experience, you will live a happier life depending on the
dialplan to handle DTMF processing than an AGI.
_
-- 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


-- 
_
-- 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


Re: [asterisk-users] Good script to make appointment?

2010-07-15 Thread Danny Nicholas


-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Gilles
Sent: Thursday, July 15, 2010 11:40 AM
To: asterisk-users@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


-- 
_
-- 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


Re: [asterisk-users] Good script to make appointment?

2010-07-15 Thread Gilles
On Thu, 15 Jul 2010 12:39:51 -0500, Danny Nicholas
da...@debsinc.com wrote:
This how I would do it

Thanks a lot Danny. I'll study this and see how it goes.


-- 
_
-- 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