[sr-dev] [kamailio/kamailio] Fix for no cdr after Kamailio 5.0 restart (#1036)

Lucian Balaceanu notifications at github.com
Thu Mar 16 15:35:09 CET 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170316/3dee8a0e/attachment-0001.html>


More information about the sr-dev mailing list