[AsteriskBrasil] WEb2Click intranet SIP

Telesurf Multimidia tele-surf em hotmail.com
Quinta Setembro 5 21:55:43 BRT 2013


Olha se isto serve

<?php 
$extension="9999" ; //where 9999 is the extension you would like to call
 $socket = fsockopen("localhost","5038", $errno, $errstr, $timeout);  fputs($socket, "Action: Login\r\n");  fputs($socket, "UserName: admin\r\n");     // default username and password  fputs($socket, "Secret: amp111\r\n\r\n");  // for other Asterisk platforms plase get your username and                                              // password from /etc/asterisk/manager.conf              $wrets=fgets($socket,128);               echo $wrets; 
               fputs($socket, "Action: Originate\r\n" );                fputs($socket, "Channel: SIP/$extension\r\n" );                fputs($socket, "Exten: $extension\r\n" );                fputs($socket, "Context: outbound-dialing\r\n" );                fputs($socket, "Priority: 1\r\n" );                fputs($socket, "Async: yes\r\n\r\n" ); 
               $wrets=fgets($socket,128);                echo $wrets; 
?> 

> From: deny.santos em gmail.com
> Date: Thu, 5 Sep 2013 11:59:52 -0300
> To: asteriskbrasil em listas.asteriskbrasil.org
> Subject: [AsteriskBrasil] WEb2Click intranet SIP
> 
> 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 .
> 
> 
> Obrigado 
> 
> 
> _______________________________________________
> KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;
> Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;
> Intercomunicadores para acesso remoto via rede IP. Conheça em www.Khomp.com.
> _______________________________________________
> ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
> Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
> Channel Bank – Appliance Asterisk - Acesse www.aligera.com.br.
> _______________________________________________
> Para remover seu email desta lista, basta enviar um email em branco para asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
 		 	   		  
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20130905/cccf4887/attachment.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil