Help winth AgentCallbackLogin

Hello, I have a problem. I have read the documentacion about AgentCallBackLogin, but I have a problem. I need limit the SIP peers which can become CALLERIDNUM. My problem is that if an agent introduce an CALLERIDNUM what doesn’t exist ,I want that Asterisk throw an error.

AgentCallbackLogin was deprecated in version 1.4. That means you shouldn’t have used it for new designs since the release of 1.4. The current version is 1.6.

The approved method of getting the equivalent function is to use a local channel.