Joseph
2012-May-01 16:15 UTC
[asterisk-users] asterisk go to "holiday" extension but hoiday is not defined
When a call comes in asterisk is forwarding the call to holiday extension, even though the holiday is not defined. Here is my dial plan exten => 4,1,GotoIfTime(*,*,1,jan?holiday,s,1) ; new years day exten => 4,n,GotoIfTime(*,*,6,apr?holiday,s,1) ; easter holiday exten => 4,n,GotoIfTime(*,*,23,may?holiday,s,1) exten => 4,n,GotoIfTime(*,*,1,|jul?holiday,s,1) ; canada day exten => 4,n,GotoIfTime(*,*,1,aug?holiday,s,1) ; long weekend ... Today is May 1, so why is it going to "holiday" extension? Is there another dial plan that holidays are defined? I'm using asterisk 1.8.10 -- Joseph
Syco
2012-May-01 16:20 UTC
[asterisk-users] asterisk go to "holiday" extension but hoiday is not defined
what is the pipe before jul I don't understand the utility of that "|" from the doc. On 01/05/2012 17:15, Joseph wrote:> When a call comes in asterisk is forwarding the call to holiday > extension, even though the holiday is not defined. > > Here is my dial plan > > exten => 4,1,GotoIfTime(*,*,1,jan?holiday,s,1) ; new years day > exten => 4,n,GotoIfTime(*,*,6,apr?holiday,s,1) ; easter holiday > exten => 4,n,GotoIfTime(*,*,23,may?holiday,s,1) > exten => 4,n,GotoIfTime(*,*,1,|jul?holiday,s,1) ; canada day > exten => 4,n,GotoIfTime(*,*,1,aug?holiday,s,1) ; long weekend > ... > > Today is May 1, so why is it going to "holiday" extension? > Is there another dial plan that holidays are defined? I'm using > asterisk 1.8.10 >
Doug Lytle
2012-May-01 16:23 UTC
[asterisk-users] asterisk go to "holiday" extension but hoiday is not defined
>> exten => 4,n,GotoIfTime(*,*,1,|jul?holiday,s,1) ; canada dayI don't use gotoiftime for holiday matching, but the COMMA PIPE stands out on your example. Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."