<font color='black' size='2' face='arial'>
<div>Você vai precisar saber utilizar o "CALLERID", "DIAL" e "GOTOIF", vc sabe utilizar isso?</div>


<div>&nbsp;</div>


<div>Primeiro vc vai ter que descobrir quem te ligou ex:</div>


<div>NoOp(${CALLERID(number)})</div>


<div>&nbsp;</div>


<div>Depois vai comparar se o número que te ligou é permitido... </div>


<div>GOTOIF(CALLERID = NumeroPermitido?contexto,regra,prioridade)</div>


<div>&nbsp;</div>


<div>Depois vai pedir para o Asterisk ligar para o número permitido</div>


<div>Dial(SIP/4029&amp;SIP/4027&amp;Zap/4&amp;IAX/jaz,15,tTr) </div>


<div><br>
Imagino que desta maneira seja possível.</div>


<div>&nbsp;</div>


<div>&nbsp;</div>


<div>Para saber mais...</div>


<div>Dial:</div>


<div><A href="http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial">http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial</A></div>


<div>CallerID:</div>


<div><A href="http://www.voip-info.org/wiki/view/CallerID">http://www.voip-info.org/wiki/view/CallerID</A></div>


<div>GotoIf:</div>


<div><A href="http://www.voip-info.org/wiki/view/Asterisk+cmd+GotoIf">http://www.voip-info.org/wiki/view/Asterisk+cmd+GotoIf</A><br>
</div>


<div>&nbsp;</div>


<div>Att,</div>


<div>Bruno<br>
<br>
<br>
</div>


<div style="CLEAR: both"></div>
<br>
<br>


<div style="FONT-FAMILY: arial,helvetica; COLOR: black; FONT-SIZE: 10pt">-----Original Message-----<br>
From: Fábio Morgado &lt;fabio.morgado@scscz.com.br&gt;<br>
To: asteriskbrasil@listas.asteriskbrasil.org<br>
Sent: Mon, Mar 15, 2010 1:00 pm<br>
Subject: [AsteriskBrasil] RES: Callback (retornar ligação)<br>
<br>


<div id=AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d>
<STYLE>#AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d td{color: black;} @#AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d #AOLMsgPart_3_dacc3157-f5c9-4200-bc87-3c93f64d8d61 page Section1 {size:595.3pt 841.9pt; margin:70.85pt 3.0cm 70.85pt 3.0cm;}  @#AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;}  #AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d p.MsoNormal,#AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d  li.MsoNormal,#AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d  div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";}#AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d pre {margin:0cm; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New";}#AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d tt {font-family:"Courier New";}#AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d span.EstiloDeEmail18 {mso-style-type:personal; font-family:Arial; color:windowtext;}#AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d span.EstiloDeEmail21 {mso-style-type:personal-reply; font-family:Arial; color:navy;}@#AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d page Section1 {size:595.3pt 841.9pt; margin:70.85pt 3.0cm 70.85pt 3.0cm;}#AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d div.Section1 {page:Section1;}</STYLE>


<div class=Section1>

<div class=MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Na verdade eu preciso cadastrar alguns números para que somente eles tenham o “poder” de receber a ligação de volta, eu já tenho a ura mas não sei muito sobre programação no asterisk, por isso fiquei perdido.</SPAN></FONT></div>


<div class=MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>


<div>

<div class=MsoNormal><FONT color=red size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: red; FONT-SIZE: 10pt">Att.</SPAN></FONT><FONT color=navy><SPAN style="COLOR: navy"></SPAN></FONT></div>


<div class=MsoNormal><FONT color=red size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: red; FONT-SIZE: 10pt">Fábio Morgado</SPAN></FONT></div>


<div class=MsoNormal><FONT color=red size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: red; FONT-SIZE: 10pt">SC Telecom</SPAN></FONT><FONT color=navy><SPAN style="COLOR: navy"></SPAN></FONT></div>


<div class=MsoNormal><FONT color=red size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: red; FONT-SIZE: 10pt">www<A href="http://www.scscz.com.br/" target=_blank>.scscz.com.br</A></SPAN></FONT></div>


