Are CDRs created for virtual extensions


#1

I have a virtual extension but don’t see any CDR records for incoming calls


(David55) #2

Are the calls being answered?


#3

The obvious problem but if not answered, why is there no CDR?


(David55) #4

Because the default option for CDRs is to not log unanswered calls.

In raw asterisk terms, see

I don’t know if there is a GUI equivalent, as I’m only answering questions here that appear to relate to the underlying Asterisk system.


#5

Where is that file?


(David55) #6

It will be maintained by FreePBX, so you probably can’t edit it directly, but it would normally be /etc/asterisk/cdr.conf

However, this seems to suggest that FreePBX simply creates an empty one, if it doesn’t already exist:


#7

No such file exists. Not sure where to go from here


(David55) #8

Two possibilities:

  1. The files aren’t in default Asterisk configuration directory (the same as the other .conf files).

  2. It proved unnecessary to create an empty one. (Create it.)

However, both of these relate to FreePBX, rather than raw Asterisk.


#9

I have access to asterisk from the shell This file does not exist. I grepped the string “unanswered = no” and found no file containing that string.

Any freePBX experts that have some suggestions? Can I just copy this file and call it /etc/asterisk/cdr.conf?


#10

That file can be used to by asterisk to define text file based cdr logs, FreePBX no longer generates cdr csv files prefering odbc (Mysql) logs,

rasterisk -x 'cdr show status'

will show you the backends you are currently using
The currently distributed raw file defining cdr odbc reporting is


#11

Call Detail Record (CDR) settings

Logging: Enabled
Mode: Simple
Log unanswered calls: No
Log congestion: No

  • Registered Backends

    Adaptive ODBC

#12

So how do I modify it to Log unanswered calls?


#13

create the cdr.conf file with any non default settings or use an edited template and module load cdr_csv.so then run the cdr show status again and if you enabled csv and it shows it as a registered ‘backend’ then the logs in /var/log/aserisk/cdr-csv/ will start to be populted.


#14

Default is /var/log/asterisk/cdr-csv/


#15

hehe, it certainly is.

Corrected


#16

Why would I want to changed to csv and not mySQL?


#17

You are not changing from anything, you can have many backends active, I can’t say whether changing that behavior affects all the backends, that will be for you to find out. It certainly affect the Master.csv file.


#18

The Adaptive ODBC backend says unanswered calls are not logged I was hoping there was a way to modify that through the GUI


#19

I am surprised there is no place in advanced settings to do this.


(Itzik) #20

File a feature request: issues.freepbx.org