[Executing system script before dialing queue member]

Hi all,
I need to execute a system script just before dialing an agent in the queue,
lets suppose i have an agent SIP/1234 registered with my server,
now before dialing agent’s extension SIP/1234 i want to execute a script that will display that call is made to agent on web portal(assume).
One way is to dial some local channel, can some one gave me some more better idea.

Bilal Abbasi

This is not a support forum.

If you have checked the documentation, and there is no suitable option to call a subroutine at this point, you will need to use a local channel as the member and provide the actual member as the state interface.

Normally people would use AMI for such applications, and use the AgentCalled event.