asterisk y script en php

Me gustaria programar algunos scripts en php para acceder e interactuar con asterisk, el caso es que leyendo sobre el tema, he llegado al punto en que creo que me hace falta instalar y configurar algo para que un server externo con PHP aloje el script e interactue con asterisk

El caso es que me gustaria algo tan simple como esto desde un servidor con php que interactue con asterisk

<?php

$socket = fsockopen("192.168.0.53","5038", $errno, $errstr, $timeout);
fputs($socket, "Action: Login\r\n");
fputs($socket, "UserName: admin\r\n");
fputs($socket, "Secret: blabla\r\n\r\n");

fputs($socket, "Action: Command\r\n");
fputs($socket, "Command: reload\r\n\r\n");
$wrets=fgets($socket,128);

?>

hasta ahora siempre me tira un unable to connect a dicha ip y puerto de asterisk. A pesar de que he hecho las pruebas con telnet desde el mismo servidor externo que aloja el script en php y si puedo acceder via puerto 5038 e interactuar con asterisk

Alguna idea??? Muchas gracias!!

Gucci online shop. We Provide


Gucci online shop. We Provide Discount Gucci Bags,Gucci Handbags,Gucci Shoes and Gucci Wallets.
gucci bags
gucci handbags
gucci jewelry
Cheap and Discount Gucci Handbag or Wallet Gucci Handbags is your best Gucci Bag provider
gucci sale
gucci shoes
cheap gucci shoes
gucci shoes sale
gucci shoesn,cheap gucci shoes, Gucci established itself as a luxury fashion label in the clothing, accessories and jewelry field. he quality of their fabrics and materials made Gucci the symbol of Made in Italy.