Hi Mike,
by fixing another bug we created a new one:
[ 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.