|
@@ -758,8 +758,10 @@ void dlg_onreq(struct cell* t, int type, struct tmcb_params *param)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (dlg==NULL) {
|
|
if (dlg==NULL) {
|
|
- if((req->flags&dlg_flag_mask)!=dlg_flag_mask)
|
|
|
|
|
|
+ if((dlg_flag_mask==0) || (req->flags&dlg_flag_mask)!=dlg_flag_mask) {
|
|
|
|
+ LM_DBG("flag not set for creating a new dialog\n");
|
|
return;
|
|
return;
|
|
|
|
+ }
|
|
LM_DBG("dialog creation on config flag\n");
|
|
LM_DBG("dialog creation on config flag\n");
|
|
dlg_new_dialog(req, t, 1);
|
|
dlg_new_dialog(req, t, 1);
|
|
dlg = dlg_get_ctx_dialog();
|
|
dlg = dlg_get_ctx_dialog();
|