[asterisk-users] GoToIfTime problem

2010-07-30 Thread Jonas Kellens

Hello list,

how come when the time is 12:31:18, the GoToIfTime-statement evaluates 
to true ??



[Jul 30 12:31:18] -- Executing [...@macro-hours:42] 
GotoIfTime(SIP/TELin-0067, 9:00-12:30|fri|*|*?exit) in new stack

[Jul 30 12:31:18] -- Goto (macro-hours,s,58)


The macro jumps to step 58, namely exit.

I would expect the GoToIfTime-statement evaluates to False and goes to 
the next step, no ?!




Kind regards,

Jonas.
-- 
_
-- 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] GoToIfTime problem

2010-07-30 Thread Doug Lytle
Jonas Kellens wrote:
 Hello list,

 how come when the time is 12:31:18, the GoToIfTime-statement evaluates 
 to true ??



As noted in the Wiki:

Times before Asterisk 1.6.2 are only accurate down to the 2-minute 
interval. So 12:01 is treated the same as 12:00.
Starting with 1.6.2, times are accurate down to the minute. 

Doug

-- 

Ben Franklin quote:

Those who would give up Essential Liberty to purchase a little Temporary 
Safety, deserve neither Liberty nor Safety.


-- 
_
-- 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] GotoIfTime problem

2010-07-04 Thread Zhang Shukun
Thank you very much! Lesher

2010/7/2 Tilghman Lesher tles...@digium.com:
 On Thursday 01 July 2010 21:59:21 Zhang Shukun wrote:
 hi, all

     recently, i face a GotoIfTime problem

 GotoIfTime(08:00:00-07:00:00,mon-sun,*,*?95040263008,start)

 as you can see the section is 08:00:00-07:00:00  , which is the begin
 time is later than the end time

 what's this refers then?

 in my test , my system time is 10:57:00, but this check will pass,
 although i guess i will not.

 is begin time later than the end time  means * (all the day 24 hours)?

 No, it means 23 hours a day, excluding 7:00 a.m. to 8:00 a.m.

 --
 Tilghman Lesher
 Digium, Inc. | Senior Software Developer
 twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
 Check us out at: www.digium.com  www.asterisk.org

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




-- 
Thanks for your supporting,
have a nice day.
Sucan

-- 
_
-- 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] GotoIfTime problem

2010-07-02 Thread Tilghman Lesher
On Thursday 01 July 2010 21:59:21 Zhang Shukun wrote:
 hi, all

 recently, i face a GotoIfTime problem

 GotoIfTime(08:00:00-07:00:00,mon-sun,*,*?95040263008,start)

 as you can see the section is 08:00:00-07:00:00  , which is the begin
 time is later than the end time

 what's this refers then?

 in my test , my system time is 10:57:00, but this check will pass,
 although i guess i will not.

 is begin time later than the end time  means * (all the day 24 hours)?

No, it means 23 hours a day, excluding 7:00 a.m. to 8:00 a.m.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com  www.asterisk.org

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


[asterisk-users] GotoIfTime problem

2010-07-01 Thread Zhang Shukun
hi, all

recently, i face a GotoIfTime problem

GotoIfTime(08:00:00-07:00:00,mon-sun,*,*?95040263008,start)

as you can see the section is 08:00:00-07:00:00  , which is the begin
time is later than the end time

what's this refers then?

in my test , my system time is 10:57:00, but this check will pass,
although i guess i will not.

is begin time later than the end time  means * (all the day 24 hours)?

Could you help me ? Thanks
-- 
Thanks for your supporting,
have a nice day.
Sucan

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


[asterisk-users] GotoIfTime problem - possible bug

2009-11-23 Thread Nic Colledge
Hi,

I'm currently doing some testing against asterisk 1.6.1.7-rc2 (keep meaning to 
upgrade) and am having a problem with the GotoIfTime dial plan function.
The asterisk book says that day of week field can include the ampersand () to 
combine multiple days / day ranges but this gives me an error.
For example monwed gives the error (in the asterisk console):
[Nov 23 18:04:27] WARNING[11387]: pbx.c:6249 get_range: Invalid day of week 
'monwed', assuming none

Does anyone else have experience of this problem? Are there any patches / newer 
versions to get around this?

Thanks in advance.

Regards,
Dr. Nic Colledge

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] GotoIfTime problem - possible bug

2009-11-23 Thread Tilghman Lesher
On Monday 23 November 2009 12:11:02 pm Nic Colledge wrote:
 I'm currently doing some testing against asterisk 1.6.1.7-rc2 (keep meaning
 to upgrade) and am having a problem with the GotoIfTime dial plan function.
 The asterisk book says that day of week field can include the ampersand ()
 to combine multiple days / day ranges but this gives me an error. For
 example monwed gives the error (in the asterisk console):
 [Nov 23 18:04:27] WARNING[11387]: pbx.c:6249 get_range: Invalid day of week
 'monwed', assuming none

 Does anyone else have experience of this problem? Are there any patches /
 newer versions to get around this?

That was an error on my part, when I helped review the book prior to
publication.  (I was incidentally thinking of the arguments to the CUT() 
function.)  However, given that it was a good idea, it has been implemented
in the forthcoming 1.6.2 release, currently in release candidate status.

-- 
Tilghman

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] GotoIfTime problem - possible bug

2009-11-23 Thread David Backeberg
On Mon, Nov 23, 2009 at 1:11 PM, Nic Colledge n...@njcolledge.net wrote:
 I’m currently doing some testing against asterisk 1.6.1.7-rc2 (keep meaning
 to upgrade) and am having a problem with the GotoIfTime dial plan function.

 The asterisk book says that day of week field can include the ampersand ()
 to combine multiple days / day ranges but this gives me an error.

 For example monwed gives the error (in the asterisk console):

 [Nov 23 18:04:27] WARNING[11387]: pbx.c:6249 get_range: Invalid day of week
 'monwed', assuming none

I use mon-fri all the time, but I've never tried to grab
non-contiguous days before.

Have you tried '|', as in the shift of backslash, or some people say pipe?

I'm not sure I've ever actually seen documentation that says multiple
non-contiguous days is valid syntax.

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] GotoIfTime problem - possible bug

2009-11-23 Thread Nic Colledge
Thanks very much, I'll fire up 1.6.2 and see how I go.

Nic.

-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tilghman Lesher
Sent: 23 November 2009 18:20
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] GotoIfTime problem - possible bug

On Monday 23 November 2009 12:11:02 pm Nic Colledge wrote:
 I'm currently doing some testing against asterisk 1.6.1.7-rc2 (keep meaning
 to upgrade) and am having a problem with the GotoIfTime dial plan function.
 The asterisk book says that day of week field can include the ampersand ()
 to combine multiple days / day ranges but this gives me an error. For
 example monwed gives the error (in the asterisk console):
 [Nov 23 18:04:27] WARNING[11387]: pbx.c:6249 get_range: Invalid day of week
 'monwed', assuming none

 Does anyone else have experience of this problem? Are there any patches /
 newer versions to get around this?

That was an error on my part, when I helped review the book prior to
publication.  (I was incidentally thinking of the arguments to the CUT() 
function.)  However, given that it was a good idea, it has been implemented
in the forthcoming 1.6.2 release, currently in release candidate status.

-- 
Tilghman

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] GoToIfTime problem

2008-04-24 Thread Lee Jenkins

I'm having a problem at a custom site where GotoIfTime doesn't seem to be 
working for some reason.  I had putty running and logging CLI output and below 
is the call data:

-- Executing Answer(Zap/3-1, ) in new stack
-- Executing Ringing(Zap/3-1, ) in new stack
-- Executing Wait(Zap/3-1, 0) in new stack
-- Executing SetMusicOnHold(Zap/3-1, default) in new stack
-- Executing Goto(Zap/3-1, check_time|s|1) in new stack
-- Goto (check_time,s,1)
-- Executing GotoIf(Zap/3-1, 0?set_no_callerid|s|1) in new stack
-- Executing NoOp(Zap/3-1, CallerID: 443866 Cell Phone   MD) in new 
stack
-- Executing GotoIfTime(Zap/3-1, 08:30-17:00|mon-fri|*|*|?daytime_ivr|s|1) 
in new stack
-- Executing Goto(Zap/3-1, after_hours|s|1) in new stack
-- Goto (after_hours,s,1)

This call came in at about 3:10 PM EDT today (Thursday).  I did a date 
command 
at the linux prompt and the date and time of the computer is set correctly.

