<html><head><base href="x-msg://110/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 5, 2013, at 9:55 PM, Telesurf Multimidia wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; "><div dir="ltr">Olha se isto serve<div><br></div><div><br></div><div><div>&lt;?php&nbsp;</div><div><br></div><div>$extension="9999" ; //where 9999 is the extension you would like to call</div><div><br></div><div>&nbsp;$socket = fsockopen("localhost","5038", $errno, $errstr, $timeout);&nbsp;</div><div>&nbsp;fputs($socket, "Action: Login\r\n");&nbsp;</div><div>&nbsp;fputs($socket, "UserName: admin\r\n"); &nbsp; &nbsp; // default username and password&nbsp;</div><div>&nbsp;fputs($socket, "Secret: amp111\r\n\r\n"); &nbsp;// for other Asterisk platforms plase get your username and &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // password from /etc/asterisk/manager.conf</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $wrets=fgets($socket,128);&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $wrets;&nbsp;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fputs($socket, "Action: Originate\r\n" );&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fputs($socket, "Channel: SIP/$extension\r\n" );&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fputs($socket, "Exten: $extension\r\n" );&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fputs($socket, "Context: outbound-dialing\r\n" );&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fputs($socket, "Priority: 1\r\n" );&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fputs($socket, "Async: yes\r\n\r\n" );&nbsp;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$wrets=fgets($socket,128);&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo $wrets;&nbsp;</div><div><br></div><div>?&gt;&nbsp;</div></div></div></div></span></blockquote><div><br></div><div><br></div><div><br></div><div>Caro amigo funciona perfeitamente para chamar porem nao tenho retorno do audio no navegador , o asterisk da um hangout assim que atende a chamada, eu precisaria que quando atendesse a pessoa que chamou pelo navegador escuta-se , nao precisaria falar somente escutar .&nbsp;</div><div><br></div><div><br></div><div>Obrigado&nbsp;</div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; "><div dir="ltr"><div><div><br></div><br><div>&gt; From:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:deny.santos@gmail.com">deny.santos@gmail.com</a><br>&gt; Date: Thu, 5 Sep 2013 11:59:52 -0300<br>&gt; To:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</a><br>&gt; Subject: [AsteriskBrasil] WEb2Click intranet SIP<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Bom dia amigos, estou pesquisando atras de um script em html ou php para fazer um botao numa pagina simples web onde o usuário irá clicar neste botao e o mesmo irá chamar diretamente meu ramal . Pergunto existe algo simples neste quesito visto que éssa página web só irá ser utilizada internamente . O usuário nao irá interagir somente escutar portanto nao precisara utilizar microfone , somente um fone de ouvido .<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Obrigado<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; _______________________________________________<br>&gt; KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;<br>&gt; Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;<br>&gt; Intercomunicadores para acesso remoto via rede IP. Conheça em<span class="Apple-converted-space">&nbsp;</span><a href="http://www.Khomp.com">www.Khomp.com</a>.<br>&gt; _______________________________________________<br>&gt; ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.<br>&gt; Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.<br>&gt; Channel Bank – Appliance Asterisk - Acesse<span class="Apple-converted-space">&nbsp;</span><a href="http://www.aligera.com.br">www.aligera.com.br</a>.<br>&gt; _______________________________________________<br>&gt; Para remover seu email desta lista, basta enviar um email em branco para<span class="Apple-converted-space">&nbsp;</span><a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br></div></div></div>_______________________________________________<br>KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;<br>Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;<br>Intercomunicadores para acesso remoto via rede IP. Conheça em<span class="Apple-converted-space">&nbsp;</span><a href="http://www.Khomp.com">www.Khomp.com</a>.<br>_______________________________________________<br>ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.<br>Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.<br>Channel Bank – Appliance Asterisk - Acesse<span class="Apple-converted-space">&nbsp;</span><a href="http://www.aligera.com.br">www.aligera.com.br</a>.<br>_______________________________________________<br>Para remover seu email desta lista, basta enviar um email em branco para<span class="Apple-converted-space">&nbsp;</span><a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a></div></span></blockquote></div><br></body></html>