Call transfer callback

Hi Guys,

Can you help me with code.

Inbound calls, agent received an inbound call and transfer this call to queue however in some specific situation I want that call should not transfer and agent hear a message stating

you cant make this transfer

What is your actual, specific problem. The question is both too broad in scope and insufficiently detailed to be suitable for a peer support forum.

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,,
exten => _*011,n(Closed),playback(ASrOffhour)
exten => _*011,n(Closed),Hangup()
exten => _*011,n(open),Dial(SIP/*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

I’m pretty sure you can’t do this by normal dialplan means.

Incidentally, there is more than one way of doing a transfer, and the choice may have an impact.

Also, you can only use a dialplan label once in the same extension, so you can’t have two priorities tagged with “closed”.