Ok, Here is the scenario:
We have queues with Agents logges in as for exemple: Local/7003@agent_call
So when a calls comes-in the queue for that agent it goes to the [agent_call]
context which among other things does:
exten =>
call,n,Dial(${mychan},20,M(agent_answered^${agent}^${CHANNEL(language)}^${CALLERID(num)}^${CALLERID(name)}));
{mychan} being the SIP endpoint of the agent. That is fine. In the
agent_answered macro we have:
[macro-agent_answered]
exten => s,1,NoOP(ARG1 = ${ARG1} ARG2 = ${ARG2} ARG3 = ${ARG3} ARG4 =${ARG4});
exten => s,n,Read(ACCEPT1,custom/incoming-support-call-press-one-loop,1)
If the agent hangus up in that Read, the h extension of the [agent_call]
context is executed which hangsup both the agent and the person that was
waiting in the queue...
I would need to trap the agent hangup in the [macro-agent_answered] so that I
can do a Set(MACRO_RESULT=BUSY) so the user would not be hanhup on...
ANy ideas?
---
Andre Courchesne - Consultant
http://www.net-forces.com
MSN: [email protected]
Skype: VoipForces
L'information contenue dans le présent document est la propriété de Andre
Courchesne. Et est divulguée en toute confidentialité. Cette information ne
doit pas être utilisée, divulguée à d'autres personnes ou reproduite sans le
consentement écrit explicite de Andre Courchesne.
The information contained in this document is confidential and property of
Andre Courchesne. It shall not be used, disclosed to others or reproduced
without the express written consent of Andre Courchesne.