Page 1 of 1

call_log.agi not inserting rows into call_log table

PostPosted: Thu Oct 26, 2006 1:47 am
by bornskinny
I'm not seeing a call_log record created in MySQL DB when making an outbound call like so -

[long-distance]
exten => _1NXXNXXXXXX,1,AGI(call_log.agi,${EXTEN})
exten => _1NXXNXXXXXX,2,dial(SIP/${EXTEN}@out-bv_line_1,${RINGTIMER})
exten => _1NXXNXXXXXX,3,congestion()

I see the following on the * CLI

-- Launched AGI Script /var/lib/asterisk/agi-bin/call_log.agi
-- AGI Script call_log.agi completed, returning 0

If I execute the perl script from the OS I see that a row is inserted into the cdr_log table. Any help troubleshooting would be appreciated.

I am running * 1.2.12.1.

Cheers.

PostPosted: Thu Oct 26, 2006 2:04 am
by bornskinny
I am also seeing the following on the remote console tty9

can't open /var/log/astguiclient/agiout.2006-10-26: Permission denied

The /var/log/astguiclient/ directory is owned by asterisk:asterisk with the following 0666

Cheers.

PostPosted: Thu Oct 26, 2006 11:37 pm
by bornskinny
sorted, needed to change permissions on the PATHlogs directory to 0755.