Just create an AGI and add it to the Queue() call:

[sales_queue]
; Sales Queue
exten => queuein,1,Verbose(Entering Sales Queue)
exten => queuein,n,Read(_custid,pls-entr-cust-id,4)
exten => queuein,n,Queue(sales,,,300,connect_script)
exten => queuein,n,Hangup()


In your AGI you should be able to read the custid variable, and I'm pretty sure 
there is also a QUEUEMEMBER variable that's set with the agent extension (not 
sure of the variable name, that's just off the top of my head). 



Thanks,
--Warren Selby, dCAP

On Mar 10, 2011, at 3:37 PM, "Danny Nicholas" <[email protected]> wrote:

> 
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Mike
> Sent: Thursday, March 10, 2011 3:30 PM
> To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
> Subject: [asterisk-users] Asterisk queues : command to run when a call 
> isbeing bridged
>  
> Hi,
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to