<p></p>
<blockquote>
<p>I did look into a more important fix that was required, the next thing I will do is to add testing tools to make sure we can modify and improve things without breaking the existing.</p>
<p>I failed to re-use the exiting dialog module in the past, I will continue with the custom alternate solution for now, this way, we can improve the rest of the code logic it will never be to later to change our mind about using an existing dialog module, this is only one very important building block but the rest of the code can still evolve to do something right.</p>
<p>I will have to look at the on_send call back, I guess this is the purpose of this issue now.</p>
</blockquote>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/jchavanton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jchavanton">@jchavanton</a> My suggestion would be to look into the dialog module if you need dialog state in your module. You really do not want to duplicate all this corner cases in this module etc.. Let me/us know if you need some pointers in getting to used the dialog API.</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/issues/2524#issuecomment-716438001">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNISGRSPRT2Y4O4CXTSMVBLFANCNFSM4S2FXEKQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKIVRHA7XKSEI6OFSLSMVBLFA5CNFSM4S2FXEK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFKZ7T4I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2524#issuecomment-716438001",
"url": "https://github.com/kamailio/kamailio/issues/2524#issuecomment-716438001",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>