Displaying 1 result from an estimated 1 matches for "amiadminpassword".
Did you mean:
aladminpassword
2010 Jun 13
0
Asterisk AMI
Hi All,
Been having problem using the AMI, i've got this PHP script:
$socket = fsockopen("1.2.3.4","5038", $errno, $errstr, $timeout);
fputs($socket, "Action: Login\r\n");
fputs($socket, "UserName: amiadmin\r\n");
fputs($socket, "Secret: amiadminpassword\r\n\r\n");
fputs($socket, "Action: Command\r\n");
fputs($socket, "Command: module reload chan_sip.so\r\n\r\n");
$wrets=fgets($socket,128);
fputs($socket, "Action: Command\r\n");
fputs($socket, "Command: module reload chan_iax2.so\r\n\r\n");
$wrets=fget...