Hi,<div><br></div><div>We have an asterisk box with Digium 4xE1 card running libss7.  All is well, except for a CDR issue about incoming calls whose DNID (local numbers) are not valid.</div><div><br></div><div>In the dialplan, we do a check if the incoming call has a particular prefix.  If it does not, then we hangup the call with 403 or 404, as applicable.  For these calls, no &quot;lastdata&quot; is recorded.  What we understand is, this is perhaps the desired behaviour, as the &quot;lastapp&quot; was &quot;Hangup&quot; and not &quot;Dial&quot;.</div>

<div><br></div><div>What would be the strategy to correctly store the incoming number for these calls?</div><div><br></div><div>Regards</div><div>HASSAN</div><div><br></div>