Hi Daniel,

This is a sketch of how I would force the execution of the acc/cdr dialog 
callbacks for dialogues created from the database. This solution needs more 
testing and I don't expect it to be accepted as is.

I think that the run_create_callbacks was omitted because at a later step, the 
callbacks would need to access the initial request (params->req) that 
originated the dialog. Looking in the generated CDRs one can also spot that 
certain values are left blank most probably because of the params->req message 
is missing.

How would you solve this problem? Is there a way to populate/ mock the request 
with values inside the dialog_vars table? Would you add all variables of 
interest inside that table or inside the dialog table? 

Thank you,
Lucian
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1036

-- Commit Summary --

  * Fix for no cdr after Kamailio 5.0 restart

-- File Changes --

    M src/modules/acc/acc_cdr.c (8)
    M src/modules/dialog/dlg_db_handler.c (11)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/1036.patch
https://github.com/kamailio/kamailio/pull/1036.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1036
_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to