<p>You are right, sorry for the noise. But I have some doubts.</p>
<p>You said that dlg_flag parameter is not required but if I don't set the dlg_flag, kamailio gives me an error when load dialog module:</p>
<pre><code>Jan  9 10:53:08 pepelux /usr/local/sbin/kamailio[27387]: ERROR: dialog [dialog.c:519]: mod_init(): invalid dlg flag -1!!
Jan  9 10:53:08 pepelux /usr/local/sbin/kamailio[27387]: ERROR: <core> [core/sr_module.c:911]: init_mod(): Error while initializing module dialog (/usr/local/lib64/kamailio/modules/dialog.so)
</code></pre>
<p>It worked for me as follow:</p>
<pre><code>#!define DLG_FLAG 3
modparam("dialog", "dlg_flag", DLG_FLAG)
route(CNXCC);
dlg_manage();
</code></pre>
<p>My problem was that I called route(CNXCC) after dlg_manage() and it seems that it is necessary to execute cnxcc functions before the dlg_manage().</p>
<p>Thanks for the help</p>

<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-452652477">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZSMttWiNytuMnWJcArKt84x7OeUaks5vBcf6gaJpZM4ZzzRe">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZWTnykGhiA95kjneHkODGxA2rqKmks5vBcf6gaJpZM4ZzzRe.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":"@Pepelux in #1791: You are right, sorry for the noise. But I have some doubts.\r\n\r\nYou said that dlg_flag parameter is not required but if I don't set the dlg_flag, kamailio gives me an error when load dialog module:\r\n```\r\nJan  9 10:53:08 pepelux /usr/local/sbin/kamailio[27387]: ERROR: dialog [dialog.c:519]: mod_init(): invalid dlg flag -1!!\r\nJan  9 10:53:08 pepelux /usr/local/sbin/kamailio[27387]: ERROR: \u003ccore\u003e [core/sr_module.c:911]: init_mod(): Error while initializing module dialog (/usr/local/lib64/kamailio/modules/dialog.so)\r\n```\r\n\r\nIt worked for me as follow:\r\n```\r\n#!define DLG_FLAG 3\r\nmodparam(\"dialog\", \"dlg_flag\", DLG_FLAG)\r\nroute(CNXCC);\r\ndlg_manage();\r\n```\r\n\r\nMy problem was that I called route(CNXCC) after dlg_manage() and it seems that it is necessary to execute cnxcc functions before the dlg_manage().\r\n\r\nThanks for the help"}],"action":{"name":"View Pull Request","url":"https://github.com/kamailio/kamailio/pull/1791#issuecomment-452652477"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/1791#issuecomment-452652477",
"url": "https://github.com/kamailio/kamailio/pull/1791#issuecomment-452652477",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>