Re: [Asterisk-Users] after hours - is this logic ok ?

2004-01-01 Thread Lance Arbuckle
Steven Critchfield wrote: > > > First, one can not be flamed to death on a mailing list. > well... back in the early days of the internet that was quite true because there was a Small Company that made excellent FLAME suits. The suits were were made of top quality materials and were expe

Re: [Asterisk-Users] after hours - is this logic ok ?

2004-01-01 Thread Steven Critchfield
On Thu, 2004-01-01 at 12:45, Lance Arbuckle wrote: > For example, if I want to implement feature xyz, currently I go googling > and read, read, read. I may come up with two or three sample contexts > that accomplish the same thing via different means. All I can do now is > pick one of the example

Re: [Asterisk-Users] after hours - is this logic ok ?

2004-01-01 Thread Lance Arbuckle
Tilghman Lesher wrote: > > On Thursday 01 January 2004 12:45, Lance Arbuckle wrote: > > So, here's another question... How does someone with no programming > > experience, effectively learn the proper way to do things in Asterisk > > ? > > Trial and error is especially effective. This is how

Re: [Asterisk-Users] after hours - is this logic ok ?

2004-01-01 Thread Tilghman Lesher
On Thursday 01 January 2004 12:45, Lance Arbuckle wrote: > Tilghman Lesher wrote: > > I'm curious as to why you're going the extra step to put a value > > into the database. Why not just set a channel variable and check > > that value? > > > > [day] > > exten => s,2,SetVar(daytime=1) > > > > [nigh

Re: [Asterisk-Users] after hours - is this logic ok ?

2004-01-01 Thread Philipp von Klitzing
Hi! > > Using a variable is nice, because all channels get their own variable > > space, so there's no chance of collisions between different calls, > and > the variable is automatically trashed when the channel is hungup. I just added this to the SetVar() documentation on the Wiki. A question:

Re: [Asterisk-Users] after hours - is this logic ok ?

2004-01-01 Thread Lance Arbuckle
Tilghman Lesher wrote: > > I'm curious as to why you're going the extra step to put a value into > the database. Why not just set a channel variable and check that value? > > [day] > exten => s,2,SetVar(daytime=1) > > [night] > exten => s,2,SetVar(daytime=0) > > [macro-stdexten] > exten =>

Re: [Asterisk-Users] after hours - is this logic ok ?

2004-01-01 Thread Tilghman Lesher
On Wednesday 31 December 2003 19:16, Lance Arbuckle wrote: > Andrew Thompson wrote: > > - Original Message - > > From: "Lance Arbuckle" <[EMAIL PROTECTED]> > > > > > > Before I get too excited, I wanted to get all you experts to look > > > at the how I implemented my after hours test. The

Re: [Asterisk-Users] after hours - is this logic ok ?

2003-12-31 Thread Lance Arbuckle
Andrew Thompson wrote: > > - Original Message - > From: "Lance Arbuckle" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, December 31, 2003 1:54 PM > Subject: [Asterisk-Users] after hours - is this logic ok ? > > > > > Ok, first off, Asterisk is the coolest piece of soft

Re: [Asterisk-Users] after hours - is this logic ok ?

2003-12-31 Thread Andrew Thompson
- Original Message - From: "Lance Arbuckle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 31, 2003 1:54 PM Subject: [Asterisk-Users] after hours - is this logic ok ? > > Ok, first off, Asterisk is the coolest piece of software I have EVER had > the pleasure of usin

Re: [Asterisk-Users] after hours - is this logic ok ?

2003-12-31 Thread Andrew Thompson
- Original Message - From: "Lance Arbuckle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 31, 2003 1:54 PM Subject: [Asterisk-Users] after hours - is this logic ok ? > > Ok, first off, Asterisk is the coolest piece of software I have EVER had > the pleasure of usin

Re: [Asterisk-Users] after hours logic

2003-12-29 Thread Lance Arbuckle
Sean Cheesman wrote: > > Hi Lance, > > Watch your voicemail-busy line. The step count looks like it's wrong. It's > never fun to track down a little problem like that! > > Sean I've been editing this thing so much this afternoon I guess I missed that little error :) that, and I have no clu

RE: [Asterisk-Users] after hours logic

2003-12-29 Thread Sean Cheesman
ubject: Re: [Asterisk-Users] after hours logic Andrew Thompson wrote: > Yes, move your GotoIfTime logic into the macro. Then any call to that macro > would be subject to that rule. > > However, in that case, you might want to match against internal > extensions(inside the macro) s

Re: [Asterisk-Users] after hours logic

2003-12-29 Thread Lance Arbuckle
Andrew Thompson wrote: > Yes, move your GotoIfTime logic into the macro. Then any call to that macro > would be subject to that rule. > > However, in that case, you might want to match against internal > extensions(inside the macro) so that you can still call desk-to-desk after > hours. I thin

Re: [Asterisk-Users] after hours logic

2003-12-29 Thread Andrew Thompson
mods, please excuse my other posting... forgot to reset the email address :) - Original Message - From: "Lance Arbuckle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 29, 2003 3:57 PM Subject: Re: [Asterisk-Users] after hours logic &