<div class=MsoNormal><FONT color=red size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: red; FONT-SIZE: 10pt">(21) 3527-0316</SPAN></FONT><FONT color=navy><SPAN style="COLOR: navy"></SPAN></FONT></div>


<div class=MsoNormal><FONT color=red size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: red; FONT-SIZE: 10pt">(21) 8883-7479</SPAN></FONT></div>
</div>


<div class=MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>


<div>

<div style="TEXT-ALIGN: center" class=MsoNormal align=center><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">
<HR align=center SIZE=2 width="100%">
</SPAN></FONT></div>


<div class=MsoNormal><B><FONT size=2 face=Tahoma><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt; FONT-WEIGHT: bold">De:</SPAN></FONT></B><FONT size=2 face=Tahoma><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt"> <A href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org">asteriskbrasil-bounces@listas.asteriskbrasil.org</A> [<A href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org?">mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org</A>] <B><SPAN style="FONT-WEIGHT: bold">Em nome de </SPAN></B><A href="mailto:brunoantognolli@email.com">brunoantognolli@email.com</A><br>
<B><SPAN style="FONT-WEIGHT: bold">Enviada em:</SPAN></B> segunda-feira, 15 de março de 2010 11:31<br>
<B><SPAN style="FONT-WEIGHT: bold">Para:</SPAN></B> <A href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</A><br>
<B><SPAN style="FONT-WEIGHT: bold">Assunto:</SPAN></B> Re: [AsteriskBrasil]Callback (retornar ligação)</SPAN></FONT></div>
</div>


<div class=MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">Sim... é possível.</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">Vc vai precisar identificar o número que ligou para sua URA, e depois realizar a chamada (através do Dial do asterisk) para o número que te ligou.</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">Mas existem vários detalhes, por exemplo.</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">Se alguém ligou para sua URA ela vai atender e redirecionar para alguém (um ramal qualquer), entao vc teria que ter mais uma variável aí, que é o número do ramal que a pessoa gostaria de falar.</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">Neste segundo caso, vc teria que:</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">- Identificar o número que ligou para sua URA</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">- Identificar o ramal que iria ser chamado</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">E aí sim, montar um contexto para realizar a chamada (tambem através do Dial). Essa chamada seria do RAMAL desejado para o Número que ligou inicialmente.</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">Meio confuso? Expliquei mal? kkkk</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">Qq coisa manda aí! :)</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">Att,</SPAN></FONT></div>
</div>


<div>

<div style="MARGIN-BOTTOM: 12pt" class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">Bruno</SPAN></FONT></div>
</div>


<div style="MARGIN-BOTTOM: 12pt" class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>


<div>

<div style="MARGIN-BOTTOM: 12pt" class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">-----Original Message-----<br>
From: Fábio Morgado &lt;<A href="mailto:fabio.morgado@scscz.com.br">fabio.morgado@scscz.com.br</A>&gt;<br>
To: <A href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</A><br>
Sent: Mon, Mar 15, 2010 11:20 am<br>
Subject: [AsteriskBrasil] Callback (retornar ligação)</SPAN></FONT></div>


<div id=AOLMsgPart_3_dacc3157-f5c9-4200-bc87-3c93f64d8d61>

<div>

<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">Galera bom dia, </SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">Estou pensando se existe a possibilidade de uma pessoa ligar para um numero que deixei como ura e essa ura retornar a ligação, para que a pessoa que quer falar com a ura não tenha custo entedem? Vou precisar disso aqui na empresa para o pessoal que fica na rua, será que da pra fazer? (desculpem a ignorância)</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=red size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: red; FONT-SIZE: 10pt">Att.</SPAN></FONT><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt"></SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=red size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: red; FONT-SIZE: 10pt">Fábio Morgado</SPAN></FONT><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt"></SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=red size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: red; FONT-SIZE: 10pt">SC Telecom</SPAN></FONT><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt"></SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=red size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: red; FONT-SIZE: 10pt">www<A href="http://www.scscz.com.br/" target=_blank><U>.scscz.com.br</U></A></SPAN></FONT><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt"></SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=red size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: red; FONT-SIZE: 10pt">(21) 3527-0316</SPAN></FONT><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt"></SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=red size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: red; FONT-SIZE: 10pt">(21) 8883-7479</SPAN></FONT><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt"></SPAN></FONT></div>
</div>


