[Executing system script before dialing queue member]

General discussions about Asterisk.

Moderators: Moderator, Support

[Executing system script before dialing queue member]

Postby bhaloo » Mon Jun 15, 2015 2:41 am

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.

Regards
Bilal Abbasi
bhaloo
Newsterisk
 
Posts: 23
Joined: Wed Oct 01, 2014 7:19 am

Re: [Executing system script before dialing queue member]

Postby david55 » Mon Jun 15, 2015 3:09 am

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.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am


Return to Asterisk General

Who is online

Users browsing this forum: No registered users and 1 guest