Maybe DLGCB_LOADED callback can be used for this situation -- I guess it is no need populate again the variables in the dlg structure as they were already done when the dialog was effectively created.
If you create a new solution, make a commit per module and prefix the first log message with the module name:
* https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md#com...