<HTML>
<HEAD>
<TITLE>Custom Application recording problem</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Greetings All,<BR>
<BR>
I have a compatibilty problem between asterisk 1.4 and 1.6.2<BR>
<BR>
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.<BR>
Below is the config file which works perfectly in 1.4<BR>
<BR>
[timo]<BR>
exten => 3552,1,Set(TIMEOUT(digit)=2) ; Set Digit Timeout to 5 seconds<BR>
exten => 3552,2,Set(TIMEOUT(response)=2) ; Set Response Timeout to 10 seconds<BR>
exten => 3552,3,Answer<BR>
exten => 3552,4,NoOp(${CALLERID(num)})<BR>
exten => 3552,5,Set(number=${CALLERID(num)})<BR>
exten => 3552,6,NoOp(${number})<BR>
exten => 3552,7,Background(recmsg1) ;"Please say yo message after the beep and end with a hash" <BR>
exten => 3552,8,Record(crystalrecords/${number}.gsm)<BR>
exten => 3552,9,Playback(crystalrecords/${number})<BR>
exten => 3552,10,Background(ackrec) ;"Press 1 to replay or 2 to re-record, 3 to save "<BR>
exten => 3552,11,WaitExten(5)<BR>
exten => timo,1,1,Goto,timo|3552|9<BR>
exten => timo,2,1,Goto(3552,7) ; re-record message<BR>
exten => timo,3,1,Goto(4,1)<BR>
exten => timo,4,AGI(timorec.php)<BR>
exten => i,1,Background(invalidentry)<BR>
exten => i,n,Goto(3552,10)<BR>
exten => t,1,Playback(thankyoubye)<BR>
exten => t,n,Hangup<BR>
<BR>
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.<BR>
<BR>
The specific error is <BR>
<BR>
-- Invalid extension '1' in context 'from-internal' on SIP/440-0000004b<BR>
<BR>
The detailed log is below.<BR>
<BR>
-- Executing [3552@from-internal:1] Set("SIP/440-0000004b", "TIMEOUT(digit)=2") in new stack<BR>
-- Digit timeout set to 2.000<BR>
-- Executing [3552@from-internal:2] Set("SIP/440-0000004b", "TIMEOUT(response)=2") in new stack<BR>
-- Response timeout set to 2.000<BR>
-- Executing [3552@from-internal:3] Answer("SIP/440-0000004b", "") in new stack<BR>
-- Executing [3552@from-internal:4] NoOp("SIP/440-0000004b", "440") in new stack<BR>
-- Executing [3552@from-internal:5] Set("SIP/440-0000004b", "number=440") in new stack<BR>
-- Executing [3552@from-internal:6] NoOp("SIP/440-0000004b", "440") in new stack<BR>
-- Executing [3552@from-internal:7] BackGround("SIP/440-0000004b", "recmsg1") in new stack<BR>
-- <SIP/440-0000004b> Playing 'recmsg1.gsm' (language 'en')<BR>
-- Channel 0/2, span 4 got hangup request, cause 16<BR>
== Spawn extension (ivr-16, s, 12) exited non-zero on 'DAHDI/95-1'<BR>
-- Executing [h@ivr-16:1] Hangup("DAHDI/95-1", "") in new stack<BR>
== Spawn extension (ivr-16, h, 1) exited non-zero on 'DAHDI/95-1'<BR>
-- Hungup 'DAHDI/95-1'<BR>
-- Executing [3552@from-internal:8] Record("SIP/440-0000004b", "crystalrecords/440.gsm") in new stack<BR>
-- <SIP/440-0000004b> Playing 'beep.gsm' (language 'en')<BR>
-- Executing [3552@from-internal:9] Playback("SIP/440-0000004b", "crystalrecords/440") in new stack<BR>
-- <SIP/440-0000004b> Playing 'crystalrecords/440.gsm' (language 'en')<BR>
-- Executing [3552@from-internal:10] BackGround("SIP/440-0000004b", "ackrec") in new stack<BR>
-- <SIP/440-0000004b> Playing 'ackrec.gsm' (language 'en')<BR>
-- Invalid extension '1' in context 'from-internal' on SIP/440-0000004b<BR>
== CDR updated on SIP/440-0000004b<BR>
-- Executing [i@from-internal:1] BackGround("SIP/440-0000004b", "invalidentry") in new stack<BR>
-- <SIP/440-0000004b> Playing 'invalidentry.slin' (language 'en')<BR>
== Spawn extension (from-internal, i, 1) exited non-zero on 'SIP/440-0000004b'<BR>
-- Executing [h@from-internal:1] Macro("SIP/440-0000004b", "hangupcall") in new stack<BR>
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/440-0000004b", "1?noautomon") in new stack<BR>
-- Goto (macro-hangupcall,s,3)<BR>
-- Executing [s@macro-hangupcall:3] NoOp("SIP/440-0000004b", "TOUCH_MONITOR_OUTPUT=") in new stack<BR>
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/440-0000004b", "1?noautomon2") in new stack<BR>
-- Goto (macro-hangupcall,s,6)<BR>
-- Executing [s@macro-hangupcall:6] NoOp("SIP/440-0000004b", "MONITOR_FILENAME=") in new stack<BR>
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/440-0000004b", "1?skiprg") in new stack<BR>
-- Goto (macro-hangupcall,s,10)<BR>
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/440-0000004b", "1?skipblkvm") in new stack<BR>
-- Goto (macro-hangupcall,s,13)<BR>
-- Executing [s@macro-hangupcall:13] GotoIf("SIP/440-0000004b", "1?theend") in new stack<BR>
-- Goto (macro-hangupcall,s,15)<BR>
-- Executing [s@macro-hangupcall:15] Hangup("SIP/440-0000004b", "") in new stack<BR>
== Spawn extension (macro-hangupcall, s, 15) exited non-zero on 'SIP/440-0000004b' in macro 'hangupcall'<BR>
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/440-0000004b'<BR>
-- Remote UNIX connection<BR>
-- Remote UNIX connection disconnected<BR>
<BR>
<BR>
Kind Regards <BR>
<BR>
Billy <BR>
</SPAN></FONT></FONT>
</BODY>
</HTML>