Summary:ASTERISK-00237: CDR not logging..
Reporter:wipeout (wipeout)Labels:
Date Opened:2003-09-09 08:46:47Date Closed:2011-06-07 14:10:20
Versions:Frequency of
Description:CDR not logging calls into Master.csv file that are made with call files that are dropped into /outgoing directory..


Maybe because I am using chan_capi but manually dialed calls are logged with no problems..

Version : CVS-08/18/03-13:20:54
Comments:By: gavin (gavin) 2003-09-11 13:08:10

Mine are working fine with TE410P.  Asterisk CVS-09/07/03-14:10:54

By: John Todd (jtodd) 2003-09-11 14:47:15

I can further confirm that calls between two SIP endpoints to NOT show up in master.csv if the call is created by "cp /tmp/sample.call /var/spool/asterisk/outgoing" with Asterisk CVS-09/11/03-18:06:43

By: mkg (mkg) 2003-09-12 00:58:51

Yes, I am giving some test case to regenerate the problem
The case is when i making an outgoing call using outgoing folder.

I wrote the following info to sample.call
Channel:  Oh323/XXXXXXX
Maxretries: 1
WaitTime: 30
Contex: incoming
Extension: 1
Priority: 1

In Extension.conf i have

In agi-test.agi
i have used php to dial another number on zap channel using
"Exec Dial Zap/1/xxxxxxx"

The call goes fine but it didn't generate any info in the cdr_csv.
I have tried the same scenerion using ZAP,Oh323 as well as IAX channel.
But the result is same

By: John Todd (jtodd) 2003-09-28 01:52:31

Another duplicate of this bug was opened as http://bugs.digium.com/bug_view_page.php?bug_id=0000326

By: gus (gus) 2003-09-28 10:18:12

I think that 240 and 326 are different problems (I repeat: "I think")
This bug report 240 is related to "CDR not logging..", but 326 bug report is related to data misunderstanding in the table. Anyway, if you like to have the 326 data as part of 240, please let me know.

By: gus (gus) 2003-09-28 10:29:21

I'm moving asap 326 to 240.

By: wipeout (wipeout) 2003-10-14 12:00:25

After lots of playing I have worked out that the CDR does not log calls that use Application/Data as the desitination in the call file..

If Context/Extension/Priority are used for the destination then it does log to the CDR..

Also make sure to set the CallerID in the call file to your required source, typicaly this will be the extension of the person initiating the call, Otherwise the source field will be blank..

By: Brian West (bkw918) 2003-11-22 16:12:22.000-0600

Any idea how to fix this?  Or is this still an issue?

By: wipeout (wipeout) 2003-11-23 03:44:50.000-0600

I don't know about a fix, but a workaround is to use Context/Extension/Priority in the call file instead of Application/Data.. If Application/Data is used then it seems to bypass the process that tracks the call.. When using Context/Extension/Priority you are really using a Goto type function which just puts the call into the correct part of the dialplan and to it is the same as if the caller had dialed the call manually and so the call is logged..

I am sure Mark and others have more important things to fix than this so I would say that the solution is to have a best practice of using Context/Extension/Priority..

By: Brian West (bkw918) 2003-12-06 12:01:06.000-0600

It has been pointed out how to make calls be logged.  If someone thinks this is still something needing fixed please msg me on irc (bkw_)