search for: strhost

Displaying 6 results from an estimated 6 matches for "strhost".

2007 May 05
2
Manager API Output
Hi, Is there any way that I can store my manager API output that is: My question is that is there any why using that I can get the QueueStatus and store the result in some text file for further processing. <?php $strHost = "127.0.0.1"; $strUser = "cron"; $strSecret = "1234"; $oSocket = fsockopen($strHost, 5038, $errnum, $errdesc) or die("Connection to host failed");...
2007 Jul 06
1
Asterisk Manager
Hi this is my code for * manager: $oSocket = fsockopen($strHost, 5038, $errnum, $errdesc) or die("Connection to host failed"); fputs($oSocket, "Action: login\r\n"); fputs($oSocket, "Username: $strUser\r\n"); fputs($oSocket, "Secret:...
2007 Jul 08
1
Asterisk Help
...ch 10 numbers one time and dial if gets connected and answered by customer wants to play a sequence of message . Please help . I've tried here is my code to place calls but in this I see no of failure calls are more than 50%. so please advise. $oSocket = fsockopen($strHost, 5038, $errnum, $errdesc) or die("Connection to host failed"); fputs($oSocket, "Action: login\r\n"); fputs($oSocket, "Username: $strUser\r\n"); fputs($oSocket, "Secret:...
2006 Dec 29
0
PHP to call script
...box, then you can use #127.0.0.1 as the host IP. Otherwise, you will need to edit the following #line in manager.conf, under the Admin user section: #permit=127.0.0.1/255.255.255.0 #change to: #permit=127.0.0.1/255.255.255.0,xxx.xxx.xxx.xxx ;(the ip address of the server this page is running on) $strHost = "127.0.0.1"; #specify the username you want to login with (these users are defined in /etc/asterisk/manager.conf) #this user is the default AAH AMP user; you shouldn't need to change, if you're using AAH. $strUser = "admin"; #specify the password for the above user $...
2007 Jan 02
5
Call connected, cannot hear or speak - $20 for fix
...box, then you can use #127.0.0.1 as the host IP. Otherwise, you will need to edit the following #line in manager.conf, under the Admin user section: #permit=127.0.0.1/255.255.255.0 #change to: #permit=127.0.0.1/255.255.255.0,xxx.xxx.xxx.xxx ;(the ip address of the server this page is running on) $strHost = "127.0.0.1"; #specify the username you want to login with (these users are defined in /etc/asterisk/manager.conf) #this user is the default AAH AMP user; you shouldn't need to change, if you're using AAH. $strUser = "admin"; #specify the password for the above user $...
2007 Jul 08
1
Early Media Handling
...my dial plan that plays an automated message but some time without answering even it goes to my exten. How can I handle early media in Asterisk that is I want only when user answer the call it should goto my specified extension. my php script: $oSocket = fsockopen($strHost, 5038, $errnum, $errdesc) or die("Connection to host failed"); fputs($oSocket, "Action: login\r\n"); fputs($oSocket, "Username: $strUser\r\n"); fputs($oSocket, "Secret:...