Displaying 16 results from an estimated 16 matches for "osocket".
Did you mean:
socket
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, "Channel: $strCha...
2012 Dec 12
1
Asterisk 11 originate errors
...an
write = system,call,agent,user,config,command,reporting,originate
///AMI script
<?php
$sys_ip = "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&quo...
2009 Dec 18
2
To Asterisk AMI Gurus - Tacking issue with originate
.../index.php
<html>
<head>
<title>ClicknCall</title>
</head>
<body><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&quo...
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($o...
2007 Jul 08
1
Asterisk Help
...in MySQL want to fetch 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($o...
2009 Dec 23
1
AMI originate and PHP
...ialnumber. Please guide
me how to do this properly. Following is the code and the context:
$sys_ip = "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&quo...
2013 Feb 23
0
click2call with AMI?
...$timeout = 20000;
$priority = "1";
$maxRetry = "2";
$pos = strpos($number, "local");
if ($number == null):
exit();
endif;
if ($pos === false) :
$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...
2007 May 05
2
Manager API Output
...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");
fputs($oSocket, "Action: Login\r\n");
fputs($oSocket, "Username: $strUser\r\n");
fputs($...
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\r\n")...
2006 Dec 29
0
PHP to call script
...#get the phone number from the posted form
$strExten = $_POST['txtphonenumber'];
$callNumber = $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");
f...
2007 Jul 08
1
Early Media Handling
...d send to an exten in 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($o...
2007 Jan 02
5
Call connected, cannot hear or speak - $20 for fix
...----------------------------------------------
#get the phone number from the posted form
$strExten = $_POST['txtphonenumber'];
#specify the caller id for the call
$strCallerId = $_POST['txtcid'];
$length = strlen($strExten);
if ($length == 11 && 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");
f...
2009 Oct 02
0
Sending a DTMF remotely with PlayDTMF problem.
...ons: 71-78
My script is:
#!/usr/bin/php -q
<?php
error_reporting (E_ALL);
set_time_limit(60);
ob_implicit_flush(false);
$ip_asterisk = "127.0.0.1";
$user_asterisk = "admin";
$pass_asterisk = "forward";
$canal = "SIP/1000-0a292360"; //hardcodeado
$oSocket = fsockopen($ip_asterisk, 5038, $errnum, $errdesc) or
die("Connection to host failed");
fputs($oSocket, "Action: login\r\n");
fputs($oSocket, "Username: $user_asterisk\r\n");
fputs($oSocket, "Secret: $pass_asterisk\r\n\r\n");
fputs($oSocket, &...
2009 Oct 03
0
Problem sending a DTMF remotely. Please need help...
...ions: 71-78
My script is:
#!/usr/bin/php -q
<?php
error_reporting (E_ALL);
set_time_limit(60);
ob_implicit_flush(false);
$ip_asterisk = "127.0.0.1";
$user_asterisk = "admin";
$pass_asterisk = "forward";
$canal = "SIP/1000-0a292360"; //hardcodeado
$oSocket = fsockopen($ip_asterisk, 5038, $errnum, $errdesc) or
die("Connection to host failed");
fputs($oSocket, "Action: login\r\n");
fputs($oSocket, "Username: $user_asterisk\r\n");
fputs($oSocket, "Secret: $pass_asterisk\r\n\r\n");
fputs($oSocket, &...
2009 Oct 06
0
Problem sending a DTMF remotely. Please need help!!!
...ions: 71-78
My script is:
#!/usr/bin/php -q
<?php
error_reporting (E_ALL);
set_time_limit(60);
ob_implicit_flush(false);
$ip_asterisk = "127.0.0.1";
$user_asterisk = "admin";
$pass_asterisk = "forward";
$canal = "SIP/1000-0a292360"; //hardcodeado
$oSocket = fsockopen($ip_asterisk, 5038, $errnum, $errdesc) or
die("Connection to host failed");
fputs($oSocket, "Action: login\r\n");
fputs($oSocket, "Username: $user_asterisk\r\n");
fputs($oSocket, "Secret: $pass_asterisk\r\n\r\n");
fputs($oSocket, &...
2009 Oct 05
1
Problem sending a DTMF remotely. Please need help!!
...ions: 71-78
My script is:
#!/usr/bin/php -q
<?php
error_reporting (E_ALL);
set_time_limit(60);
ob_implicit_flush(false);
$ip_asterisk = "127.0.0.1";
$user_asterisk = "admin";
$pass_asterisk = "forward";
$canal = "SIP/1000-0a292360"; //hardcodeado
$oSocket = fsockopen($ip_asterisk, 5038, $errnum, $errdesc) or
die("Connection to host failed");
fputs($oSocket, "Action: login\r\n");
fputs($oSocket, "Username: $user_asterisk\r\n");
fputs($oSocket, "Secret: $pass_asterisk\r\n\r\n");
fputs($oSocket, &...