<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 08/23/2012 10:05 AM, Jonas Kellens
wrote:<br>
</div>
<blockquote cite="mid:503638B5.4040700@telenet.be" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<font face="Helvetica, Arial, sans-serif">Hello,<br>
<br>
using asterisk 1.8.11.1<br>
using realtime queues<br>
<br>
When trying to remove a queue member, I get the following :<br>
<br>
-- Executing [122@from-TESTCORP:2]
RemoveQueueMember("SIP/testcorp5-0000000c",
"testcorpq1,SIP/testcorp7") in new stack<br>
WARNING[18788]: app_queue.c:5653 rqm_exec: Unable to remove
interface from queue 'testcorpq1': 'SIP/testcorp7' is not a
dynamic member</font><br>
</blockquote>
<font face="Helvetica, Arial, sans-serif"><br>
The answer is right there: you can't remove the member because
it's not a dynamic member. A dynamic member is one that was added
with AddQueueMember. If you want to remove a static member (that
is, one that was defined in queues.conf, or in your realtime
database) then you have to remove it by removing it from that
configuration. RemoveQueueMember can't do it.<br>
<br>
You can verify that a member is dynamic by observing "(dynamic)"
next to the agent's name in "queue show".<br>
<br>
Perhaps you can set persistentmembers=yes in queues.conf [general]
section (or your realtime database, if you like), and then dynamic
members will persist across asterisk restarts. Then get rid of
your static members. Then implement extensions that agents can
call to log in and out, that call AddQueueMember and
RemoveQueueMember.<br>
</font>
</body>
</html>