Re: [Asterisk-Users] after hours logic

2003-12-29 Thread Lance Arbuckle
Andrew Thompson wrote: > > Go to your console, and type show application GotoIfTime > If "billing", "support", and "sales" are your users/extensions, go back to > the asterisk pdf, or the wiki and look up macro's. Actually, you'll probably > be interested in them to clean up that section anyway

Re: [Asterisk-Users] after hours logic

2003-12-29 Thread Andrew Thompson
- Original Message - From: "Lance Arbuckle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 29, 2003 2:16 PM Subject: [Asterisk-Users] after hours logic > I think I have a good start on this, but I can't figure out how to > modify the behavior of the extension phones in

Re: [Asterisk-Users] after hours

2003-12-26 Thread Olle E. Johansson
Troy Settle wrote: They told me not to feed the trolls, but here goes anyways. The difference between 9AM and 9PM is 12. 12 + 9 = 21 So, if you want 9PM, use 21:00 (which you cleverly did include in the example you asked about). Now, as for different schedules on different days, here's what I ha

RE: [Asterisk-Users] after hours

2003-12-26 Thread Troy Settle
They told me not to feed the trolls, but here goes anyways. The difference between 9AM and 9PM is 12. 12 + 9 = 21 So, if you want 9PM, use 21:00 (which you cleverly did include in the example you asked about). Now, as for different schedules on different days, here's what I have: ; First, let

RE: [Asterisk-Users] after hours

2003-12-19 Thread mick
Sorry what did you say you had in your hand ??? Regards Mick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Critchfield Sent: Friday, 19 December 2003 2:34 PM To: [EMAIL PROTECTED] Subject: Re: [Asterisk-Users] after hours On Thu, 2003-12

Re: [Asterisk-Users] after hours

2003-12-18 Thread Steven Critchfield
On Thu, 2003-12-18 at 15:51, matt wrote: > Although it's hard to see the original proverb writer saying RTFM Not really. The manual contains the teachings necessary to learn for yourself. So if nudging yourself down the road to self enlightenment is nothing more than reminding you there are fish i

RE: [Asterisk-Users] after hours

2003-12-18 Thread mick
EMAIL PROTECTED] Subject: Re: [Asterisk-Users] after hours - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 18, 2003 3:30 PM Subject: RE: [Asterisk-Users] after hours > > -Original Message- > From: [EMAIL PROTECTED]

RE: [Asterisk-Users] after hours

2003-12-18 Thread mick
Yeah And give him a gun And look at what happened at Port Arthur Regards Mick Although it's hard to see the original proverb writer saying RTFM :-) Matt Andrew Thompson wrote: "Give a man a fish and he eats for a day. Teach him to fish and he eats for a lifetime." ___

Re: [Asterisk-Users] after hours

2003-12-18 Thread matt
Although it's hard to see the original proverb writer saying RTFM :-) Matt Andrew Thompson wrote: "Give a man a fish and he eats for a day. Teach him to fish and he eats for a lifetime." ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists

Re: [Asterisk-Users] after hours

2003-12-18 Thread Andrew Thompson
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 18, 2003 3:30 PM Subject: RE: [Asterisk-Users] after hours > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Steven >

Re: [Asterisk-Users] after hours

2003-12-18 Thread matt
Are you sweet with it now? The other option is to go to the documentation link on digium's website where there are demo config files...that's probably the single thing that helped me the most... Also the people on the irc group can be nice from time to timealthough it helps to be demure and

RE: [Asterisk-Users] after hours

2003-12-18 Thread mick
: [Asterisk-Users] after hours On Thu, 2003-12-18 at 02:26, [EMAIL PROTECTED] wrote: > When setting > > include => daytime|9:00-21:00|mo-fri|*|* > > How does this determine what is different between 9 AM and 9 PM > > And after hours ??? > > I want different hours o

Re: [Asterisk-Users] after hours

2003-12-18 Thread Steven Critchfield
On Thu, 2003-12-18 at 02:26, [EMAIL PROTECTED] wrote: > When setting > > include => daytime|9:00-21:00|mo-fri|*|* > > How does this determine what is different between 9 AM and 9 PM > > And after hours ??? > > I want different hours on Saturday and Sunday > > And a different welcome message af