I try to investigate the bug. Now I see that the DLGCB_LOADED type callback never will be called. In the acc_cdr.c the cdr_on_load() function will be seted as DLGCB_LOADED.
Other thing that I don't understand, in the dialog.c in mod_init() function the run_load_callbacks() will be called, in the dlg_cb.c in run_load_callbacks() function there is an expression if (load_cbs && load_cbs!=POINTER_CLOSED_MARKER) but at this point load_cbs is always 0 because it will be setted later.
In the dlg_cb.c in line 137 there is a mistake: if (load_cbs==POINTER_CLOSED_MARKER) is wrong, if (create_cbs==POINTER_CLOSED_MARKER) is good.

Any idea?


Kordován Szabolcs <koszab@gmail.com> ezt írta (időpont: 2018. júl. 19., Cs, 15:22):

I have a test environment with Kamailio 5.1.4  where I can investigate the bug.
After restart 'kamctl dialog show' command shows the present dialog. After hangup kamailio does an insert into acc table and makes delete from dialog and dialog_vars tables.

Any idea?


Daniel-Constantin Mierla <miconda@gmail.com> ezt írta (időpont: 2017. dec. 4., H, 10:20):


after restart, if you list the dialogs via rpc command, do you see them in what is returned?


On 29.11.17 20:52, Kordován Szabolcs wrote:
Hi All,

In March there was a discus about this issue.

We tested the new 5.2 dev and 5.0.4 version of Kamailio and we experience that If we restart Kamailio during the call the cdr won't be stored in table acc_cdrs but the data will be inserted to table acc and data will be deleted from table dialog and dialog_vars.
Did I omit the fix for it?

Thanks for your help.
Best regards,

Kamailio (SER) - Users Mailing List

Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com