Custom Application Recording Problem
Tags: agi, application, asterisk, beep, custom application, exten, hangup, NoOp, recording
I have a compatibilty problem between asterisk 1.4 and 1.6.2 In my 1.4 asterisk I have a custom application that users call and make recordings which recording I save to a file with the caller Id.
Below is the config file which works perfectly in 1.4
exten => 3552,1,Set(TIMEOUT(digit)=2) ; Set Digit Timeout to 5 seconds
exten => 3552,2,Set(TIMEOUT(response)=2) ; Set Response Timeout to 10 seconds
exten => 3552,3,Answer
exten => 3552,4,NoOp(${CALLERID(num)})
exten => 3552,5,Set(number=${CALLERID(num)})
exten => 3552,6,NoOp(${number})
exten => 3552,7,Background(recmsg1) ;"Please say yo message after the beep and end with a hash"
exten => 3552,8,Record(crystalrecords/${number}.gsm)
exten => 3552,9,Playback(crystalrecords/${number})
exten => 3552,10,Background(ackrec) ;"Press 1 to replay or 2 to re-record, 3 to save "
exten => 3552,11,WaitExten(5)
exten => timo,1,1,Goto,timo|3552|9
exten => timo,2,1,Goto(3552,7) ; re-record message
exten => timo,3,1,Goto(4,1)
exten => timo,4,AGI(timorec.php)
exten => i,1,Background(invalidentry)
exten => i,n,Goto(3552,10)
exten => t,1,Playback(thankyoubye)
exten => t,n,Hangup
In my 1.6 version I use the same configuration in extensions_custom.conf but I get the error below. It seems like 1.6 does not recognize the button the user has pressed.