Recording Problems in Asterisk

Hi all,

I am kinda new to asterisk, and i need help :frowning:

Right now i am running 3 PSTN lines that are connected to various phone (Extensions), the phones can dial out and recieve calls just fine but recordings don’t seem to work even though i did specified them to be done.

Here is the output of a test call:

Executing [h@macro-dialout-trunk:1] Macro(“Zap/5-1”, “hangupcall|”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“Zap/5-1”, “w”) in new stack
– Executing [s@macro-hangupcall:2] NoCDR(“Zap/5-1”, “”) in new stack
– Executing [s@macro-hangupcall:3] GotoIf(“Zap/5-1”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“Zap/5-1”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] GotoIf(“Zap/5-1”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [s@macro-hangupcall:11] Hangup(“Zap/5-1”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Zap/5-1’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Zap/5-1’
– Hungup ‘Zap/5-1’
– Starting simple switch on ‘Zap/5-1’
– Executing [9XXXXX@from-internal:1] Macro(“Zap/5-1”, “user-callerid|SKIPTTL|”) in new stack
– Executing [s@macro-user-callerid:1] NoOp(“Zap/5-1”, “user-callerid: Channel 5 6005”) in new stack
– Executing [s@macro-user-callerid:2] Set(“Zap/5-1”, “AMPUSER=6005”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“Zap/5-1”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“Zap/5-1”, “1|Set|REALCALLERIDNUM=6005”) in new stack
– Executing [s@macro-user-callerid:5] NoOp(“Zap/5-1”, “REALCALLERIDNUM is 6005”) in new stack
– Executing [s@macro-user-callerid:6] Set(“Zap/5-1”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:7] Set(“Zap/5-1”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“Zap/5-1”, “1?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing [s@macro-user-callerid:13] NoOp(“Zap/5-1”, “TTL: ARG1: SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“Zap/5-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [s@macro-user-callerid:23] NoOp(“Zap/5-1”, “Using CallerID “Channel 5” <6005>”) in new stack
– Executing [9XXXXX@from-internal:2] Set(“Zap/5-1”, “_NODEST=”) in new stack
– Executing [9XXXXX@from-internal:3] Macro(“Zap/5-1”, “record-enable||OUT|”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“Zap/5-1”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“Zap/5-1”, “recordingcheck|20090806-131607|1249535762.4”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20090806-131607|1249535762.4: No AMPUSER db entry for . Not recording
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] NoOp(“Zap/5-1”, “No recording needed”) in new stack

I noticed a particular line:
recordingcheck|20090806-131607|1249535762.4: No AMPUSER db entry for . Not recording

It seems to be a database issue, from what i seen on other forums, it should indicate the particular extension the recording is running on in that line instead
e.g.
recordingcheck|20090806-131607|1249535762.4: No AMPUSER db entry for 104 (The phone’s extension number)

How do i go about setting the extensions for recording?
Where should these settings be made?

Thanks!