by nkasoff » Tue Mar 13, 2012 1:15 pm
So, I created this context:
[outboundwith0]
exten => s,1,Answer
exten => s,n,Set(TIMEOUT(digit)=5)
exten => s,n,Set(TIMEOUT(response)=60)
exten => s,n,Background(outboundmsg)
exten => s,n,AGI(VD_amd_post.agi,${EXTEN})
exten => s,n,Background(outboundmsg)
exten => s,n,Hangup
exten => 0,1,Queue(everyone)
exten => 0,n,Hangup
And modified extension 8320:
exten => 8320,1,Goto(outboundwith0,s,1)
It does exactly what I want in terms of allowing people to zero out of the message and transfer to the asterisk queue. Only problem is, vicidial_live_agents.status remains "INCALL" so the remote agent isn't released to take another call. I'm fine with Vicidial considering the call to be over as soon as they press 0 and logging it as such. Or any other way of allowing the autodialer campaign to continue. How can I do that?