Displaying 20 results from an estimated 4000 matches similar to: "PHP and ASterisk Manager"
2005 Jan 13
4
Manager API !!!!!!!!!
Hello all
Has anyone had any success with the Manager API ?
I am trying to check an extension status without too much luck I have
the following
<?php
$fp = fsockopen("127.0.0.1", 5038, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "Action: Login\r\n";
$out .=
2005 Dec 28
2
PHP Manager
Hi all,
I have a small problem 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,
2003 Nov 02
3
PHP Manager examples
Anyone have any example scripts in PHP that connect to the manager? I'm not really a much of a programmer so I could use boost. Once I can figure out how to get it to login properly, I'll be ok from there.
Thanks,
Kevin
_____________________________________________________________
Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com
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:
2011 Sep 02
5
how to add-edit-delete entery into asterisk conf files
Hi list,
I want ot do basic work (add-edit-delete) into asterisk configuration files,
like sip.conf, manager.conf,musiconhold.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",
2012 Aug 26
1
One leg in a conference and adjusting stream volume of other leg
Hi all,
I'm looking for some serious help. :) I couldn't find a better
description for my problem... I think it is quite complex! Here's what I
would like to achieve:
A SIP caller dials into to my Asterisk 10. He will automatically listen
to a specific MP3 stream.
Other SIP callers dial also into my Asterisk. They all will
automatically listen to the same MP3 stream.
All
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";
2009 Dec 18
2
To Asterisk AMI Gurus - Tacking issue with originate
Hello Everyone,
I am making a simple index.php file which will allow a web user to enter his
$phoneNumb, $dialNumb, and callerID ($spoofNumb) and get the call bridged.
Following is the index.php and the contents of extensions_custom.conf. When
I submit the form nothing happens. I don't even see Manager Connected msg.
Your input will be much appreciated. I am thinking I have some syntax
2006 May 23
2
Outband call from php script
Hello,
I am trying to make the following... Can someone tell me if it is
possible? Is someone willing to do it from an asterisk@home box?
1. I send an http request to asterisk@home box.
Ex: http://asterisk@home/call.php?phone=0033102030405&code=12345
2. Application will call phone number 0033102030405 (using a sip provider)
3. Application will play a pre-recorded voice prompt
4. Application
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
Hi
I need help in configuring a auto dialer system using Asterisk. I'm holding
my customers number 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.
2012 Dec 12
1
Asterisk 11 originate errors
Hi,
I'm getting errors while originating a call through AMI.
[Dec 12 21:18:35] ERROR[8661]: utils.c:1236 ast_careful_fwrite: fwrite() returned error: Broken pipe
[Dec 12 21:18:35] ERROR[8661]: utils.c:1236 ast_careful_fwrite: fwrite() returned error: Broken pipe
[Dec 12 21:18:35] ERROR[8661]: utils.c:1236 ast_careful_fwrite: fwrite() returned error: Broken pipe
Asterisk version 11.0.1
2007 Dec 06
3
XenApi
I originally posted this to the xenapi mailing list but i dont think many
are on there... here''s my question.
My first attempt at this, trying to get php to interface with
/var/run/xend/xen-api.sock (or even 127.0.0.1:9363 for that matter). I can
make a connection to both the unix socket and the inet socket and write/read
data. The problem is i always get the same responce back, also
2005 Aug 04
1
Callback question
Hi,
I'm interested in a callback feature where I can dial my Asterisk, then
hangup and Asterisk will call me back and I can then place phone calls or
whatever I want to do. And also, if I've got voicemail I want Asterisk to
call me back as well. Are there any scripts for this available?
Any help would be apreciated!
Best regards,
Christian
2009 Dec 23
1
AMI originate and PHP
Hi Guys,
I am trying to make a web form where a person is allowed to put in
$phoneNumber, $dialNumber, and $spoofNumber to make a call with spoof caller
ID. There are a few problems that I am facing with Asterisk AMI Originate
command. The reason why I want to use the darn AMI Originate is because I am
sending calls to mobile phones and I want to have some accountability and to
know if a call was
2004 Dec 19
4
SMS - how to send one
I've read quite a bit in the older mailing list posts and the wiki but
I'm missing some simple point.
1) What is required to send an SMS to a mobile outside the office given:
Channel: ZAP/1
send it to $SMS_RECIPIENT (which includes the final "extra" digit)
via
$SMS_CENTER=the national message center server for sending messages
$MESSAGE= the message text
How is the .call file
2004 Aug 06
3
Ogg response headers
> p.s. Please don't ever send HTML mail to this or any other mailing list.
roger that, outlook has its way of deciding for you sometimes :/
<p>> URL ends with ".ogg". If your script ends with ".php" (as it probably
does),
Since i got the mp3 part to work, myabe ill try adding .ogg to be parsed by
php in the
apache config, since it the winamp request ends up
2003 Nov 10
3
AGI and PHP
i've just spent the pass 2 days trying to get AGI to work with PHP;
i made a lot of silly mistakes along the way which could have been
avoided if only there were some kinda howto or samples. at the risk
of looking stupid, i decided to shared my experience in hopes that
it might help some newbie get going with PHP.
1. first order of business is to be aware of your php environment; i m
NOT
2006 Dec 18
2
AGI Help Please
List,
I finally decided to break down & start playing with AGI scripts, but for
the life of me, I can't figure out what I am doing wrong.
Below is a super simple script to run a query in mysql to see how many call
records there are for the extension calling in, then print the total in the
CLI.
This is all I get on the CLI:
-- Executing AGI("SIP/216-0baa",
2004 May 20
2
AGI/php script not working
Dear all
I am just getting started with AGI
so I wrote the following script as a simple test
but all that happens is silence before it times out and hangs up
can someone help to get me started?
yet if i use the agi-test.agi script everything works I don't see the
difference
Thanks
php -q
<?php
fputs(STDOUT 'SAY NUMBER 123 "#*"\n');
$lin =