<html><head><base href="x-msg://10/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Os ramais da faixa 1300-1359 você cria colocando como sendo do contexto ˜liga", por exemplo , colocando na definição do ramal algo como :</div><div><div>[1300]</div><div>deny=0.0.0.0/0.0.0.0</div><div>type=friend</div><div>secret=senha</div><div>qualify=yes</div><div>port=5060</div><div>pickupgroup=</div><div>permit=0.0.0.0/0.0.0.0</div><div>nat=no</div><div>mailbox=1300@device</div><div>host=dynamic</div><div>dtmfmode=rfc2833</div><div>dial=SIP/1300</div><div>context=liga</div><div>canreinvite=no</div><div>callgroup=</div><div>callerid=device &lt;1300&gt;</div></div><div><br></div><div><br></div><div>Os ramais da faixa 101-299 você cria como sendo do conexto "bloqueado", por exemplo, colocando na definição do ramal algo como:</div><div><br></div><div><div>[129]</div><div>deny=0.0.0.0/0.0.0.0</div><div>type=friend</div><div>secret=101</div><div>qualify=yes</div><div>port=5060</div><div>pickupgroup=</div><div>permit=0.0.0.0/0.0.0.0</div><div>nat=no</div><div>mailbox=129@device</div><div>host=dynamic</div><div>dtmfmode=rfc2833</div><div>dial=SIP/129</div><div>context=bloqueado</div><div>canreinvite=no</div><div>callgroup=</div><div>callerid=device &lt;129&gt;</div></div><div><br></div><div>Aí você define os dois contextos :</div><div><br></div><div>[liga]</div><div>"coloque aqui o que vc para discar"</div><div><br></div><div>[bloqueado]</div><div><blockquote type="cite"><div lang="PT-BR" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div><div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">exten =&gt; s,1,Playback(use-discador-web)<o:p></o:p></span></div></div><div></div></div></div></div></div></blockquote></div><div><blockquote type="cite"><div lang="PT-BR" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div><div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">exten =&gt; s,2,Hangup</span></div></div></div></div></div></div></blockquote></div><div><br></div><div><br></div><div><br></div><div>Espero que tenha ficado claro.</div><div><br></div><br><div><div>On 07/12/2011, at 11:51, Sidnei - IG wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="PT-BR" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">Não entendi.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p>&nbsp;</o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p>&nbsp;</o:p></span></div><div><div style="border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-top-style: solid; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding-top: 3pt; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; position: static; z-index: auto; "><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><b><span style="font-size: 10pt; font-family: Tahoma, sans-serif; ">De:</span></b><span style="font-size: 10pt; font-family: Tahoma, sans-serif; "><span class="Apple-converted-space">&nbsp;</span><a href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org" style="color: blue; text-decoration: underline; ">asteriskbrasil-bounces@listas.asteriskbrasil.org</a><span class="Apple-converted-space">&nbsp;</span>[mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org]<span class="Apple-converted-space">&nbsp;</span><b>Em nome de<span class="Apple-converted-space">&nbsp;</span></b>Carlos Toguchi<br><b>Enviada em:</b><span class="Apple-converted-space">&nbsp;</span>quarta-feira, 7 de dezembro de 2011 11:26<br><b>Para:</b><span class="Apple-converted-space">&nbsp;</span><a href="mailto:asteriskbrasil@listas.asteriskbrasil.org" style="color: blue; text-decoration: underline; ">asteriskbrasil@listas.asteriskbrasil.org</a><br><b>Assunto:</b><span class="Apple-converted-space">&nbsp;</span>Re: [AsteriskBrasil] Verificar Faixa de Ramal<o:p></o:p></span></div></div></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p>&nbsp;</o:p></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p>&nbsp;</o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">Sidnei, melhor tratar isto através do contexto.<o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p>&nbsp;</o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p>&nbsp;</o:p></div></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p>&nbsp;</o:p></div><div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">On 07/12/2011, at 11:07, Sidnei - IG wrote:<o:p></o:p></div></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><br><br><o:p></o:p></div><div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">Olá Pessoal.<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">Preciso fazer o seguinte:<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">&nbsp;<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">Toda ligação antes de ser executada tem que ser verificado qual a faixa de ramal este realizando a ligação.<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">Tenho a seguinte faixa de ramal :<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">&nbsp;<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">1300 à 1359 e 101 à 299.<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">&nbsp;<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">Então se a ligação for realizada por um ramal da faixa 101 à 299 tem que rodar um áudio e desligar.<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">Se for pela faixa 1300 à 1359 tem que realizar a ligação.<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">&nbsp;<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">Estou usando Elastix 1.6 então tentei o seguinte:<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">&nbsp;<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">exten =&gt; s,1,Set(AMPUSER=${IF($["foo${AMPUSER}" = "foo"]?${CALLERID(number)}:${AMPUSER})}) ========verifica qual é o ramal<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">exten =&gt; s,n,GotoIf($["${AMPUSER}" &gt;= "1300" &amp; "${AMPUSER}" &lt;= "1359"]?continua:desligar) =============se estiver entre 1300 e 1359 = continua senão = playback.<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">exten =&gt; s,n(desligar),Playback(use-discador-web)<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">exten =&gt; s,n,Hangup<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">exten =&gt; s,n(continua),MacroExit()<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">&nbsp;<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">O que acontece é que se for um ramal 130 por exemplo ele envia para a prio “continua”, se for 129 funciona da forma que quero.<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">Alguém sabe como resolver isso, se está certo a forma que estou fazendo?<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">Grato pela ajuda.<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">&nbsp;<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">&nbsp;<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">Sidnei Pereira.<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">&nbsp;<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">&nbsp;<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">&nbsp;<o:p></o:p></span></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; ">&nbsp;<o:p></o:p></span></div></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 13.5pt; font-family: Helvetica, sans-serif; ">_______________________________________________<br>KHOMP ::: External Series Experience :::<br>Um novo conceito para o mercado de aplicações que vai<br>fazer você pensar fora da caixa. Aguarde este lançamento<br>_______________________________________________<br>DIGIVOICE: Lider no mercado de placas para Asterisk<br>Único fabricante com Centro de Treinamento especializado.<br>LANÇAMENTO: Channel Bank TDMoE, até 64 canais FXS / FXO.<span class="apple-converted-space">&nbsp;</span><br><a href="http://www.digivoice.com.br/" style="color: blue; text-decoration: underline; ">www.digivoice.com.br</a><span class="apple-converted-space">&nbsp;</span>ou (11)3016-5200.<br>________<br>GATEWAY GSM-SIP, gateway Lyric VoIP com 2,4 e 6 canais GSM vía tronco SIP<br>Escalável até 240 canáis, Portabilidade Numérica, &nbsp;Balanceamento de Carga, Bilhetagem<br>Confira em<span class="apple-converted-space">&nbsp;</span><a href="http://www.yx.cl/landing/brasil/lyric_voip_asterisk.org" style="color: blue; text-decoration: underline; ">http://www.yx.cl/landing/brasil/lyric_voip_asterisk.org</a><br>Shop Voip, representante exclusivo:<span class="apple-converted-space">&nbsp;</span><a href="http://www.shopvoip.com.br/" style="color: blue; text-decoration: underline; ">www.shopvoip.com.br</a><span class="apple-converted-space">&nbsp;</span>ou 0800-6021244<span class="apple-converted-space">&nbsp;</span><br>______________________________________________<br>Para remover seu email desta lista, basta enviar um email em branco para<span class="apple-converted-space">&nbsp;</span><a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" style="color: blue; text-decoration: underline; ">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><o:p></o:p></span></div></div></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p>&nbsp;</o:p></div></div>_______________________________________________<br>KHOMP ::: External Series Experience :::<br>Um novo conceito para o mercado de aplicações que vai<br>fazer você pensar fora da caixa. Aguarde este lançamento<br>_______________________________________________<br>DIGIVOICE: Lider no mercado de placas para Asterisk<br>Único fabricante com Centro de Treinamento especializado.<br>LANÇAMENTO: Channel Bank TDMoE, até 64 canais FXS / FXO.<span class="Apple-converted-space">&nbsp;</span><br><a href="http://www.digivoice.com.br" style="color: blue; text-decoration: underline; ">www.digivoice.com.br</a><span class="Apple-converted-space">&nbsp;</span>ou (11)3016-5200.<br>________<br>GATEWAY GSM-SIP, gateway Lyric VoIP com 2,4 e 6 canais GSM vía tronco SIP<br>Escalável até 240 canáis, Portabilidade Numérica, &nbsp;Balanceamento de Carga, Bilhetagem<br>Confira em<span class="Apple-converted-space">&nbsp;</span><a href="http://www.yx.cl/landing/brasil/lyric_voip_asterisk.org" style="color: blue; text-decoration: underline; ">http://www.yx.cl/landing/brasil/lyric_voip_asterisk.org</a><br>Shop Voip, representante exclusivo:<span class="Apple-converted-space">&nbsp;</span><a href="http://www.shopvoip.com.br" style="color: blue; text-decoration: underline; ">www.shopvoip.com.br</a><span class="Apple-converted-space">&nbsp;</span>ou 0800-6021244<span class="Apple-converted-space">&nbsp;</span><br>______________________________________________<br>Para remover seu email desta lista, basta enviar um email em branco para<span class="Apple-converted-space">&nbsp;</span><a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" style="color: blue; text-decoration: underline; ">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a></div></blockquote></div><br></body></html>