Valeu d+++, funfou que foi uma beleza.<br><br>Thanks<br><br><div class="gmail_quote">2009/11/20 Diogo Rocha Barbosa <span dir="ltr">&lt;<a href="mailto:diogorb@gmail.com">diogorb@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Faltou dizer que existem varios dialstatus:<br><br>Contains a text string signifying result of the last <a title="Asterisk cmd Dial" href="http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial" target="_blank">dial</a> attempt:
<br>
<br><ul><li> <b>ANSWER</b>: Call is answered.  A successful dial.  The caller reached the callee.
</li><li> <b>BUSY</b>: Busy signal.  The dial command reached its number but the number is busy.
</li><li> <b>NOANSWER</b>: No answer.  The dial command reached its number, the number rang for too long, then the dial timed out.
</li><li> <b>CANCEL</b>: Call is cancelled.  The dial command reached its number but the caller hung up before the callee picked up.
</li><li> <b>CONGESTION</b>: Congestion.  This status is usually a sign that the dialled number is not recognised.
</li><li> <b>CHANUNAVAIL</b>: Channel unavailable.  On SIP, peer may not be registered.
</li><li> <b>DONTCALL</b>: Privacy mode, callee rejected the call
</li><li> <b>TORTURE</b>: Privacy mode, callee chose to send caller to torture menu
</li><li> <b>INVALIDARGS</b>: Error parsing Dial command arguments (added for Asterisk 1.4.1, SVN r53135-53136)
</li></ul>Fonte: <a href="http://www.voip-info.org/wiki/view/Asterisk+variable+DIALSTATUS" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+variable+DIALSTATUS</a><br><br><div class="gmail_quote">2009/11/20 Diogo Rocha Barbosa <span dir="ltr">&lt;<a href="mailto:diogorb@gmail.com" target="_blank">diogorb@gmail.com</a>&gt;</span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">faz um gotoif como este abaixo depois de um dial para o primeiro ramal:<br><br>exten =&gt; s,n,GotoIf($[&quot;${DIALSTATUS}&quot; = &quot;CHANUNAVAIL&quot;]?RAMAL_SECUNDARIO)<br>

<br><br>Cria um exten com o nome RAMAL_SECUNDARIO<br>
<br>exten =&gt; s,n(RAMAL_SECUNDARIO),NoOp(Primeiro ramal ocupado, chamando segundo)<br>exten =&gt; s,n,Dial....<br>exten =&gt; s,n,Hangup<br><br><br><div class="gmail_quote">2009/11/20 Wendell Silva <span dir="ltr">&lt;<a href="mailto:wendbandeira@gmail.com" target="_blank">wendbandeira@gmail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>Amigos, to precisando saber o contexto de redirecionamento de chamadas caso um ramal esteja ocupado, <br>


<br>O contexto precisa verificar se o SIP/1170 esta ocupado, caso esteja ocupado mande para o meu segundo SIP disponivel,<br>
<br><br>Atentamente.<br><font color="#888888"><br>Wendell Silva Bandeira<br><br>
</font><br></div></div>_______________________________________________<br>
         <a href="http://www.voipmania.com.br" target="_blank">http://www.voipmania.com.br</a><br>
Telefone IP sem fio Gigaset A580IP por 6 x R$59,90.<br>
         Promoção por tempo limitado!<br>
_______________________________________________<br>
Lista de discussões AsteriskBrasil.org<br>
<a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org" target="_blank">AsteriskBrasil@listas.asteriskbrasil.org</a><br>
<a href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a><br></blockquote></div><br><br clear="all"><br>-- <br><font color="#888888">Diogo Rocha Barbosa<br>



</font></blockquote></div></div></div><br><br clear="all"><br>-- <br><font color="#888888">Diogo Rocha Barbosa<br>
</font><br>_______________________________________________<br>
         <a href="http://www.voipmania.com.br" target="_blank">http://www.voipmania.com.br</a><br>
Telefone IP sem fio Gigaset A580IP por 6 x R$59,90.<br>
         Promoção por tempo limitado!<br>
_______________________________________________<br>
Lista de discussões AsteriskBrasil.org<br>
<a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</a><br>
<a href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a><br></blockquote></div><br>