<div dir="ltr">Tem como fazer desta forma:<br><br>O seu script PHP vai precisar saber qual é a sua conta SIP para poder procurar a sua ligação, então você tem que passar este param também.<br><br>Feito isso é só exeutar o comando &quot;Status&quot; do AMI, procurar qual o canal que está conectado com a sua conta SIP e depois utilizar o comando &quot;Redirect&quot;, redirecionando este canal para, por exemplo,&nbsp; o canal Local/65@contexto<br>
<br>Feito<br><br>Gabriel Ortiz<br><br><br><br><br><div class="gmail_quote">2008/9/30 Carlos Fernando Brandao Miguez <span dir="ltr">&lt;<a href="mailto:carlos@sfacil.com.br">carlos@sfacil.com.br</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;">
Voce pode usar o evento link pelo manager um bom projeto para olharem<br>
como exemplo é o monast podem achalo no sourceforge, ele terá este<br>
exemplo que voce procura passando por um proxy em pyton feito pelo autor<br>
do projeto. Todo o projeto é feito em php com o proxy em pyton.<br>
<br>
Rafael Puga escreveu:<br>
<div class="Ih2E3d">&gt; Dá uma olhada no código-fonte dele então =)<br>
&gt;<br>
&gt;<br>
&gt; 2008/9/30 Eduardo Assis - Pro Redes &lt;<a href="mailto:eassis@linuxmail.org">eassis@linuxmail.org</a><br>
</div>&gt; &lt;mailto:<a href="mailto:eassis@linuxmail.org">eassis@linuxmail.org</a>&gt;&gt;<br>
<div class="Ih2E3d">&gt;<br>
&gt; &nbsp; &nbsp; O Duro que o FOP tem um esquema que vc arrasta a ligação para<br>
&gt; &nbsp; &nbsp; outro ramal.<br>
&gt;<br>
&gt; &nbsp; &nbsp; Com certeza é algum comando do asterisk, pois ele desliga do ramal<br>
&gt; &nbsp; &nbsp; e manda para o outro.<br>
&gt;<br>
&gt; &nbsp; &nbsp; Abraços.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &gt; ----- Original Message -----<br>
&gt; &nbsp; &nbsp; &gt; From: &quot;Eduardo Assis - Pro Redes&quot; &lt;<a href="mailto:eassis@linuxmail.org">eassis@linuxmail.org</a><br>
</div><div class="Ih2E3d">&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:eassis@linuxmail.org">eassis@linuxmail.org</a>&gt;&gt;<br>
&gt; &nbsp; &nbsp; &gt; To: <a href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</a><br>
</div><div><div></div><div class="Wj3C7c">&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</a>&gt;<br>
&gt; &nbsp; &nbsp; &gt; Subject: [AsteriskBrasil] Captura de Ligação Corrente<br>
&gt; &nbsp; &nbsp; &gt; Date: Tue, 30 Sep 2008 04:50:08 +0800<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Como seria possivel ?<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Imagine que estou em uma ligação e eu clico em um Link de um PHP no<br>
&gt; &nbsp; &nbsp; &gt; Asterisk e ele pegaria minha ligação e transferia para determinado<br>
&gt; &nbsp; &nbsp; &gt; ramal que está no link.<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Exe:<br>
&gt; &nbsp; &nbsp; &gt; Link do site no Asterisk:<br>
&gt; &nbsp; &nbsp; &gt; <a href="http://IP/programa.php?ramal=65" target="_blank">http://IP/programa.php?ramal=65</a><br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Clicando nesse link ele transferia a ligação que estou para o<br>
&gt; &nbsp; &nbsp; ramal 65.<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Fazendo com que meu ramal desligue e a ligação seja transferida.<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Abraços.<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; =<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; --<br>
&gt; &nbsp; &nbsp; &gt; Powered by Outblaze<br>
&gt; &nbsp; &nbsp; &gt; _______________________________________________<br>
&gt; &nbsp; &nbsp; &gt; Compre uma camiseta da AsteriskBrasil.org!<br>
&gt; &nbsp; &nbsp; &gt; <a href="http://www.voipmania.com.br" target="_blank">http://www.voipmania.com.br</a><br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Acesse o canal IRC de discussão sobre Asterisk em Português<br>
&gt; &nbsp; &nbsp; &gt; Brasileiro na rede Freenode.net: #asterisk-br<br>
&gt; &nbsp; &nbsp; &gt; _______________________________________________<br>
&gt; &nbsp; &nbsp; &gt; Lista de discussões AsteriskBrasil.org<br>
&gt; &nbsp; &nbsp; &gt; <a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</a><br>
</div></div>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</a>&gt;<br>
<div class="Ih2E3d">&gt; &nbsp; &nbsp; &gt; <a href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a><br>
&gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; =<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; --<br>
&gt; &nbsp; &nbsp; Powered by Outblaze<br>
&gt; &nbsp; &nbsp; _______________________________________________<br>
&gt; &nbsp; &nbsp; Compre uma camiseta da AsteriskBrasil.org!<br>
&gt; &nbsp; &nbsp; <a href="http://www.voipmania.com.br" target="_blank">http://www.voipmania.com.br</a><br>
&gt;<br>
&gt; &nbsp; &nbsp; Acesse o canal IRC de discussão sobre Asterisk em Português<br>
&gt; &nbsp; &nbsp; Brasileiro na rede Freenode.net: #asterisk-br<br>
&gt; &nbsp; &nbsp; _______________________________________________<br>
&gt; &nbsp; &nbsp; Lista de discussões AsteriskBrasil.org<br>
&gt; &nbsp; &nbsp; <a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</a><br>
</div>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</a>&gt;<br>
<div class="Ih2E3d">&gt; &nbsp; &nbsp; <a href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Grato,<br>
&gt; Rafael Puga<br>
&gt;<br>
&gt; <a href="http://whitesight.wordpress.com/" target="_blank">http://whitesight.wordpress.com/</a><br>
&gt; &quot;Dados olhos suficientes, todos os erros são triviais.&quot;<br>
</div>&gt; ------------------------------------------------------------------------<br>
<div><div></div><div class="Wj3C7c">&gt;<br>
&gt; _______________________________________________<br>
&gt; Compre uma camiseta da AsteriskBrasil.org!<br>
&gt; <a href="http://www.voipmania.com.br" target="_blank">http://www.voipmania.com.br</a><br>
&gt;<br>
&gt; Acesse o canal IRC de discussão sobre Asterisk em Português Brasileiro na rede Freenode.net: #asterisk-br<br>
&gt; _______________________________________________<br>
&gt; Lista de discussões AsteriskBrasil.org<br>
&gt; <a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</a><br>
&gt; <a href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a><br>
<br>
_______________________________________________<br>
Compre uma camiseta da AsteriskBrasil.org!<br>
<a href="http://www.voipmania.com.br" target="_blank">http://www.voipmania.com.br</a><br>
<br>
Acesse o canal IRC de discussão sobre Asterisk em Português Brasileiro na rede Freenode.net: #asterisk-br<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>
</div></div></blockquote></div><br></div>