Dialplan Help

Hi Guys

My freepbx knowledge i quite limited but i have inherited a system which i need to support.

At the moment im having an issue with a dialplan which is playing an after hours message to the client after our agent hangs up their phone.

is someone able to point out why this is happening and how i can correct it.

(open),Set(CALLERID(name)=HEALTH)
Macro(user-callerid,)
Answer
Macro(blkvm-set,reset)
ExecIf($["${REGEX("(M[(]auto-blkvm[)])" ${DIAL_OPTIONS})}" != “1”]?Set(_DIAL_OPTIONS=${DIAL_OPTIONS}M(auto-blkvm)))
Set(__NODEST=${EXTEN})
Macro(prepend-cid,HEALTH)
Set(__MIXMON_FORMAT=gsm)
Gosub(sub-record-check,s,1(q,1081,always))
Set(CHANNEL(musicclass)=HMC)
Set(__MOHCLASS=HMC)
QueueLog(91081,${UNIQUEID},NONE,DID,${FROM_DID})
NoOp(${MEMBERINTERFACE})
Playback(custom/hmc_Welcome_141127)
Queue(91081,ctwhH,)
Playback(custom/hmc_AfterHours_141127)
VoiceMail(1081@default,s)
(afterhours),Playback(custom/hmc_AfterHours_141127)
Answer
Ringing
VoiceMail(1081@default,s)
(Exception),Playback(custom/christmas_message)
VoiceMail(1081@default,s)

Any help is appreciated.

Thanks

It’s possible that you’re using an extension like Virtual Queue Plus which allows calls to be transferred somewhere else (e.g. a survey) after an agent hangs up on them – and that capability is either accidently on, or misconfigured.