<p>Did you set the <code>dlg_flag</code> parameter for dialog module?</p>
<ul>
<li><a href="https://www.kamailio.org/docs/modules/stable/modules/dialog.html#dialog.p.flag" rel="nofollow">https://www.kamailio.org/docs/modules/stable/modules/dialog.html#dialog.p.flag</a></li>
</ul>
<p>If yes, that is not required if you use <code>dlg_manage()</code>. If you set the modparam, then you have to do setflag(X) where X is the value for dlg_flag modparam.</p>
<p>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:</p>
<pre><code>if((req->flags&dlg_flag_mask)!=dlg_flag_mask) return;
``
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/1791#issuecomment-452607617">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZRKFa-6BUN836c-cai_hr2FOzH8Gks5vBaQQgaJpZM4ZzzRe">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZaonG7pDf3BIzPx6CrTAD76GQI9oks5vBaQQgaJpZM4ZzzRe.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1791: Did you set the `dlg_flag` parameter for dialog module?\r\n\r\n  * https://www.kamailio.org/docs/modules/stable/modules/dialog.html#dialog.p.flag\r\n\r\nIf 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.\r\n\r\nOtherwise, 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:\r\n\r\n```\r\nif((req-\u003eflags\u0026dlg_flag_mask)!=dlg_flag_mask) return;\r\n``"}],"action":{"name":"View Pull Request","url":"https://github.com/kamailio/kamailio/pull/1791#issuecomment-452607617"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/1791#issuecomment-452607617",
"url": "https://github.com/kamailio/kamailio/pull/1791#issuecomment-452607617",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>