This works as expected but it produces a lot of errors relating to CDR.
[2015-02-08 18:34:40] WARNING[28576]: res_odbc.c:666 ast_odbc_prepare_and_execute: SQL Execute error -1! Verifying connection to asterisk-odbc [asterisk-connector]…
[2015-02-08 18:34:40] WARNING[28576]: res_odbc.c:770 ast_odbc_sanity_check: Connection is down attempting to reconnect…
[2015-02-08 18:34:40] NOTICE[28576]: res_odbc.c:1536 odbc_obj_connect: Connecting asterisk-odbc
[2015-02-08 18:34:40] NOTICE[28576]: res_odbc.c:1568 odbc_obj_connect: res_odbc: Connected to asterisk-odbc [asterisk-connector]
[2015-02-08 18:34:40] WARNING[28576]: res_odbc.c:654 ast_odbc_prepare_and_execute: SQL Execute returned an error -1: 23000: [MySQL][ODBC 5.1 Driver][mysqld-5.1.73]Duplicate entry ‘1423420466.5’ for key ‘uniqueid’ (88)
My question is this expected operation because CDR is trying to report three separate calls all with the same details? or does CDR need further development to handle anomaly’s of this kind?
I suspect we only see this for unanswered calls because once answered the other ringing extensions drop off and thus there is no duplication.
Is there a method of ringing multiple extensions which will not generate this level of CDR error?
Alltough the columnname “uniquid” in the cdr table suggests to be UNIQUE this is not the case whenever unaswered calls should be written into the cdr table.
The solution is quite simple: When unanswered calls (e.g. for ringgroups) should be written, the UNIQUE-Constraint for the column UNIQUEID needs to be dropped. Once the column is not defined as UNIQUE, the error will disappear.
Your problem is that it does, although I would note that, at least at one stage, CDRs were deprecated because it was believed there was no way of making them work in non-trivial dialplans.
Yes I got the feeling developers had given up on getting CDR to function as expected and provided CEL for people to build their own billing platforms.
Every other commercial PBX manufacture has managed to achieve a working CDR output although they rely on third party software to log and report on it. Asterisk is having trouble with the output part.
The problem for Asterisk is that it provides a PABX toolkit, and the developers can’t predict all the ways in which it can be put together. Other PABXes have a much more fixed structure.
Since asterisk is openSource and you said is a beasic stuff you always have the chance to edit the codec, submit the new feature or the “basic behavior” and help other to improve the CDR in asterisk.
In the other hand you have CEL to track almost everything.