How to Reject a call from queue to specific agent

How can I reject a call to an agent from the queue if the caller ID matches to database and send it back to the queue. I am using realtime database for queue and queue_member.

Use a local channel for the agent and have the local channel hang up, rather than dialling the actual agent. Make the actual agent the state interface, for the queue member. This will be logged as though the agent actively refused the call.

I did not get this, if you can elaborate a little or showing an example, I am using realtime database for the queue and queue member.

thanks

I’ve never used ARA

Instead of making the queue member be PJSIP/1234, you make it something like Local/1234@ScreenQueueCalls, and make the state interface be PJSIP/1234.

You then define dialplan starting at context ScreenQueueCalls, extension 1234, priority 1, which checks the caller ID, and if acceptable calls Dial for PJSIP/${EXTEN}, and otherwise calls Hangup (possibly with an appropriate cause code). You can check the caller ID by reading the function value and doing explicit checks or using the extension/caller notation to match the combination of extension and caller mall specifically than just the extension, at appropriate priorities.

2 Likes

Yes, its working.

thanks for your help and suppport

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.