Calls are not going to after hour dialplan

I have one number and I want to setup after hour support

I have configured these below settings.

extensions.conf

exten => 2000,1,GotoIf($["${CALLERID(number)}" != “3105904500”]?2:90)
exten => 2000,2,GotoIfTime(,mon-fri,4,jul?Autoattendant-After,s,1) ;Normal Independence Day
exten => 2000,3,GotoIfTime(
,fri,2-3,jul?Autoattendant-After,s,1) ;Weekend Independence Day
exten => 2000,4,GotoIfTime(,mon-fri,25,dec?Autoattendant-After,s,1) ;Normal Christmas (Day)
exten => 2000,5,GotoIfTime(13:00-23:59,mon-thu,24,dec?Autoattendant-After,s,1) ;Normal Christmas (Eve) Half Day
exten => 2000,6,GotoIfTime(
,fri,23-24,dec?Autoattendant-After,s,1) ;Weekend Christmas (Day)
exten => 2000,7,GotoIfTime(13:00-23:59,thu-fri,22,dec?Autoattendant-After,s,1) ;Weekend Christmas (Eve) Part 1
exten => 2000,8,GotoIfTime(13:00-23:59,thu,23,dec?Autoattendant-After,s,1) ;Weekend Christmas (Eve) Part 2
exten => 2000,9,GotoIfTime(,mon-fri,1,jan?Autoattendant-After,s,1) ;Normal New Years (Day)
exten => 2000,10,GotoIfTime(13:00-23:59,mon-fri,31,dec?Autoattendant-After,s,1) ;Normal New Years (Eve) Half Day
exten => 2000,11,GotoIfTime(
,mon,2-3,jan?Autoattendant-After,s,1) ;Weekend New Years (Day)
exten => 2000,12,GotoIfTime(13:00-23:59,fri,30-31,dec?Autoattendant-After,s,1) ;Weekend New Years (Eve)
exten => 2000,13,GotoIfTime(,mon,1-7,sep?Autoattendant-After,s,1) ;Labor Day
exten => 2000,14,GotoIfTime(
,mon,25-31,may?Autoattendant,After,s,1) ;Memorial Day
exten => 2000,15,GotoIfTime(,thu-fri,22-29,nov?Autoattendant,After,s,1) ;Thanksgiving Thu&Fri
exten => 2000,16,GotoIfTime(0:00-5:59,mon-fri,
,?Autoattendant-After,s,1)
exten => 2000,17,GotoIfTime(6:00-17:59,mon-fri,
,?Autoattendant,s,1)
exten => 2000,18,GotoIfTime(18:00-23:59,mon-fri,
,?Autoattendant-After,s,1)
exten => 2000,19,GotoIfTime(
,sat-fri,,?Autoattendant-After,s,1)
exten => 2000,90,Hangup()
exten => 2000,1,macro(Call-Intelisys)
exten => 2000,1,macro(Call-Intelisys)
exten => 2000,1,macro(Call-Intelisys)

exten_autoattendant.conf

[macro-Call-Intelisys]
exten => s,1,Answer()
exten => s,2,background(intelisys)
exten => s,3,Dial(SIP/1075&SIP/9177&SIP/2049&SIP/9172&SIP/2045&SIP/2024&SIP/1076&SIP/2059&SIP/1092&SIP/1093&SIP/1065,24,i)
exten => s,4,macro(Voicemail,20000,${DIALSTATUS})

if I call after hour it is still going through regular dial plan it is not following after hour dialplan can anybody help?

exten => 2000,1,GotoIf($["${CALLERID(number)}" != “3105904500”]?2:90)

if probably being overwritten by:
exten => 2000,1,macro(Call-Intelisys)
then:
exten => 2000,1,macro(Call-Intelisys)
then:
exten => 2000,1,macro(Call-Intelisys)

Do a ‘dialplan show’ from the CLI, and I’d bet that the first line is not listed there. You can’t have the same extension,priority combo in the same context. When you reload the dialplan, it will overwrite that extension,priority (2000 , 1).

Sorry for the confusion I did not put the complete config.

Actually I have more than 1 context

[Main-Portal]

contains after hour config

callerid and holiday after hour

