Askozia Forums
May 21, 2012, 07:35:35 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: V 2.1.5 nightswitch / timeconditions unreliable  (Read 755 times)
mikeboss
Jr. Member
**

Karma: 0
Posts: 35


View Profile
« on: January 05, 2012, 05:36:34 pm »

hi everybody

updated customer's PBX from 2.1.4 to 2.1.5 a few days back. system-time and -date are accurate but the nightswitch happens at random. in the morning at 08:00 it's NOT deactivating and then it kicked in at some time in the afternoon  Shocked

any ideas what the culprit might be?

here's the relevant excerpt from the config-backup (which looks OK to me):


<nightswitch>
         <type>time</type>
         <action>playmessage</action>
         <time_1_from>18:00</time_1_from>
         <time_1_to>23:59</time_1_to>
         <time_weekdays_1>1,2,3,4,5</time_weekdays_1>
         <time_2_from>00:01</time_2_from>
         <time_2_to>08:00</time_2_to>
         <time_weekdays_2>1,2,4,5,6</time_weekdays_2>
         <time_3_from>00:01</time_3_from>
         <time_3_to>08:30</time_3_to>
         <time_weekdays_3>3</time_weekdays_3>
         <time_4_from>12:00</time_4_from>
         <time_4_to>14:00</time_4_to>
         <time_weekdays_4>1,2,3,4,5</time_weekdays_4>
         <time_5_from>12:00</time_5_from>
         <time_5_to>23:59</time_5_to>
         <time_weekdays_5>6</time_weekdays_5>
         <time_6_from>00:01</time_6_from>
         <time_6_to>23:59</time_6_to>
         <time_weekdays_6>7</time_weekdays_6>
      </nightswitch>
Logged
Sebastian
Askozia Staff
Hero Member
*

Karma: 25
Posts: 561


View Profile
« Reply #1 on: January 06, 2012, 03:24:28 pm »

Hi Mike,

I just tried your configuration and there seems to be something wrong. I just don't know what it is yet. I'll continue with my search on Monday.

Have a nice weekend  Smiley
Logged
Sebastian
Askozia Staff
Hero Member
*

Karma: 25
Posts: 561


View Profile
« Reply #2 on: January 09, 2012, 09:25:50 am »

Hi Mike,

by fixing another bug we created a new one:
Code:
[ Context 'ISDN-PROVIDER-691570424ef3329c0e1d9-incoming' created by 'pbx_config' ]
  '900989770' =>    1. NoOp(incoming call from provider: ISDN Testanschluss to ${EXTEN}) [pbx_config]
                    2. Set(CDR(UserField)=inbound)                [pbx_config]
                    3. Set(CDR(accountcode)=20933398)             [pbx_config]
                    4. GotoIfTime(18:00-23:59,tue-sat,*,*?nightswitch-application,s,1) [pbx_config]
                    5. GotoIfTime(00:01-08:00,tue-wed,*,*?nightswitch-application,s,1) [pbx_config]
                    6. GotoIfTime(00:01-08:00,fri-sun,*,*?nightswitch-application,s,1) [pbx_config]
                    7. GotoIfTime(00:01-08:30,thu,*,*?nightswitch-application,s,1) [pbx_config]
                    8. GotoIfTime(12:00-14:00,tue-sat,*,*?nightswitch-application,s,1) [pbx_config]
                    9. GotoIfTime(12:00-23:59,sun,*,*?nightswitch-application,s,1) [pbx_config]
                    10. GotoIfTime(00:01-23:59,,*,*?nightswitch-application,s,1) [pbx_config]
                    11. Set(_PICKUPMARK=105)                      [pbx_config]
                    12. Set(LOOP=0)                               [pbx_config]
                    13. Set(CDR(InternalCalleridNum)=105)         [pbx_config]
                    14. Macro(checkcf,105,xxx,to,)          [pbx_config]
                    15. NoOp(SIP/105 has state ${DEVICE_STATE(SIP/105)}) [pbx_config]
                    16. ExecIf($[${DEVICE_STATE(SIP/105)}=BUSY]?Busy(10)) [pbx_config]
                    17. Macro(main,SIP/105,105,xxx,to,)     [pbx_config]

The night switch doesn't act randomly, but shifts all your configuration by one day. For example line 4:
You want it to be active from Monday to Friday (<time_weekdays_1>1,2,3,4,5</time_weekdays_1>), but it is active from "tue-sat".

You can work around this problem by simply shifting your entire configuration one day back.
Of course, we'll fix this as soon as possible.  Embarrassed 
Logged
mikeboss
Jr. Member
**

Karma: 0
Posts: 35


View Profile
« Reply #3 on: January 09, 2012, 02:20:19 pm »

hi sebastian!

thanks for your explanation. i'll leave it up to the customer about what he likes to do for now...


gruesse aus bern,
michael
Logged
mikeboss
Jr. Member
**

Karma: 0
Posts: 35


View Profile
« Reply #4 on: February 23, 2012, 10:57:11 am »

is there a date set for the release of this fix? it's been six weeks.....


thanks in advance.


regards,
michael
Logged
Sebastian
Askozia Staff
Hero Member
*

Karma: 25
Posts: 561


View Profile
« Reply #5 on: February 23, 2012, 02:10:03 pm »

Hi Michael,

2.1.6 will come in March.  Roll Eyes
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.119 seconds with 19 queries.