[asterisk-users] allowing call every 15mins

Salvatore Giudice Salvatore.Giudice at VoIPSecurityTraining.com
Wed May 2 15:13:26 MST 2007


I don't think he only wants to receive calls once every 15 min. I think he
wants you not to be able to call back unless you wait 15 minutes. I guess he
doesn't have an ACD or a queue.

--------------------------------------------------
Salvatore Giudice
Salvatore.Giudice at VoIPSecurityTraining.com

VoIP Security Training, LLC
http://VoIPSecurityTraining.com

848 N. Rainbow Blvd. #1676
Las Vegas, NV 89107
Phone: (617) 959-7625
Fax: (214) 279-2906


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Andrew
Kohlsmith
Sent: Wednesday, May 02, 2007 4:37 PM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] allowing call every 15mins

On Wednesday 02 May 2007 3:04 pm, Goke Aruna wrote:
> I have a set up that answer my customer. and its working well,
> however, the number of call to technical dept is what i want to reduce.
> I want all call to get to voice prompt except that that enter when
> minutes is 15, 30, 45, 60(in multiples of 15 minutes).

So YOU're the guy who makes the calls to tech support so hideous!!

> how can i achieve this and what application can i use to get this done.

GotoIfTime can help you here, but it'll be a little messy:

exten => 1,1,GotoIfTime(0:01-0:14|*|*|*?toobad)
exten => 1,n,GotoIfTime(0:16-0:29|*|*|*?toobad)
exten => 1,n,GotoIfTime(0:31-0:44|*|*|*?toobad)
exten => 1,n,GotoIfTime(0:46-0:59|*|*|*?toobad)
exten => 1,1,GotoIfTime(1:01-1:14|*|*|*?toobad)
exten => 1,n,GotoIfTime(1:16-1:29|*|*|*?toobad)
exten => 1,n,GotoIfTime(1:31-1:44|*|*|*?toobad)
exten => 1,n,GotoIfTime(1:46-1:59|*|*|*?toobad)
...
exten => 1,1,GotoIfTime(23:01-23:14|*|*|*?toobad)
exten => 1,n,GotoIfTime(23:16-23:29|*|*|*?toobad)
exten => 1,n,GotoIfTime(23:31-23:44|*|*|*?toobad)
exten => 1,n,GotoIfTime(23:46-23:59|*|*|*?toobad)
exten => 1,n,Dial(SIP/techsupport)
exten => 1,n,GotoIf($[${DIALSTATUS} = BUSY]?toobad)
exten => 1,n,Hangup
exten => 1,n(toobad),VoiceMail(100 at default)

Very messy.  Alternatively:
exten => 1,1,GotoIfTime(0:00-0:00|*|*|*?woohoo)
exten => 1,n,GotoIfTime(0:15-0:15|*|*|*?woohoo)
exten => 1,n,GotoIfTime(0:30-0:30|*|*|*?woohoo)
exten => 1,n,GotoIfTime(0:45-0:45|*|*|*?woohoo)
...
exten => 1,n,GotoIfTime(23:00-23:00|*|*|*?woohoo)
exten => 1,n,GotoIfTime(23:15-23:15|*|*|*?woohoo)
exten => 1,n,GotoIfTime(23:30-23:30|*|*|*?woohoo)
exten => 1,n,GotoIfTime(23:45-23:45|*|*|*?woohoo)
exten => 1,n,VoiceMail(100 at default)
exten => 1,n,Hangup
exten => 1,n(woohoo),Dial(SIP/techsupport)
...

Pretty much equally messy.

Both of these examples assume you want to allow calls for a minute every 
quarter hour 24 hours a day, quite possibly to match policies on most
vendors 
which claim they offer 24-hour tech support but implement similar 
dialplans. :-)

Honestly though this is a strange request...  Why bother offering tech
support 
if you are only allowing calls for 1 minute every 15 minutes?  Why not be 
honest about it and do this:

exten => 1,1,Playback(sorry-we-dont-offer-support)
exten => 1,n,Wait(30)
exten => 1,n,Hangup

??

-A.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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