<p></p>
<p dir="auto">Thanks for the pull-request. I have not followed the complete code path yet, but I am not 100% sure this is the correct way to go.</p>
<p dir="auto">In the existing code we are registering the DLGCB_REQ_WITHIN conditionally for the register_dlgcb(..) call. This will allocate new memory and copy the call back types to the new allocated structure. If you later change the callback types (as in your new code), it will be not synchronized with the structure inside the dialog module, or I am wrong?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/3079#issuecomment-1096105868">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJ37UH2MZHPIINO5ZLVEUFG7ANCNFSM5TDA5NIQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZOYCDLVAFXVOOUR2GTVEUFG7A5CNFSM5TDA5NI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIFKT7DA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/pull/3079/c1096105868</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/3079#issuecomment-1096105868",
"url": "https://github.com/kamailio/kamailio/pull/3079#issuecomment-1096105868",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>