[sr-dev] [kamailio/kamailio] dialog: in dlg_onreq function, the result of this check is always false (#1791)

Daniel-Constantin Mierla notifications at github.com
Wed Jan 9 09:10:56 CET 2019


Did you set the `dlg_flag` parameter for dialog module?

  * https://www.kamailio.org/docs/modules/stable/modules/dialog.html#dialog.p.flag

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;
``

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1791#issuecomment-452607617
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190109/80977dbc/attachment.html>


More information about the sr-dev mailing list