<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2171/18/9/_/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/Call+Queues?focusedCommentId=10649879#comment-10649879">Call Queues</a></h2>
    <h4>Comment edited by             <a href="https://wiki.asterisk.org/wiki/display/~mdavenport">Malcolm Davenport</a>
     :</h4>
    <br/>
                        <h4>Changes (2)</h4>
                                
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-changed-lines" >it seems to be a better job <span class="diff-changed-words">:-)<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">{tip}exten =&gt; 4389000/_093432ZXZZ,1,Noop(Calling from $\{CALLERID(all)}.)</span></span> <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">exten =&gt; 4389000/_093432ZXZZ,n,MYSQL(Connect connid localhost astuser astpass events_lookup) <br>exten =&gt; 4389000/_093432ZXZZ,n,MYSQL(Query resultid $\{connid} SELECT name FROM callers where phone = &#39;$\{CALLERID(num)}&#39;); <br>exten =&gt; 4389000/_093432ZXZZ,n,MYSQL(Fetch fetchid $\{resultid} CALLERID(name)) <br>exten =&gt; 4389000/_093432ZXZZ,n,MYSQL(Disconnect $\{connid}) <br>exten =&gt; 4389000/_093432ZXZZ,n,Noop(Calling from $\{CALLERID(all)}.) <br>;exten =&gt; 4389000/_093432ZXZZ,n,Answer() <br>;exten =&gt; 4389000/_093432ZXZZ,n,Dial(SIP/8552,,,www.google.com) <br>;we will check it there is no logged in member, or callers queue is over 10 or the free  <br>;members are less that 5! and if non match, will queue the callers on provinces! <br>;otherwise will queue it on central! <br>exten =&gt; 4389000/_093432ZXZZ,n(chkpresent),Gotoif($\[$\{QUEUE_MEMBER(support-provinces,logged)}=0]?sendtocentral:chkqueload) <br>exten =&gt; 4389000/_093432ZXZZ,n(chkqueload),Gotoif($\[$\{QUEUE_WAITING_COUNT(support-provinces)}&gt;$\{QUEUE_VARIABLES(QUEUEMAX)}]?sendtocentral:chkfreemem) <br>exten =&gt; 4389000/_093432ZXZZ,n(chkfreemem),Gotoif($\[$\{QUEUE_MEMBER(support-provinces,free)}&gt;5]?sendtocentral:sendtoprovinces) <br>exten =&gt; 4389000/_093432ZXZZ,n(sendtoprovinces),Queue(support-provinces,t,,,,,,,,1) <br>exten =&gt; 4389000/_093432ZXZZ,n,hangup() <br>exten =&gt; 4389000/_093432ZXZZ,n(sendtocentral),Queue(support-central,t,,,,,,,,1) <br>exten =&gt; 4389000/_093432ZXZZ,n,hangup(){tip} <br></td></tr>
            <tr><td class="diff-unchanged" > <br> <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                          <div class="notificationGreySide">
            <p>it seems to be a better job <img class="emoticon" src="/wiki/images/icons/emoticons/smile.gif" height="20" width="20" align="absmiddle" alt="" border="0"/></p>


<p>of course it's not still ready for a WIKI, i like to modify it as a macro,but<br/>
how should i convert them into a WIKI page?</p>

<p>is it enough to turn them into a label? </p>
        </div>
    
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;" class="grey">
                        <a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
       <a href="https://wiki.asterisk.org/wiki/display/AST/Call+Queues?focusedCommentId=10649879#comment-10649879">View Online</a>
              |
       <a id="reply-10649879" href="https://wiki.asterisk.org/wiki/display/AST/Call+Queues?replyToComment=10649879#comment-10649879">Reply To This</a>
           </div>

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