Can anybody help me in setting up CDR logging with MYSQL or provide a step by step method on doing so
I have Asterisk Version 1.4.23.1 running on a Eneteprise Linux 5
and if possible please post the config files too !
quick replies will b appreciated because i need a quick solution
Thanks in advance
You only need unixODBC if youâre going to be connecting to your MySQL db through ODBC rather than using the cdr_mysql module.
Anyway, can you start asterisk with âasterisk -cvvvvvâ. You should see a bunch of lines scroll by. Find the bit relating to your cdr and paste it here.
Although this seems like a bit of a waste of the userfield. If youâre going to be showing the CDR on the web using PHP or something youâre better off letting PHP calc the result.
is this context correct ?
will it set the userfield to as i want it to ?
if not please let me know how it will !
thanks for the replies !
This is the CLI Output
== Begin MixMonitor Recording SIP/1111-084782a0
-- Called 2222
-- SIP/2222-08473708 is ringing
-- SIP/2222-08473708 answered SIP/1111-084782a0
-- Executing [s@ani-callback:8] Set("SIP/1111-084782a0", "CDR(userfield)=MATH(0-0") in new stack
the billsec and duration are showing times as 0 . ??[/quote]