[asterisk-users] Custom Application recording problem

Billy Kaye billy.kaye at crystal-int.com
Mon Apr 16 08:36:59 CDT 2012


Greetings All,

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

[timo]
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.

The specific error is

    -- Invalid extension '1' in context 'from-internal' on SIP/440-0000004b

The detailed log is below.

   -- Executing [3552 at from-internal:1] Set("SIP/440-0000004b",
"TIMEOUT(digit)=2") in new stack
    -- Digit timeout set to 2.000
    -- Executing [3552 at from-internal:2] Set("SIP/440-0000004b",
"TIMEOUT(response)=2") in new stack
    -- Response timeout set to 2.000
    -- Executing [3552 at from-internal:3] Answer("SIP/440-0000004b", "") in
new stack
    -- Executing [3552 at from-internal:4] NoOp("SIP/440-0000004b", "440") in
new stack
    -- Executing [3552 at from-internal:5] Set("SIP/440-0000004b",
"number=440") in new stack
    -- Executing [3552 at from-internal:6] NoOp("SIP/440-0000004b", "440") in
new stack
    -- Executing [3552 at from-internal:7] BackGround("SIP/440-0000004b",
"recmsg1") in new stack
    -- <SIP/440-0000004b> Playing 'recmsg1.gsm' (language 'en')
    -- Channel 0/2, span 4 got hangup request, cause 16
  == Spawn extension (ivr-16, s, 12) exited non-zero on 'DAHDI/95-1'
    -- Executing [h at ivr-16:1] Hangup("DAHDI/95-1", "") in new stack
  == Spawn extension (ivr-16, h, 1) exited non-zero on 'DAHDI/95-1'
    -- Hungup 'DAHDI/95-1'
    -- Executing [3552 at from-internal:8] Record("SIP/440-0000004b",
"crystalrecords/440.gsm") in new stack
    -- <SIP/440-0000004b> Playing 'beep.gsm' (language 'en')
    -- Executing [3552 at from-internal:9] Playback("SIP/440-0000004b",
"crystalrecords/440") in new stack
    -- <SIP/440-0000004b> Playing 'crystalrecords/440.gsm' (language 'en')
    -- Executing [3552 at from-internal:10] BackGround("SIP/440-0000004b",
"ackrec") in new stack
    -- <SIP/440-0000004b> Playing 'ackrec.gsm' (language 'en')
    -- Invalid extension '1' in context 'from-internal' on SIP/440-0000004b
  == CDR updated on SIP/440-0000004b
    -- Executing [i at from-internal:1] BackGround("SIP/440-0000004b",
"invalidentry") in new stack
    -- <SIP/440-0000004b> Playing 'invalidentry.slin' (language 'en')
  == Spawn extension (from-internal, i, 1) exited non-zero on
'SIP/440-0000004b'
    -- Executing [h at from-internal:1] Macro("SIP/440-0000004b", "hangupcall")
in new stack
    -- Executing [s at macro-hangupcall:1] GotoIf("SIP/440-0000004b",
"1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s at macro-hangupcall:3] NoOp("SIP/440-0000004b",
"TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s at macro-hangupcall:4] GotoIf("SIP/440-0000004b",
"1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s at macro-hangupcall:6] NoOp("SIP/440-0000004b",
"MONITOR_FILENAME=") in new stack
    -- Executing [s at macro-hangupcall:7] GotoIf("SIP/440-0000004b",
"1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,10)
    -- Executing [s at macro-hangupcall:10] GotoIf("SIP/440-0000004b",
"1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,13)
    -- Executing [s at macro-hangupcall:13] GotoIf("SIP/440-0000004b",
"1?theend") in new stack
    -- Goto (macro-hangupcall,s,15)
    -- Executing [s at macro-hangupcall:15] Hangup("SIP/440-0000004b", "") in
new stack
  == Spawn extension (macro-hangupcall, s, 15) exited non-zero on
'SIP/440-0000004b' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on
'SIP/440-0000004b'
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected


Kind Regards 

Billy 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120416/2113928c/attachment.htm>


More information about the asterisk-users mailing list