Playing to caller agent number before answer

Hi to all.

in my call center ( asterisk 1.8 ) i want play, to a caller, the number of the answering Agent.

for example:
the call join to the queue, when an agent is available, the system plays : “is answering operator number 401”, then it ring to Agent/401

thanks for your attention and sorry for my english :confused:
regards, cingo

The queue application cannot run anything on the calling channel, but Dial can, so the only way I can think of doing this is to make the queue member a local channel.

I imagine the callers will realies that this is automated, so probably ignore it, at best.

Thanks for the reply

i’ve tried to use Dial, in this way:

[call-agents]
exten => _.,1,Set(realchan=${DB(Xagent/${EXTEN})})
exten => _.,n,NoOP(“Trying Xagent/${EXTEN} as ${realchan}”)
exten => _.,n,wait(1)
exten => _.,n,Dial(${realchan},60,tT)
exten => h,1,NoOp

where ${realchan} is the real sip extension.
how can I insert a playback to the calling, with Dial cmd?

Thanks

Use the G option to split the control flow when the agent answers. Wait on the agent channel. Use Bridge to rejoin the channels after the announcement.

Edit: correct g to G.