Thomas Winter
2008-Jun-26 20:51 UTC
[asterisk-users] queues and MEMBERINTERFACE for AGI script
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
David Van Ginneken
2008-Jun-27 00:58 UTC
[asterisk-users] queues and MEMBERINTERFACE for AGI script
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
Greetings.. i'm having problems when a queue uses RINGALL stratigy .. so i am thinking of FOLLOWME to do the work .. now my question which is best to use?? i have 5 groups of 10 users each.. I use Asterisk 1.4 regards Tarek _________________________________________________________________ Need to know now? Get instant answers with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_062008 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080627/81556a25/attachment.htm