Now, I have had problem with this particular computer in that the date/time 
gets 
changed somehow, although I'm not sure exactly how.  I've changed it back 
several times using the commands (copied from command line history):

# date -s 23 APR 2008 1:42:00
# hwclock --utc --systohc

I'm still quite the linux noob, so it could be something I'm doing wrong 
although it seems doubtful since everything was working until recently.

Maybe the computer's clock battery is screwed?

Thank you,

-- 

Warm Regards,

Lee


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] GoToIfTime problem

2008-04-24 Thread Michiel van Baak
On 15:43, Thu 24 Apr 08, Lee Jenkins wrote:
 
 I'm having a problem at a custom site where GotoIfTime doesn't seem to be 
 working for some reason.  I had putty running and logging CLI output and 
 below 
 is the call data:
 
 -- Executing Answer(Zap/3-1, ) in new stack
 -- Executing Ringing(Zap/3-1, ) in new stack
 -- Executing Wait(Zap/3-1, 0) in new stack
 -- Executing SetMusicOnHold(Zap/3-1, default) in new stack
 -- Executing Goto(Zap/3-1, check_time|s|1) in new stack
 -- Goto (check_time,s,1)
 -- Executing GotoIf(Zap/3-1, 0?set_no_callerid|s|1) in new stack
 -- Executing NoOp(Zap/3-1, CallerID: 443866 Cell Phone   MD) in new 
 stack
 -- Executing GotoIfTime(Zap/3-1, 
 08:30-17:00|mon-fri|*|*|?daytime_ivr|s|1) 
 in new stack
 -- Executing Goto(Zap/3-1, after_hours|s|1) in new stack
 -- Goto (after_hours,s,1)
 
 This call came in at about 3:10 PM EDT today (Thursday).  I did a date 
 command 
 at the linux prompt and the date and time of the computer is set correctly.
 
 Now, I have had problem with this particular computer in that the date/time 
 gets 
 changed somehow, although I'm not sure exactly how.  I've changed it back 
 several times using the commands (copied from command line history):
 
 # date -s 23 APR 2008 1:42:00
 # hwclock --utc --systohc

Install ntp so it will sync with the internet all the time.
It's the first package I install on servers, no matter if it's brandnew
or not-so-brandnew hardware.
Time IS important for a lot of applications.
-- 

Michiel van Baak
[EMAIL PROTECTED]
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD

Why is it drug addicts and computer aficionados are both called users?


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] GoToIfTime problem

2008-04-24 Thread Lee Jenkins
Lee Jenkins wrote:
 I'm having a problem at a custom site where GotoIfTime doesn't seem to be 
 working for some reason.  I had putty running and logging CLI output and 
 below 
 is the call data:
 
 -- Executing Answer(Zap/3-1, ) in new stack
 -- Executing Ringing(Zap/3-1, ) in new stack
 -- Executing Wait(Zap/3-1, 0) in new stack
 -- Executing SetMusicOnHold(Zap/3-1, default) in new stack
 -- Executing Goto(Zap/3-1, check_time|s|1) in new stack
 -- Goto (check_time,s,1)
 -- Executing GotoIf(Zap/3-1, 0?set_no_callerid|s|1) in new stack
 -- Executing NoOp(Zap/3-1, CallerID: 443866 Cell Phone   MD) in new 
 stack
 -- Executing GotoIfTime(Zap/3-1, 
 08:30-17:00|mon-fri|*|*|?daytime_ivr|s|1) 
 in new stack
 -- Executing Goto(Zap/3-1, after_hours|s|1) in new stack
 -- Goto (after_hours,s,1)
 

Never mind, the problem turned out to be between the back of the chair and the 
keyboard.

Sorry for the false alarm.

-- 

Warm Regards,

Lee

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] GoToIfTime problem

2008-04-24 Thread Doug Lytle
Lee Jenkins wrote:
 -- Executing GotoIfTime(Zap/3-1, 
 08:30-17:00|mon-fri|*|*|?daytime_ivr|s|1) 
   

Too many pipes.  Mine is:

GotoIfTime(00:00-07:50|mon-fri|*|*?auto-paging,s,1)

Doug

-- 
 
Ben Franklin quote:

Those who would give up Essential Liberty to purchase a little Temporary 
Safety, deserve neither Liberty nor Safety.


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users