In mod_init, pua_dialoginfo registers a dialog callback for newly created dialogs. When this callback runs, it registers another callback for this newly created dialog, w/ the interesting dialog event types. modparam `publish_dialog_req_within` is checked whether DLGCB_REQ_WITHIN should be included. IMHO this check can be moved to mod_init, since event types aren't going to change.
Sorry for missing that out in the PR description.