Displaying 4 results from an estimated 4 matches for "secret_str".
2012 Dec 12
1
Asterisk 11 originate errors
...s
[faheem]
secret =f at xxxxxx
permit=127.0.0.1/255.255.255.255
read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
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, "...
2009 Dec 18
2
To Asterisk AMI Gurus - Tacking issue with originate
...************************************
*
/var/www/html/clickncall/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...
2009 Dec 23
1
AMI originate and PHP
...ed at the same
time but since it takes time to pick ones phone context already goes over
it's announcement for putting in spoof number and dialnumber. 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,...
2006 May 26
2
Plugin Question
...the following problems:
1) I have a configuration script as follows
require ''mongrel''
config = Mongrel::Configurator.new :host => "127.0.0.1" do
listener do
uri "/downloads", :handler =>
plugin(''/handlers/securedownload'',{:secret_string => "secret_string"})
end
run
end
When I try ''listener :port => 3000 do'' I get a bind (port already in
use) error.
The script above however starts up but http://localhost:3000/downloads
doesn''t start up the handler. The process method of my h...