[asterisk-users] queues and MEMBERINTERFACE for AGI script

David Van Ginneken davevg at gmail.com
Thu Jun 26 19:58:43 CDT 2008


Thomas Winter wrote:
> Hi,
> iam using and queue and starting an AGI script after caller connected to 
> agent.
> How to find out in the script the connected agent, MEMBERINTERFACE seemed to 
> be not work, either as variable in the queue command and also not in the AGI 
> script.
> How to found out which agent is connected to calling channel?
>
> I try to avoid to using LOCAL channels, because I like the function ringinuse.
>
> regards
> Thomas
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>   
Thomas,

In queues.conf you need to set the variable setinterfacevar=yes

You'd then pass the AGI to the Queue application with something like this:

exten => some_extension,n,Queue(somequeue,,,,,some.agi)

Then within the AGI you'd retrieve the variable like this:

my $memberinterface = $AGI->get_variable('MEMBERINTERFACE'); # Perl example.

Hope this helps.

-Dave




More information about the asterisk-users mailing list