Did you set the `dlg_flag` parameter for dialog module?
* https://www.kamailio.org/docs/modules/stable/modules/dialog.html#dialog.p.fl...
If yes, that is not required if you use `dlg_manage()`. If you set the modparam, then you have to do setflag(X) where X is the value for dlg_flag modparam.
Otherwise, if I didn't miss something, the condition there should to be ok to execute the code - dlg_flag_mask is 0 by default (with no dlg_flag set) and the expression evaluates to if(0!=0) return:
``` if((req->flags&dlg_flag_mask)!=dlg_flag_mask) return; ``