search for: fput

Displaying 20 results from an estimated 474 matches for "fput".

Did you mean: fpu
2011 Feb 13
1
Call Files, Variable passing
Hi, I am having trouble passing variables via the call files, here is my call file via the php: fputs($oSocket, "Action: login\r\n"); fputs($oSocket, "Events: off\r\n"); fputs($oSocket, "Username: $strUser\r\n"); fputs($oSocket, "Secret: $strSecret\r\n\r\n"); fputs($oSocket, "Action: originate\r\n"); fputs($oSocket, "Channe...
2005 Dec 28
2
PHP Manager
...oblem to execute Asterisk Commands in Asterisk Manager using PHP. I am able to run all Asterisk Manager command but the problem is comming with asterisk command. here is the code i am trying to run. <?php $socket = fsockopen("localhost","5038", $errno, $errstr, $timeout); fputs($socket, "Action: Login\r\n"); fputs($socket, "UserName: 1212\r\n"); fputs($socket, "Secret: 1212\r\n\r\n"); fputs($socket, "Action: Command\r\n"); fputs($socket, "Command: reload\r\n\r\n"); #Working well fputs($socket, "Command: show cha...
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: $strSecret\r\n\r\n"); fputs($oSocket, "Action: Originate\r\n")...
2012 Dec 12
1
Asterisk 11 originate errors
...p = "127.0.0.1"; $User_str = "faheem"; $Secret_str = "f at h33m112xxxxxx"; $phoneNumb = 1234; $dialNumb = ?4567; $spoofNumb = 786; $context = "xxxxx-xxxxx"; $oSocket = fsockopen($sys_ip, 5038, $errnum, $errdesc) or die("Connection to host failed"); fputs($oSocket, "Action: login\r\n"); fputs($oSocket, "Username: $User_str\r\n"); fputs($oSocket, "Secret: $Secret_str\r\n\r\n"); fputs($oSocket, "Events: off\r\n\r\n"); fputs($oSocket, "Action: originate\r\n"); fputs($oSocket, "Channel: SIP/testTr...
2009 Dec 18
2
To Asterisk AMI Gurus - Tacking issue with originate
...lt;br><br> <div align="center"> <?php $sys_ip = "127.0.0.1"; $User_str = "testphp"; $Secret_str = "testphp"; if ($_POST['x']) { $oSocket = fsockopen($sys_ip, 5038, $errnum, $errdesc) or die("Connection to host failed"); fputs($oSocket, "Action: login\r\n"); fputs($oSocket, "Username: $User_str\r\n"); fputs($oSocket, "Secret: $Secret_str\r\n\r\n"); fputs($oSocket, "Events: off\r\n\r\n"); fputs($oSocket, "Action: originate\r\n"); fputs($oSocket, "Channel: SIP/testTru...
2011 Sep 02
5
how to add-edit-delete entery into asterisk conf files
...siconhold.conf etc. Please guide me how to configure all these files from from AMI connection. I am able to login into AMI from Login action but I want to do more task in to it. *AMI login:- * *login.php* <?php $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, 30); fputs($socket, "Action: Login\r\n"); fputs($socket, "UserName: root\r\n"); fputs($socket, "Secret: energy\r\n\r\n"); ?> *AMI command:-* Below commands are for musiconhold.conf. I want to add new MOH context into it. <?php include("login.php"); fputs($sock...
2007 Jul 08
1
Asterisk Help
...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: $strSecret\r\n\r\n"); fputs($oSocket, "Action: Originate\r\n")...
2009 Dec 23
1
AMI originate and PHP
..."127.0.0.1"; $User_str = "test"; $Secret_str = "test"; $phoneNumb = "14167777777"; $dialNumb = "14168888888"; $spoofNumb = "1416999999"; $oSocket = fsockopen($sys_ip, 5038, $errnum, $errdesc) or die("Connection to host failed"); fputs($oSocket, "Action: login\r\n"); fputs($oSocket, "Username: $User_str\r\n"); fputs($oSocket, "Secret: $Secret_str\r\n\r\n"); fputs($oSocket, "Events: off\r\n\r\n"); fputs($oSocket, "Action: originate\r\n"); fputs($oSocket, "Channel: SIP/testTru...
2005 May 26
1
Little Php question
...39;m trying to do it through telnet it works > > For this I'm using a php script I found > > <PRE> > <?php > $socket = fsockopen("192.168.1.1","5038"); > $uname = "test"; > $secret = "test"; > #$exten = 12345678; > fputs($socket, "Action: Login\r\n"); > fputs($socket, "UserName: $uname\r\n"); > fputs($socket, "Secret: $secret\r\n\r\n"); > # fputs($socket, "\r\n"); > # fputs($socket, "\r\n\r\n"); > fputs($socket, "Action: Originate\r\n"); &g...
2005 May 26
0
SV: Little Php question
...through my xlite softphone (xlite1) BTW when I'm trying to do it through telnet it works For this I'm using a php script I found <PRE> <?php $socket = fsockopen("192.168.1.1","5038"); $uname = "test"; $secret = "test"; #$exten = 12345678; fputs($socket, "Action: Login\r\n"); fputs($socket, "UserName: $uname\r\n"); fputs($socket, "Secret: $secret\r\n\r\n"); # fputs($socket, "\r\n"); # fputs($socket, "\r\n\r\n"); fputs($socket, "Action: Originate\r\n"); fputs($socket, "Channe...
2013 Feb 23
0
click2call with AMI?
...e) : $errno = 0; $errstr = 0; $callerId = $number; $oSocket = fsockopen("localhost", 5038, &$errno, &$errstr, 20); if (!$oSocket) { echo "$errstr ($errno)<br>\n"; } else { fputs($oSocket, "Action: login\r\n"); fputs($oSocket, "Events: on\r\n"); fputs($oSocket, "Username: $user\r\n"); fputs($oSocket, "Secret: $secret\r\n\r\n"); fputs($oSocket, "Action: originate\r\n");...
2005 Jul 01
1
astmanproxy
Hello, I want to recieve the output from astmanproxy in a php script. Is that possible ? I made a simple php script: <PRE> <?php $socket = fsockopen("127.0.0.1","1234", $errno, $errstr, $timeout); fputs($socket, "Action: Login\r\n"); fputs($socket, "UserName: xxx\r\n"); fputs($socket, "Secret: xxx\r\n\r\n"); fputs($socket, "Action: Command\r\n"); fputs($socket, "Command: Show Channels\r\n\r\n"); fputs($socket, "Action: Logoff\r\n\r\n");...
2007 Oct 13
0
Set up two PSTN calls and then join them
I wish to set up two PSTN calls and then connect them similar to Jajah (is this called 3pcc?). The PSTN interconnect is handled by a third party SIP provider. I can do this using the manager or call files. An example (using php) would be: fputs($oSocket, "Action: login\r\n"); fputs($oSocket, "Events: off\r\n"); fputs($oSocket, "Username: $strUser\r\n"); fputs($oSocket, "Secret: $strSecret\r\n\r\n"); fputs($oSocket, "Action: originate\r\n"); fputs($oSocket, "Channel: $strChannel\...
2007 Oct 14
1
Problem: features (from features.conf) not available if call was originated by manager API or call file
...s: 4 RetryTime: 15 WaitTime: 60 Context: doCallBackVolkerStage2 Extension: s Priority: 1 (the Context doCallBackVolkerStage2 will run DISA). and that's the PHP code orgiginating the calls: $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, $timeout); fputs($socket, "Action: Login\r\n"); fputs($socket, "UserName: webdial\r\n"); fputs($socket, "Secret: XXXXXX\r\n\r\n"); fputs($socket, "Action: Originate\r\n"); fputs($socket, "Channel: $channel\r\n"); fputs($socke...
2005 Jan 21
0
Manager API on gives the DIALSTATUS of the first picked up channel?
...ode: #################################################################### # Make call #################################################################### $socket = fsockopen($ask_db,"5038", $errno, $errstr, $timeout); if (!$socket) { echo "$errstr ($errno)<br /\n"; } else { fputs($socket, "Action: Login\r\n"); fputs($socket, "UserName: $ask_us\r\n"); fputs($socket, "Secret: $ask_pd\r\n\r\n"); fputs($socket, "Action: Originate\r\n"); // Note I have tried both using the remote SIP user throught IAX2 and Originating the call using th...
2005 Sep 06
4
PHP and ASterisk Manager
Guys, is anybody using PHP sockets to connect to the Manager and send command like "show voicemail users" for example or any other? My question is, how to parse the return info in a way that can be shown back to the user via web (discard all the manager responses not needed)? Thx in advance for any help you can provide.
2007 May 05
2
Manager API Output
..."127.0.0.1"; $strUser = "cron"; $strSecret = "1234"; $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: $strSecret\r\n\r\n"); fputs($oSocket, "Action: QueueStatus\r\n\r\n&...
2007 Jul 08
1
Early Media Handling
...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: $strSecret\r\n\r\n"); fputs($oSocket, "Action: Originate\r\n")...
2012 Mar 11
1
[PATCH] Coalesce printable characters in debug and trace messages (RHBZ#802109).
...c, stderr); - else { - switch (c) { + if (NO_ESCAPING (buf[i])) { + i0 = i; + while (i < buf_len && NO_ESCAPING (buf[i])) + ++i; + fwrite (&buf[i0], 1, i-i0, stderr); + } else { + switch (buf[i]) { case '\0': fputs ("\\0", stderr); break; case '\a': fputs ("\\a", stderr); break; case '\b': fputs ("\\b", stderr); break; @@ -163,7 +172,7 @@ guestfs___call_callbacks_message (guestfs_h *g, uint64_t event, case '\t': fputs ("\\t...
2006 Dec 29
0
PHP to call script
...= $strExten; #specify the caller id for the call $strCallerId = "Web will call <$callNumber>"; $length = strlen($strExten); if ($length == 10 && is_numeric($strExten)) { $oSocket = fsockopen($strHost, 5038, $errnum, $errdesc) or die("Connection to host failed"); fputs($oSocket, "Action: login\r\n"); fputs($oSocket, "Events: off\r\n"); fputs($oSocket, "Username: $strUser\r\n"); fputs($oSocket, "Secret: $strSecret\r\n\r\n"); fputs($oSocket, "Action: originate\r\n"); fputs($oSocket, "Channel: SIP/Telasip-gw4/$...