<div>

<div class=MsoNormal><FONT color=black size=3 face="Times New Roman"><SPAN style="COLOR: black; FONT-SIZE: 12pt">&nbsp;</SPAN></FONT><FONT color=black size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 10pt"></SPAN></FONT></div>
</div>
</div>
</div>


<div id=AOLMsgPart_4_dacc3157-f5c9-4200-bc87-3c93f64d8d61><PRE style="BACKGROUND: white"><TT><FONT color=black size=2 face="Courier New"><SPAN style="COLOR: black; FONT-SIZE: 10pt">_______________________________________________</SPAN></FONT></TT></PRE><PRE style="BACKGROUND: white"><TT><FONT color=black size=2 face="Courier New"><SPAN style="COLOR: black; FONT-SIZE: 10pt">KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk. </SPAN></FONT></TT></PRE><PRE style="BACKGROUND: white"><TT><FONT color=black size=2 face="Courier New"><SPAN style="COLOR: black; FONT-SIZE: 10pt">- Hardware com alta disponibilidade de recursos e qualidade KHOMP</SPAN></FONT></TT></PRE><PRE style="BACKGROUND: white"><TT><FONT color=black size=2 face="Courier New"><SPAN style="COLOR: black; FONT-SIZE: 10pt">- Suporte técnico local qualificado e gratuito </SPAN></FONT></TT></PRE><PRE style="BACKGROUND: white"><TT><FONT color=black size=2 face="Courier New"><SPAN style="COLOR: black; FONT-SIZE: 10pt">Conheça a linha completa de produtos KHOMP em <A href="http://www.khomp.com.br/" target=_blank><U><FONT color=blue><SPAN style="COLOR: blue">www.khomp.com.br</SPAN></FONT></U></A></SPAN></FONT></TT></PRE><PRE style="BACKGROUND: white"><TT><FONT color=black size=2 face="Courier New"><SPAN style="COLOR: black; FONT-SIZE: 10pt">_______________________________________________</SPAN></FONT></TT></PRE><PRE style="BACKGROUND: white"><TT><FONT color=black size=2 face="Courier New"><SPAN style="COLOR: black; FONT-SIZE: 10pt">Lista de discussões AsteriskBrasil.org</SPAN></FONT></TT></PRE><PRE style="BACKGROUND: white"><TT><FONT color=black size=2 face="Courier New"><SPAN style="COLOR: black; FONT-SIZE: 10pt"><A href="mailto:AsteriskBrasil@listas.asteriskbrasil.org"><U><FONT color=blue><SPAN style="COLOR: blue">AsteriskBrasil@listas.asteriskbrasil.org</SPAN></FONT></U></A></SPAN></FONT></TT></PRE><PRE style="BACKGROUND: white"><TT><FONT color=black size=2 face="Courier New"><SPAN style="COLOR: black; FONT-SIZE: 10pt"><A href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target=_blank><U><FONT color=blue><SPAN style="COLOR: blue">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</SPAN></FONT></U></A></SPAN></FONT></TT></PRE></div>
</div>
</div>
</div>
<!-- end of AOLMsgPart_3_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d -->

<div style="BACKGROUND-COLOR: #fff; MARGIN: 0px; FONT-FAMILY: Tahoma, Verdana, Arial, Sans-Serif; COLOR: #000; FONT-SIZE: 12px" id=AOLMsgPart_4_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d><PRE style="FONT-SIZE: 9pt"><TT>_______________________________________________
KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk. 
- Hardware com alta disponibilidade de recursos e qualidade KHOMP
- Suporte técnico local qualificado e gratuito 
Conheça a linha completa de produtos KHOMP em <A href="http://www.khomp.com.br/" target=_blank>www.khomp.com.br</A>
_______________________________________________
Lista de discussões AsteriskBrasil.org
<A href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</A>
<A href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target=_blank>http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</A>
</TT></PRE></div>
<!-- end of AOLMsgPart_4_3d76a1cd-9015-43ac-b7e6-0df5e0ce2a6d --></div>
</font>