<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Asterisk dispertador</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EstiloDeEmail18
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EstiloDeEmail19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=PT-BR link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Opa Eric..<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Entra no asterisk:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>asterisk –r<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>E dá um load chan_oss.so<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Depois tenta dar o comando dial 164<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=1 color=navy face=Verdana><span style='font-size:
9.0pt;font-family:Verdana;color:navy'>Atenciosamente, <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Verdana><span style='font-size:
9.0pt;font-family:Verdana;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><st1:PersonName ProductID="Rodrigo de Oliveira Neves"
style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"
tabIndex="0" w:st="on"><b><font size=1 color=navy face=Verdana><span
style='font-size:9.0pt;font-family:Verdana;color:navy;font-weight:bold'>Rodrigo
de Oliveira Neves</span></font></b></st1:PersonName><b><font size=1
color=navy face=Verdana><span style='font-size:9.0pt;font-family:Verdana;
color:navy;font-weight:bold'><o:p></o:p></span></font></b></p>
<p class=MsoNormal><font size=1 color=navy face=Verdana><span style='font-size:
9.0pt;font-family:Verdana;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Verdana><span style='font-size:
9.0pt;font-family:Verdana;color:navy'><a href="http://www.dido.eti.br">www.dido.eti.br</a>
– <a href="mailto:dido@dido.eti.br">dido@dido.eti.br</a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Verdana><span style='font-size:
9.0pt;font-family:Verdana;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Verdana><span style='font-size:
9.0pt;font-family:Verdana;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><b><font size=1 color="#339966" face=Verdana><span
style='font-size:8.0pt;font-family:Verdana;color:#339966;font-weight:bold'>Atenção!
</span></font></b><font size=1 color="#339966" face=Verdana><span
style='font-size:8.0pt;font-family:Verdana;color:#339966'>Antes de imprimir
lembre-se de sua responsabilidade e compromisso com o meio ambiente.</span></font><font
size=1 color="#339966" face=Verdana><span style='font-size:8.0pt;font-family:
Verdana;color:#339966'><o:p></o:p></span></font></p>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>De:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asteriskbrasil-bounces@listas.asteriskbrasil.org
[mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org] <st1:PersonName
ProductID="Em nome de Eric Anderson" w:st="on"><b><span style='font-weight:
bold'>Em nome de </span></b><st1:PersonName w:st="on">Eric Anderson</st1:PersonName></st1:PersonName><br>
<b><span style='font-weight:bold'>Enviada em:</span></b> terça-feira, 29 de
janeiro de 2008 12:53<br>
<b><span style='font-weight:bold'>Para:</span></b> <st1:PersonName w:st="on">asteriskbrasil@listas.asteriskbrasil.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Assunto:</span></b> Re: [AsteriskBrasil] RES:
Asterisk dispertador</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=blue face=Verdana><span style='font-size:
10.0pt;font-family:Verdana;color:blue'>asterisk:/home/groo # asterisk -rx
"dial 164"<br>
-- Remote UNIX connection<br>
No such command 'dial' (type 'help' for help)<br>
Verbosity is at least 3<br>
asterisk:/home/groo #</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=blue face=Verdana><span style='font-size:
10.0pt;font-family:Verdana;color:blue'>=P</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=blue face=Verdana><span style='font-size:
10.0pt;font-family:Verdana;color:blue'>Eric<o:p></o:p></span></font></p>
</div>
<blockquote style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>
<div>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>----- Original Message ----- <o:p></o:p></span></font></p>
</div>
<div style='font-color:black'>
<p class=MsoNormal style='background:#E4E4E4'><b><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;font-weight:bold'>From:</span></font></b><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> <a
href="mailto:dido@dido.eti.br" title="dido@dido.eti.br">Rodrigo de Oliveira
Neves</a> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><b><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'>To:</span></font></b><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> <a
href="mailto:asteriskbrasil@listas.asteriskbrasil.org"
title="asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</a>
<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><b><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'>Sent:</span></font></b><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> Tuesday, January
29, 2008 10:54 AM<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><b><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'>Subject:</span></font></b><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> [AsteriskBrasil]
RES: Asterisk dispertador<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Você pode fazer o seguinte, <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Faça um script em bash que execute o
comando através do comando: asterisk –rx “dial NUMERO”<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Não esqueça de verificar se o módulo
chan_oss.so está carregado, caso não esteja: asterisk –rx “load
chan_oss.so”<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>O contexto que o comando dial utiliza pelo
asterisk cli é definido no arquivo: oss.conf<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Daí quanto você discar algum número, você
manda cair em 1 contexto tal.. que vai executar tudo o que você pedir.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>E como o arquivo é um arquivo bash, você
pode agendar no cron sem problemas!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=1 color=navy face=Verdana><span style='font-size:
9.0pt;font-family:Verdana;color:navy'>Atenciosamente, <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Verdana><span style='font-size:
9.0pt;font-family:Verdana;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><st1:PersonName ProductID="Rodrigo de Oliveira Neves"
tabIndex="0"
style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"
w:st="on"><b><font size=1 color=navy face=Verdana><span style='font-size:9.0pt;
font-family:Verdana;color:navy;font-weight:bold'>Rodrigo de Oliveira Neves</span></font></b></st1:PersonName><b><font
size=1 color=navy face=Verdana><span style='font-size:9.0pt;font-family:Verdana;
color:navy;font-weight:bold'><o:p></o:p></span></font></b></p>
<p class=MsoNormal><font size=1 color=navy face=Verdana><span style='font-size:
9.0pt;font-family:Verdana;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Verdana><span style='font-size:
9.0pt;font-family:Verdana;color:navy'><a href="http://www.dido.eti.br">www.dido.eti.br</a>
– <a href="mailto:dido@dido.eti.br">dido@dido.eti.br</a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Verdana><span style='font-size:
9.0pt;font-family:Verdana;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Verdana><span style='font-size:
9.0pt;font-family:Verdana;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><b><font size=1 color="#339966" face=Verdana><span
style='font-size:8.0pt;font-family:Verdana;color:#339966;font-weight:bold'>Atenção!
</span></font></b><font size=1 color="#339966" face=Verdana><span
style='font-size:8.0pt;font-family:Verdana;color:#339966'>Antes de imprimir
lembre-se de sua responsabilidade e compromisso com o meio ambiente.<o:p></o:p></span></font></p>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabIndex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>De:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asteriskbrasil-bounces@listas.asteriskbrasil.org
[mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org] <st1:PersonName
ProductID="Em nome de Israel Junior" w:st="on"><b><span style='font-weight:
bold'>Em nome de </span></b>Israel Junior</st1:PersonName><br>
<b><span style='font-weight:bold'>Enviada em:</span></b> terça-feira, 29 de janeiro
de 2008 09:52<br>
<b><span style='font-weight:bold'>Para:</span></b> <st1:PersonName w:st="on">asteriskbrasil@listas.asteriskbrasil.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Assunto:</span></b> [AsteriskBrasil] Asterisk
dispertador</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Colegas
da lista,</span></font> <o:p></o:p></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>
</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
Arial'>Estou precisando fazer algo semelhante ao conseito de um dispertador no
asterisk. Preciso fazer um script em shell, agenda-lo atraves do cron, e quando
der determinada hora ele abra um canal com o asterisk, faça um dial para um
determinado numero de telefone, quando atender toque um audio predeterminado no
canal, ao final do audio feche o canal e o script se encerra.</span></font><o:p></o:p></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>
</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
Arial'>Bom é por ai o que eu preciso, alguem na lista tem alguma ideia de como
eu consegui abri um canal de comunicação com o asterisk para que eu possa dar o
dial?</span></font><o:p></o:p></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>
</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
Arial'>Desde já eu agradeço a ajuda.</span></font> <br>
<font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Atenciosamente.</span></font> <o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Israel
Ovidio R. Junior</span></font> <o:p></o:p></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>_______________________________________________<br>
Compre uma camiseta da AsteriskBrasil.org!<br>
http://www.voipmania.com.br<br>
== VoIPMania.com.br ==<br>
<br>
_______________________________________________<br>
LIsta de discussões AsteriskBrasil.org<br>
AsteriskBrasil@listas.asteriskbrasil.org<br>
http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil<o:p></o:p></span></font></p>
</blockquote>
</div>
</body>
</html>