<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=10649876#comment-10649876">Call Queues</a></h2>
    <h4>Comment edited by             <a href="https://wiki.asterisk.org/wiki/display/~shayne.alone@gmail.com">AliReza Taleghani</a>
     :</h4>
    <br/>
                        <h4>Changes (13)</h4>
                                
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >i will do my tries and report the result ASAP. <br> <br></td></tr>
            <tr><td class="diff-changed-lines" >{note}exten =&gt; <span class="diff-changed-words">23089000<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">/09363224069</span>,1,Noop(Calling</span> from $\{CALLERID(all)}.) <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words">23089000<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">/09363224069</span>,n,MYSQL(Connect</span> connid localhost astuser astpass events_lookup) <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words">23089000<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">/09363224069</span>,n,MYSQL(Query</span> resultid $\{connid} SELECT name FROM callers where phone = &#39;$\{CALLERID(num)}&#39;); <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words">23089000<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">/09363224069</span>,n,MYSQL(Fetch</span> fetchid $\{resultid} CALLERID(name)) <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words">23089000<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">/09363224069</span>,n,MYSQL(Disconnect</span> $\{connid}) <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words">23089000<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">/09363224069</span>,n,Noop(Calling</span> from $\{CALLERID(all)}.) <br></td></tr>
            <tr><td class="diff-changed-lines" >;exten =&gt; <span class="diff-changed-words">23089000<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">/09363224069</span>,n,Answer()</span> <br></td></tr>
            <tr><td class="diff-changed-lines" >;exten =&gt; <span class="diff-changed-words">23089000<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">/09363224069</span>,n,Dial(SIP/8552,,,www.google.com)</span> <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words">23089000<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">/09363224069</span>,n,Gotoif($\{QUEUE_MEMBER(support-provinces,ready)}&lt;3?labeliftrue:labeliffalse)</span> <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words">23089000<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">/09363224069</span>,n(labeliftrue),Queue(support-provinces,t,,,,,,,,1)</span> <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words">23089000<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">/09363224069</span>,n,hangup()</span> <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words">23089000<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">/09363224069</span>,n(labeliffalse),Queue(support-central,t,,,,,,,,1)</span> <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words">23089000<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">/09363224069</span>,n,hangup()</span> <br></td></tr>
            <tr><td class="diff-unchanged" >{note} <br>sorry if it&#39;s dirty dialplan <br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                          <div class="notificationGreySide">
            <p>Dear Malcolm;<br/>
first of all, thanks for your hellp...<br/>
<img class="emoticon" src="/wiki/images/icons/emoticons/smile.gif" height="20" width="20" align="absmiddle" alt="" border="0"/></p>

<p>i was trying somewhat like what you told,but it's my first try, so i hope to have your help <img class="emoticon" src="/wiki/images/icons/emoticons/wink.gif" height="20" width="20" align="absmiddle" alt="" border="0"/><br/>
the following is what i did right now, and i hope to update it with queue length check today...</p>

<p>i will do my tries and report the result ASAP.</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; 23089000,1,Noop(Calling from ${CALLERID(all)}.)<br/>
exten =&gt; 23089000,n,MYSQL(Connect connid localhost astuser astpass events_lookup)<br/>
exten =&gt; 23089000,n,MYSQL(Query resultid ${connid} SELECT name FROM callers where phone = '${CALLERID(num)}');<br/>
exten =&gt; 23089000,n,MYSQL(Fetch fetchid ${resultid} CALLERID(name))<br/>
exten =&gt; 23089000,n,MYSQL(Disconnect ${connid})<br/>
exten =&gt; 23089000,n,Noop(Calling from ${CALLERID(all)}.)<br/>
;exten =&gt; 23089000,n,Answer()<br/>
;exten =&gt; 23089000,n,Dial(SIP/8552,,,www.google.com)<br/>
exten =&gt; 23089000,n,Gotoif(${QUEUE_MEMBER(support-provinces,ready)}&lt;3?labeliftrue:labeliffalse)<br/>
exten =&gt; 23089000,n(labeliftrue),Queue(support-provinces,t,,,,,,,,1)<br/>
exten =&gt; 23089000,n,hangup()<br/>
exten =&gt; 23089000,n(labeliffalse),Queue(support-central,t,,,,,,,,1)<br/>
exten =&gt; 23089000,n,hangup()</td></tr></table></div>
<p>sorry if it's dirty dialplan</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=10649876#comment-10649876">View Online</a>
              |
       <a id="reply-10649876" href="https://wiki.asterisk.org/wiki/display/AST/Call+Queues?replyToComment=10649876#comment-10649876">Reply To This</a>
           </div>

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