henningw left a comment (kamailio/kamailio#4189)
The dmq_handle_message is an older function, which works differently as the dmq_process_messages. Maybe there is some incompatibility in the way the dmq_process_message works that don't work with the dialog module. Just use dmq_handle_message then, of course you can also investigate by yourself futher, if nobody picks up an issue.