2
« on: September 25, 2014, 21:16:21 »
I noticed on the reports when a call has w/pre greater than 1 my wombat is able to grab the response but when the w/pre is equal wombat does not record the answer.
I am not sure where I can force wombat to add a wait time before placing other calls.
This is what my dialplan looks like:
[drstrangelove]
exten => s,1,Answer
exten => s,n,Set(TIMEOUT(response)=5)
exten => s,n,UserEvent(CALLSTATUS,Uniqueid:${UNIQUEID},V:0)
exten => s,n(start),agi(googletts.agi,"Your appointment with doctor Frankstein is for tomorrow at ${HH} ${MM}")
exten => s,n(confirm),agi(googletts.agi,"Press 1 to confirm the appointment")
exten => s,n,agi(googletts.agi,"or 2 to cancel it.")
exten => s,n,Read(conf,,1)
exten => s,n,GotoIf($["${conf}" = "1"]?ok)
exten => s,n,GotoIf($["${conf}" = "2"]?ko)
exten => s,n,Goto(confirm)
exten => s,n(ok),UserEvent(CALLSTATUS,Uniqueid:${UNIQUEID},V:1)
exten => s,n,wait(5)
exten => s,n,agi(googletts.agi,"The appointment was confirmed. See you tomorrow.")
exten => s,n,Hangup
exten => s,n(ko),UserEvent(CALLSTATUS,Uniqueid:${UNIQUEID},V:2)
exten => s,n,wait(5)
exten => s,n,agi(googletts.agi,"Boo the appointment was cancelled.")
exten => s,n,Hangup
Thank you in advance for any input.