<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/2033/1/7/_/styles/combined.css?spaceKey=AST&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/AST/Function_QUEUE_VARIABLES?focusedCommentId=10649986#comment-10649986">Function_QUEUE_VARIABLES</a></h2>
        <h4>Page
        <b>comment added</b> by              <a href="https://wiki.asterisk.org/wiki/display/~channelz">Bob M</a>
    </h4>
    <br/>
    <div class="notificationGreySide">
       <p>Make sure <tt>setqueuevar</tt> is turn on in queues.conf inside each queue definition for any queues you want to get information on.</p>
    </div>

                <div style="border-bottom: 1px solid #ddd; padding: 10px 20px 7px 20px;">
        <strong>In reply to a comment by <a href="/wiki/display/~shayne.alone@gmail.com"
                          class="url fn confluence-userlink" data-username="shayne.alone@gmail.com"
                   >AliReza Taleghani</a>:</strong><br/>
        
<p>can you please, light my problem with this function:</p>

<p>i had been set QueueMax variable in configuration files, and know in dialplan wana check it some wheres... by the way do the fallowing:</p>

<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/wiki/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>exten =&gt; support-provinces,n,Set(err=${QUEUE_VARIABLES(support-provinces)})<br/>
exten =&gt; support-provinces,n,Noop(rtncode was ${err}, QueueMax was:${QUEUEMAX}</td></tr></table></div>

<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/wiki/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>and the result is:<br/>
&#8211; Executing <span class="error">&#91;support-provinces@from-as5300:5&#93;</span> Set("OOH323/AS5300-10539", "err=-1") in new stack<br/>
&#8211; Executing <span class="error">&#91;support-provinces@from-as5300:6&#93;</span> NoOp("OOH323/AS5300-10539", "rtncode was -1, QueueMax was:") in new stack</td></tr></table></div>



<p>CallCenter*CLI&gt; queue show support-provinces <br/>
support-provinces has 0 calls (<b>max 10</b>) in 'leastrecent' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 120s<br/>
   No Members<br/>
   No Callers</p>


        </div>
    
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://wiki.asterisk.org/wiki/users/viewnotifications.action" class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://wiki.asterisk.org/wiki/display/AST/Function_QUEUE_VARIABLES?focusedCommentId=10649986#comment-10649986">View Online</a>
              |
       <a id="reply-10649986" href="https://wiki.asterisk.org/wiki/display/AST/Function_QUEUE_VARIABLES?replyToComment=10649986#comment-10649986">Reply To This</a>
           </div>

</div>
</div>
</div>
</div>
</body>
</html>