cingo_5
February 15, 2013, 11:17am
1
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
regards, cingo
david55
February 15, 2013, 12:40pm
2
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.
cingo_5
February 15, 2013, 4:00pm
3
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
david55
February 15, 2013, 5:07pm
4
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.
david55:
t bes
hello
can you find any slusion?
Very simple, Queue allow to run an agi and gosub(), uase the AGI for the caller side. I made this a long time ago
FreePBX queue gosub and agi
/etc/asterisk/globals_custom.conf
QAGI=/var/www/html/sound.php
QGOSUB=subCreateTicket,s,1
/*AGI - Will setup an AGI script to be executed on the calling party's channel once they are connected to a queue member. */
This file has been truncated. show original
I will test it later, thank you very much
ambiorixg12 via Asterisk Community <asterisk@discoursemail.com > 于2021年10月10日周日 上午12:02写道: