<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Ia sugerir um script para monitorando os eventos via AMI, mas acho que a solução do Fernando ficou mais simples.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Só se atentar a um detalhe, o &quot;channel request hungup&quot; não derruba a ligação instantaneamente. Isso pode ser um problema.</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Outra coisa importante e testar se a ligação foi atendida pelo ramal de emergência, se não foi ele poderá tentar novamente.</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Ah, são dois ramais de origem, certo? Então no AstDB você tem que gravar a hora da última ligação por origem, e depois verificar por origem também.</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><br>[...]&#39;s<br><br>Marcio<div><br></div><div><div style="font-family:arial;font-size:small">
========================================</div><div style="font-family:arial;font-size:small">########### Campanha Ajude o Marcio! ###########</div><div style="font-family:arial;font-size:small"><a href="http://sosmarcio.blogspot.com.br/" style="color:rgb(17,85,204)" target="_blank">http://sosmarcio.blogspot.com.br/</a></div>
<div style="font-family:arial;font-size:small"><a href="http://www.vakinha.com.br/VaquinhaP.aspx?e=195793" style="color:rgb(17,85,204)" target="_blank">http://www.vakinha.com.br/VaquinhaP.aspx?e=195793</a><br></div><div style="font-family:arial;font-size:small">
========================================</div></div></div></div>
<br><br><div class="gmail_quote">Em 16 de agosto de 2013 05:48, Fernando - NextBilling IP Solutions <span dir="ltr">&lt;<a href="mailto:fernando@nextbilling.com.br" target="_blank">fernando@nextbilling.com.br</a>&gt;</span> escreveu:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="PT-BR" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Só um detalhe: ESQUECI DE CHAMAR O ARQUIVO .sh, rsrs.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Então o correto seria:<u></u><u></u></span></p>
<div class="im"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">[ramal-alarme]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,1,Set(LAST=${DB(CENTRAL/last_call)})<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,Set(NOW=${STRFTIME(${EPOCH},,%s)})<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,GotoIf($[${ISNULL(${LAST})}]?:continue)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,Set(DB(CENTRAL/last_call)=${STRFTIME(${EPOCH},,%s)})<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,Set(LAST=${DB(CENTRAL/last_call)})<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n(continue),Set(HORA=${MATH(${NOW}-${LAST},int)})<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,GotoIf($[${HORA} &gt;= 60]?:hangup)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,Set(DB(CENTRAL/last_call)=${STRFTIME(${EPOCH},,%s)})<u></u><u></u></span></p>
</div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,System(/home/usuario/hangup_all.sh 1000)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,Wait(2)<u></u><u></u></span></p><div class="im"><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,Dial(SIP/1000,,tT)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n(hangup),Hangup</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Atenciosamente,<u></u><u></u></span></p><div class="im"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">Fernando da Silva Santos<u></u><u></u></span></b></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">CEO</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"> – Chief Executive Officer<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">NextBilling IP Solutions<u></u><u></u></span></b></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"><u></u> <u></u></span></b></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">SP: </span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"><a href="tel:%2B55%20%2811%29%203522-9200" value="+551135229200" target="_blank">+55 (11) 3522-9200</a><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">RJ: </span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"><a href="tel:%2B55%20%2821%29%204063-8854" value="+552140638854" target="_blank">+55 (21) 4063-8854</a><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">Tollfree:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"> <a href="tel:0800%20580-9200" value="+558005809200" target="_blank">0800 580-9200</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"><a href="http://www.nextbilling.com.br/" target="_blank">http://www.nextbilling.com.br</a><u></u><u></u></span></p>
</div></div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">De:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"> <a href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-bounces@listas.asteriskbrasil.org</a> [mailto:<a href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-bounces@listas.asteriskbrasil.org</a>] <b>Em nome de </b>Fernando - NextBilling IP Solutions<br>
<b>Enviada em:</b> sexta-feira, 16 de agosto de 2013 06:44<br><b>Para:</b> <a href="mailto:asteriskbrasil@listas.asteriskbrasil.org" target="_blank">asteriskbrasil@listas.asteriskbrasil.org</a><br><b>Assunto:</b> [AsteriskBrasil] RES: Ramal prioritário<br>
<b>Prioridade:</b> Alta<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p><p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Opa, bom dia.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:red">PS: Essa foi boa pra colocar o cérebro pra pensar, rsrsrs... Não testei então talvez tenha que alterar algo.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Você pode executar um script sh para isso. Algo do tipo:<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">[ramal-alarme]<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,1,Set(LAST=${DB(CENTRAL/last_call)})<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,Set(NOW=${STRFTIME(${EPOCH},,%s)})<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,GotoIf($[${ISNULL(${LAST})}]?:continue)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,Set(DB(CENTRAL/last_call)=${STRFTIME(${EPOCH},,%s)})<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,Set(LAST=${DB(CENTRAL/last_call)})<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n(continue),Set(HORA=${MATH(${NOW}-${LAST},int)})<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,GotoIf($[${HORA} &gt;= 60]?:hangup)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,Set(DB(CENTRAL/last_call)=${STRFTIME(${EPOCH},,%s)})<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n,Dial(SIP/1000,,tT)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;background:silver">exten =&gt; 1000,n(hangup),Hangup</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">-----------------------------------------------------------------<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">CONTEÚDO DO hangup_all.sh<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">#!/bin/bash</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span><span style="background:silver;font-size:10.0pt;font-family:Consolas"> <u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">if [ $# != 1 ]</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">then</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">   echo &quot;   Uso: $0 ramal&quot;</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">   exit</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">fi</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">echo;</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span><span style="background:silver;font-size:10.0pt;font-family:Consolas"> <u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">CHANNEL=`asterisk -rx &quot;core show channels concise&quot; | cut -f1 -d&#39;!&#39; | grep $1`</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span><span style="background:silver;font-size:10.0pt;font-family:Consolas"> <u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">for i in ${CHANNEL}</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">do</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">   #echo -n &quot;Desligar canal ${i} &quot;</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">   #read -p &quot;(s/n)? &quot; ans</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">   #if [ ${ans} == &quot;s&quot; ]</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">   #then</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">      #echo &quot;Requesting hangup on ${i}...&quot;</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">      asterisk -rx &quot;channel request hangup ${i}&quot;</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">   #fi</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">done</span><span style="background:silver;font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span><span style="background:silver;font-size:10.0pt;font-family:Consolas"> <u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:10.55pt"><span style="background:silver;font-size:10.0pt;font-family:&quot;Courier New&quot;">echo;</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><div><p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Atenciosamente,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt">
<b><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">Fernando da Silva Santos<u></u><u></u></span></b></p><p class="MsoNormal" style="margin-left:35.4pt"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">CEO</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"> – Chief Executive Officer<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">NextBilling IP Solutions<u></u><u></u></span></b></p><p class="MsoNormal" style="margin-left:35.4pt">
<b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"><u></u> <u></u></span></b></p><p class="MsoNormal" style="margin-left:35.4pt"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">SP: </span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"><a href="tel:%2B55%20%2811%29%203522-9200" value="+551135229200" target="_blank">+55 (11) 3522-9200</a><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">RJ: </span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"><a href="tel:%2B55%20%2821%29%204063-8854" value="+552140638854" target="_blank">+55 (21) 4063-8854</a><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">Tollfree:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"> <a href="tel:0800%20580-9200" value="+558005809200" target="_blank">0800 580-9200</a><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"><a href="http://www.nextbilling.com.br/" target="_blank">http://www.nextbilling.com.br</a><u></u><u></u></span></p>
</div><p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:70.8pt"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">De:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"> <a href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-bounces@listas.asteriskbrasil.org</a> [<a href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org" target="_blank">mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org</a>] <b>Em nome de </b>Daniel Feliciano<br>
<b>Enviada em:</b> sexta-feira, 16 de agosto de 2013 02:38<br><b>Para:</b> asterisk<br><b>Assunto:</b> [AsteriskBrasil] Ramal prioritário<u></u><u></u></span></p></div></div><p class="MsoNormal" style="margin-left:70.8pt">
<u></u> <u></u></p><div><p class="MsoNormal" style="margin-left:70.8pt"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Pessoal,<u></u><u></u></span></p><div><p class="MsoNormal" style="margin-left:70.8pt">
<span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">estou inserindo um sistema de emergencia no asterisk onde tenho 2 ramais especificos que vao ligar para outro ramal central, esse ramal central é utilizado normalmente no asterisk, porem quando ele receber um ligacao de qualquer um desses ramais especificos gostaria que fosse dada prioridade para eles, se for preciso, derrubando a ligacao desse ramal central caso esteja em conversacao.<u></u><u></u></span></p>
</div><div><p class="MsoNormal" style="margin-left:70.8pt"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal" style="margin-left:70.8pt"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Paralelo a isso, para que acabe nao gerando dores de cabecas futuras de alguem ficar ligando varias vezes desse ramal de emergencia, gostaria de limitar o tempo entre uma chamada e outra, ou seja, liguei 1 vez, desliguei, só posso ligar novamente daqui a 1 minuto, por exemplo. <u></u><u></u></span></p>
</div><div><p class="MsoNormal" style="margin-left:70.8pt"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal" style="margin-left:70.8pt"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Acredito que seja algo com o set variable, com relacao ao tempo, ja para derrubar a ligacao e entrar em seguida, nao sei se é possivel...<u></u><u></u></span></p>
</div><div><p class="MsoNormal" style="margin-left:70.8pt"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Qualquer tipo de esclarecimento é bem vindo. Abs<u></u><u></u></span></p></div><div><p class="MsoNormal" style="margin-left:70.8pt">
<span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal" style="margin-left:70.8pt"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Daniel<u></u><u></u></span></p>
</div></div></div></div></div></div><br>_______________________________________________<br>
KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;<br>
Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;<br>
Intercomunicadores para acesso remoto via rede IP. Conheça em <a href="http://www.Khomp.com" target="_blank">www.Khomp.com</a>.<br>
_______________________________________________<br>
ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.<br>
Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.<br>
Channel Bank – Appliance Asterisk - Acesse <a href="http://www.aligera.com.br" target="_blank">www.aligera.com.br</a>.<br>
_______________________________________________<br>
Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br></blockquote></div>
<br></div>