[Asterisk-Users] multiple days on a GotoIfTime command?
Gelson Dias Santos
gelson.santos at opservices.com.br
Wed Jul 7 09:51:10 MST 2004
The problem is, there is no pattern. It´s not an open/close scenario.
This month I need to call NUMBER1, NUMBER2 and NUMBER3 on those days.
Next month, who knows? I´ll receive another schedule to implement on
asterisk.
I see no way to avoid changing those lines each month. What I´m trying
to do is reduce the number os files involved.
Gelson
brian wrote:
> I see the pattern.. let me think for a second.. and I'm sure I can get you
> something that's simpler than 31 gotoif's
>
>
> bkw
>
>
>>-----Original Message-----
>>From: asterisk-users-admin at lists.digium.com [mailto:asterisk-users-
>>admin at lists.digium.com] On Behalf Of brian
>>Sent: Tuesday, July 06, 2004 5:24 PM
>>To: asterisk-users at lists.digium.com
>>Subject: RE: [Asterisk-Users] multiple days on a GotoIfTime command?
>>
>>You're making this WAY too complicated its simpler than you can even
>>imagine.
>>
>>Mind answering my original question first? WHAT THE HECK is the pattern
>>your logic? What times are you open.. what times are you closed? What?
>>
>>
>>bkw
>>
>>
>>>-----Original Message-----
>>>From: asterisk-users-admin at lists.digium.com [mailto:asterisk-users-
>>>admin at lists.digium.com] On Behalf Of Roger Gulbranson
>>>Sent: Tuesday, July 06, 2004 4:20 PM
>>>To: asterisk-users at lists.digium.com
>>>Cc: Roger Gulbranson
>>>Subject: Re: [Asterisk-Users] multiple days on a GotoIfTime command?
>>>
>>>On Tue, 2004-07-06 at 17:03, Gelson Dias Santos wrote:
>>>
>>>>brian wrote:
>>>>
>>>>
>>>>>What are you trying to do? What is the end result and what hours
>>
>>are
>>
>>>you
>>>
>>>>>open?
>>>>
>>>>
>>>> Exactly what I said. Need to call a number if time and day matches
>>>
>>>what
>>>
>>>>is on the rule. This month I have to:
>>>>
>>>> call NUMBER1 if day = 1,2,3,4,5,8,14,17,18,20,23,26,29
>>>> call NUMBER2 if day = 6,9,10,11,12,15,21,27,30,31
>>>> call NUMBER3 if day = 7,13,16,19,22,24,25,28
>>>>
>>>> I have it working now using 31 "GotoIfTime" lines, one for each day
>>>
>>>of
>>>
>>>>month but I would like to optimize it. If I could group all days
>>
>>related
>>
>>>>to a number somehow, I would end up with just three "GotoIfTime"
>>
>>lines.
>>
>>>You are making this way too complicated.
>>>
>>>Use DBget to retrieve a number which is the extension you want and then
>>>dial that extension.
>>>
>>>Have a cron job (or something similar) set the extension you want via
>>>DBset. You can put all of your time logic into the cron job.
>>>
>>>There may be even simpler solutions.
>>>
>>>
>>>
>>>_______________________________________________
>>>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
>
>
>
> _______________________________________________
> 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
More information about the asterisk-users
mailing list