;Main Autoattendant
;Begin Holiday Routing
exten => 2000,1,GotoIf($["${CALLERID(number)}" != “3105904500”]?2:90)
exten => 2000,2,GotoIfTime(,mon-fri,4,jul?Autoattendant-After,s,1) ;Normal Independence Day
exten => 2000,3,GotoIfTime(
,fri,2-3,jul?Autoattendant-After,s,1) ;Weekend Independence Day
exten => 2000,4,GotoIfTime(,mon-fri,25,dec?Autoattendant-After,s,1) ;Normal Christmas (Day)
exten => 2000,5,GotoIfTime(13:00-23:59,mon-thu,24,dec?Autoattendant-After,s,1) ;Normal Christmas (Eve) Half Day
exten => 2000,6,GotoIfTime(
,fri,23-24,dec?Autoattendant-After,s,1) ;Weekend Christmas (Day)
exten => 2000,7,GotoIfTime(13:00-23:59,thu-fri,22,dec?Autoattendant-After,s,1) ;Weekend Christmas (Eve) Part 1
exten => 2000,8,GotoIfTime(13:00-23:59,thu,23,dec?Autoattendant-After,s,1) ;Weekend Christmas (Eve) Part 2
exten => 2000,9,GotoIfTime(,mon-fri,1,jan?Autoattendant-After,s,1) ;Normal New Years (Day)
exten => 2000,10,GotoIfTime(13:00-23:59,mon-fri,31,dec?Autoattendant-After,s,1) ;Normal New Years (Eve) Half Day
exten => 2000,11,GotoIfTime(
,mon,2-3,jan?Autoattendant-After,s,1) ;Weekend New Years (Day)
exten => 2000,12,GotoIfTime(13:00-23:59,fri,30-31,dec?Autoattendant-After,s,1) ;Weekend New Years (Eve)
exten => 2000,13,GotoIfTime(,mon,1-7,sep?Autoattendant-After,s,1) ;Labor Day
exten => 2000,14,GotoIfTime(
,mon,25-31,may?Autoattendant,After,s,1) ;Memorial Day
exten => 2000,15,GotoIfTime(,thu-fri,22-29,nov?Autoattendant,After,s,1) ;Thanksgiving Thu&Fri
;End Holiday Routing
;Begin Normal Routing
exten => 2000,16,GotoIfTime(0:00-5:59,mon-fri,
,?Autoattendant-After,s,1)
exten => 2000,17,GotoIfTime(6:00-17:59,mon-fri,
,?Autoattendant,s,1)
exten => 2000,18,GotoIfTime(18:00-23:59,mon-fri,
,?Autoattendant-After,s,1)
exten => 2000,19,GotoIfTime(
,sat-fri,,?Autoattendant-After,s,1)
exten => 2000,90,Hangup()
;End Normal Routing

[default]

include => main-portal

exten => 2000,1,macro(Call-Intelisys)

[XXXX-Outdial]
#include “exten_greeting.conf”
#include "exten_autoattendant.conf"
include => overrides
include => conferences
include => main-portal
include => voicemail-check

exten => 2000,1,macro(Call-Intelisys)

;SWITCHCO
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exten => 2000,1,macro(Call-Intelisys)

So after hour and regular are in separate context but still it is following regular line. any ideas? let me know if you need any other details. I can not thank enough for your reply.

sada-hq-voip1CLI> dialplan show main-portal
[ Context ‘main-portal’ created by ‘pbx_config’ ]
‘2000’ => 1. GotoIf($["${CALLERID(number)}" != “3105904500”]?2:90) [pbx_config]
2. GotoIfTime(
,mon-fri,4,jul?Autoattendant-After,s,1) [pbx_config]
3. GotoIfTime(,fri,2-3,jul?Autoattendant-After,s,1) [pbx_config]
4. GotoIfTime(
,mon-fri,25,dec?Autoattendant-After,s,1) [pbx_config]
5. GotoIfTime(13:00-23:59,mon-thu,24,dec?Autoattendant-After,s,1) [pbx_config]
6. GotoIfTime(,fri,23-24,dec?Autoattendant-After,s,1) [pbx_config]
7. GotoIfTime(13:00-23:59,thu-fri,22,dec?Autoattendant-After,s,1) [pbx_config]
8. GotoIfTime(13:00-23:59,thu,23,dec?Autoattendant-After,s,1) [pbx_config]
9. GotoIfTime(
,mon-fri,1,jan?Autoattendant-After,s,1) [pbx_config]
10. GotoIfTime(13:00-23:59,mon-fri,31,dec?Autoattendant-After,s,1) [pbx_config]
11. GotoIfTime(,mon,2-3,jan?Autoattendant-After,s,1) [pbx_config]
12. GotoIfTime(13:00-23:59,fri,30-31,dec?Autoattendant-After,s,1) [pbx_config]
13. GotoIfTime(
,mon,1-7,sep?Autoattendant-After,s,1) [pbx_config]
14. GotoIfTime(,mon,25-31,may?Autoattendant,After,s,1) [pbx_config]
15. GotoIfTime(
,thu-fri,22-29,nov?Autoattendant,After,s,1) [pbx_config]
16. GotoIfTime(0:00-5:59,mon-fri,,?Autoattendant-After,s,1) [pbx_config]
17. GotoIfTime(6:00-17:59,mon-fri,,?Autoattendant,s,1) [pbx_config]
18. GotoIfTime(18:00-23:59,mon-fri,,?Autoattendant-After,s,1) [pbx_config]
19. GotoIfTime(,sat-fri,,*?Autoattendant-After,s,1) [pbx_config]
90. Hangup() [pbx_config]

sada-hq-voip1*CLI> dialplan show macro-Call-Intelisys
[ Context ‘macro-Call-Intelisys’ created by ‘pbx_config’ ]
‘s’ => 1. Answer() [pbx_config]
2. background(intelisys) [pbx_config]
3. Dial(SIP/1075&SIP/9177&SIP/2049&SIP/9172&SIP/2045&SIP/2024&SIP/1076&SIP/2059&SIP/1092&SIP/1093&SIP/1065,24,i) [pbx_config]
4. macro(Voicemail,20000,${DIALSTATUS}) [pbx_config]

-= 1 extension (4 priorities) in 1 context. =-

These dialplan show both context.

Main-portal context is in extensions.conf file and macro-Call-Intelisys context is in exten_autoattendant.conf file. is it that can be a problem?