[Asterisk-Users] PHP Manager examples
Olle E. Johansson
oej at edvina.net
Mon Nov 3 00:36:59 MST 2003
CW_ASN wrote:
> Here is my example. I'm using a lot of times a day.
>
> <?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);
>
> ?>
Thank you!
Added to http://www.voip-info.org/tiki-index.php?page=Asterisk+manager+API
/Olle
More information about the asterisk-users
mailing list