<p><a href="https://github.com/ovidiusas" class="user-mention">@ovidiusas</a> 'ul show' displays all the contacts that are registered for that AOR. When the E_UL_AOR_DELETE is triggered, there is no other contact available. When the E_UL_AOR_INSERT only one contacts (or more if the REGISTER contains multiple contacts) is available. But we can't provide all the information shown in 'ul show'.<br>
We think we should have a different approach: basically we can trigger a different event, like E_UL_CONTACT_INSERT that will be triggered each time a device registers and E_UL_CONTACT_DELETE when a contact is deleted. Basically the flow would be something like this:</p>

<pre><code>E_UL_AOR_INSERT (user@domain)
E_UL_CONTACT_INSERT (user@domain, contact1)
E_UL_CONTACT_INSERT (user@domain, contact2)
E_UL_CONTACT_DELETE (user@domain, contact1)
E_UL_CONTACT_DELETE (user@domain, contact2)
E_UL_AOR_DELETE (user@domain)
</code></pre>

<p>What do you say? Does this satisfy your needs?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/250#issuecomment-50894930">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMjUyNDcyNywiZGF0YSI6eyJpZCI6MzQ5NTc0OTB9fQ==--7459af2de4381a1cd397e2940796a6bca4731f43.gif" width="1" /></p>