by kpanik » Wed Sep 20, 2006 6:16 am
yes matt...
this is a part of my extensions.conf ...
[default]
exten => h,1,DeadAGI(call_log.agi,${EXTEN}) ; DeadAGI is new
exten => h,2,DeadAGI(VD_hangup.agi,PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})
exten => _x.,1,AGI(call_log.agi,${EXTEN})
exten => _x.,2,Dial(${TRUNK}/${EXTEN},20,tTo)
exten => _x.,3,Congestion
exten => 2500,1,AGI(call_log.agi,${EXTEN})
exten => 2500,2,Goto(ivr,s,1)
[ivr]
exten => h,1,DeadAGI(call_log.agi,${EXTEN}) ; DeadAGI is new
exten => h,2,DeadAGI(VD_hangup.agi,PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})
;exten => h,2,DeadAGI(VD_hangup.agi,${EXTEN})
exten => s,1,Wait(1)
exten => s,2,Set(COUNT=1)
exten => s,3,Answer
exten => s,4,Set(TIMEOUT(digit)=5)
exten => s,5,Set(TIMEOUT(response)=7)
exten => s,6,Wait(.5)
exten => s,7,Background(ivrcassinescooter)
exten => 1,1,Goto(default,8365,1)
exten => t,1,GotoIf($[${COUNT} = 3]?exit,1)
exten => t,2,Set(COUNT=$[${COUNT} + 1])
exten => t,3,Goto(s,7)
exten => i,1,GotoIf($[${COUNT} = 5]?exit,1)
exten => i,2,Set(COUNT=$[${COUNT} + 1])
exten => i,3,Goto(s,7)
exten => exit,1,Playback(vm-goodbye)
exten => exit,2,Wait(3)
exten => exit,3,Hangup