Jerry Geis
2007-Aug-17 16:09 UTC
[asterisk-users] analog lines running agi on hangup question
I have the following dialplan. Everything seems good except for one thing. If the background message is playing and the user hangs up and does not press a digit how do I run an agi on that event. I tried an exten => h,1,agi(smvoice,-digium_failed) but that was never called. I am using 1.4.10 thanks, Jerry --------------------------- [smvoice-analog] exten => s,1,Wait(1) exten => s,2,Set(TIMEOUT(absolute)=30) exten => s,3,Background(SM_PRESS_ONE_TO_HEAR_MESSAGE) exten => s,4,Goto(s,3) ; Accept any digit to continue (turn off the timer) exten => _X,1,Set(TIMEOUT(absolute)=0) exten => _X,2,agi(smvoice,-digium_asterisk) exten => i,1,agi(smvoice,-digium_failed) exten => t,1,agi(smvoice,-digium_failed) exten => T,1,agi(smvoice,-digium_failed) exten => failed,1,agi(smvoice,-digium_failed)