command to run when a call isbeing bridged

Home » Asterisk Users » command to run when a call isbeing bridged
Asterisk Users 1 Comment

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,

One thought on - command to run when a call isbeing bridged

  • Thank you, just what I needed to know!

    Mike

    [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Warren Selby
    Sent: Thursday, March 10, 2011 5:38 PM
    isbeing bridged

    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).

    Just had a look, and I think the variable is actually MEMBERINTERFACE. You
    will probably have to set “setinterfacevar=yes” in the specific queue
    definition.