Hi David,Sorry for confusion.
let me explain the actual scenario my Agent A receive incoming call and transfer that call below is the code
exten => _011,1,Answer()
exten => _011,n,GotoIfTime(10:00-18:59,,,*?open)
exten => _*011,n(Closed),playback(ASrOffhour)
exten => _*011,n(Closed),Hangup()
exten => _*011,n(open),Dial(SIP/10.0.48.23/*011)
what i want here if time time is > 7 PM then Agent A should here a message that you call cant be transfer and that customer get routed back to same agent. but in current scenario customer is listening that message and call gets disconnect after that