<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Isso não serve?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>(extraído de <A
href="http://voip-info.org/tiki-index.php?page=Asterisk+config+extensions.conf">http://voip-info.org/tiki-index.php?page=Asterisk+config+extensions.conf</A> )</FONT></DIV>
<DIV><FONT face=Arial size=2>(ou google: asterisk "ex-girlfriend"
extensions.conf )</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Other options for defining extensions include an
option commonly referred to as the ex-girlfriend logic. This logic will match
the dialed extension, wether it came from outside or inside, based on the
callerid of the person calling it. For exmaple: </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> exten => 123/100,1,Answer()
<BR> exten => 123/100,2,Playback(tt-weasels) <BR>
exten => 123/100,3,Voicemail(123) <BR> exten =>
123/100,4,Hangup() </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>This will match extension 123 and perform the
following options ONLY if the Caller-ID Number of the calling user is 100. This
can also be accomplished with pattern matching, as seen below: </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> exten =>
1234/_256NXXXXXX,1,Answer() <BR> and so on... </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>This will only match for 1234 if the Caller ID
Number is something beginning with 256. This is very useful to keep locals from
dialing your toll-free number and charging you for the call. </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>You can even do this: </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> exten => s,1,Answer
<BR> exten => s/9184238080,2,Set(CALLERID(name)=EVIL BASTARD)
<BR> exten => s,2,Set(CALLERID(name)=Good Person)
<BR> exten => s,3,Dial(SIP/goodperson) </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
(thanks for pointing that out, Brian :) ) </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Basically the call comes in, at 2 you fork the
people you don't like out, everybody else stays in the path and at 3 everybody
is back in the main path.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Resumindo, pelo que eu entendi, para o que vc quer
acho que simplesmente isso funcionaria:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten => 200/202,1,Hangup()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[]'s,</FONT></DIV>
<DIV><FONT face=Arial size=2>Vinicius</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=fabricio.vix@gmail.com href="mailto:fabricio.vix@gmail.com">Fabricio
Louback</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=asteriskbrasil@listas.asteriskbrasil.org
href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, January 21, 2006 1:59
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [AsteriskBrasil] Bloquear
ligação de um Ramal</DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>
<DIV>Gostaria de saber se é possível fazer isso no ATA utilizo PAP2.</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>Obrigado<BR><BR> </DIV>
<DIV><SPAN class=gmail_quote>Em 21/01/06, <B class=gmail_sendername>Josué
Conti</B> <<A
href="mailto:josueconti@gmail.com">josueconti@gmail.com</A>>
escreveu:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV>Ja tentou criar contextos diferentes?</DIV>
<DIV> </DIV>
<DIV>Abraço e boa sorte</DIV>
<DIV> </DIV>
<DIV>Josué<BR><BR> </DIV>
<DIV><SPAN class=gmail_quote>Em 21/01/06, <B class=gmail_sendername>Gabriel
Sartor</B> <<A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:gabrielsartor@gmail.com " target=_blank>gabrielsartor@gmail.com
</A>> escreveu:</SPAN>
<DIV><SPAN class=e id=q_108ed1790326fe43_1>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV> </DIV>
<DIV>Deve ter algum ATA que de, mais pelo asterisk também
dá.<BR><BR> </DIV>
<DIV><SPAN class=gmail_quote>Em 20/01/06, <B
class=gmail_sendername>Fabricio Louback</B> <<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:fabricio.vix@gmail.com " target=_blank>fabricio.vix@gmail.com
</A>> escreveu:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV><SPAN>
<DIV>Lista, boa tarde.</DIV>
<DIV> </DIV>
<DIV>Tem jeito de bloqueado dentro do ATA ligação para um determinado
ramal?</DIV>
<DIV> </DIV>
<DIV>Exemplo: Ramal 202 não fala com 200.</DIV><SPAN>
<DIV> </DIV>
<DIV>Fabricio</DIV>
<DIV> </DIV></SPAN><BR></SPAN></DIV>_______________________________________________<BR>LIsta
de discussões AsteriskBrasil.org<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:AsteriskBrasil@listas.asteriskbrasil.org"
target=_blank>AsteriskBrasil@listas.asteriskbrasil.org</A><BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil"
target=_blank>http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
</A><BR><BR>_______________________________________________<BR>Acesse o
wiki AsteriskBrasil.org:<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.asteriskbrasil.org/"
target=_blank>http://www.asteriskbrasil.org
</A><BR><BR></BLOCKQUOTE></DIV><BR><BR>_______________________________________________<BR>LIsta
de discussões AsteriskBrasil.org<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:AsteriskBrasil@listas.asteriskbrasil.org"
target=_blank>AsteriskBrasil@listas.asteriskbrasil.org</A><BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil"
target=_blank>http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
</A><BR><BR>_______________________________________________<BR>Acesse o
wiki AsteriskBrasil.org:<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.asteriskbrasil.org/"
target=_blank>http://www.asteriskbrasil.org
</A><BR><BR></BLOCKQUOTE></SPAN></DIV></DIV><BR><BR>_______________________________________________<BR>LIsta
de discussões AsteriskBrasil.org<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</A><BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil"
target=_blank>http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
</A><BR><BR>_______________________________________________<BR>Acesse o
wiki AsteriskBrasil.org:<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.asteriskbrasil.org/"
target=_blank>http://www.asteriskbrasil.org
</A><BR><BR></BLOCKQUOTE></DIV><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>LIsta de discussões
AsteriskBrasil.org<BR>AsteriskBrasil@listas.asteriskbrasil.org<BR>http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil<BR><BR>_______________________________________________<BR>Acesse
o wiki
AsteriskBrasil.org:<BR>http://www.asteriskbrasil.org</BLOCKQUOTE></BODY></HTML>