I don't know if this works for you, but I use the following mechanism. I don't use the agent call back stuff, just the (Add|Remove)QueueMember stuff.<br><br>For each queue, dialing the extension (XXXX), puts the caller into the queue (ie, a customer calling for reservations). I use **XXXX to sign a phone into the queue and *XXXX to sign out of a queue. 
<br><br>You can use the manager to see who is currently logged into a port. It doesn't take much to write a cgi script that outputs the Cisco XML for the phones. I've built a few apps that do interesting things. It would be quite easy to write an app that:
<br><br>&nbsp;&nbsp; - displays what queues a phone is signed into<br>&nbsp;&nbsp; - globally sign out of all queues<br>&nbsp;&nbsp; - sign into or out of individual queues<br><br>Thanks.<br><br><div><span class="gmail_quote">On 2/21/06, <b class="gmail_sendername">
Joe</b> &lt;<a href="mailto:jrothstein@comcentrixs.com">jrothstein@comcentrixs.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Greetings to all.<br><br>I am currently implementing call queues for a customer and have come across<br>several &quot;problems&quot;.<br><br>The customer is an airline representative, and will be using call queues for<br>
different airline reservations. The customer requires that any agent be able<br>to login to any number of queues. This means that queue members have to be<br>dynamic, not using &quot;member =&gt; agent/101&quot; for example.
<br><br>I am not sure of the best way to accomplish this.<br><br>I initially just setup agentcallback, and hard coded the agents in each<br>queue, but this means that when an agent logs in he/she will be in all<br>queues where member =&gt; agent/xxx.
<br><br>My next thought was to use a combination of agentcallback and addQueueMember<br>to add SIP extensions to particular queues. I currently have a mechanism by<br>which the user can dial a number, enter the two letter airline code, mysql
<br>translates this airline code into a real queue name, and the user is then<br>added to this queue. Of course the two letter airline code could be used for<br>the queue name to avoid the mysql lookup, something like queue-xx. Along
<br>these lines, does anyone know if it is possible to use AddQueueMember with<br>Agent/xxx, or just with real extensions? The main problem with this is that<br>there would be no way to globally logoff agents (if real extensions had to
<br>be used) from all the queues they are logged in to.<br><br>My current idea is to use agentcallback in combination with a php/mysl<br>interface. This of course would require realtime queue configuration. The<br>user would use agentcallback to login, and the web interface to choose the
<br>queues he/she wanted to join.<br><br>The customer also wants a way of seeing which queues the agents are logged<br>into. This could also be run from mysql backend. I would also like to some<br>how integrate this into the Cisco 7940 xml capabilities.
<br><br>Would love to hear form anyone regarding these issues.<br><br>Regards,<br>Joe<br><br><br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">
Easynews.com</a> --<br><br>Asterisk-Users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br></blockquote></div><br>