Re: [asterisk-users] phpagi packages

2017-06-29 Thread Dovid Bender
Tzfarir, We use it still. What changes were made since https://github.com/welltime/phpagi/ (which seems to have been last updated 4 years ago)? On Thu, Jun 29, 2017 at 6:49 AM, Tzafrir Cohen wrote: > Hi all, > > We packaged phpagi for Centos 7 and Debian 8 (though nothing > version-specific i

Re: [asterisk-users] Phpagi action based on outbound call user response

2013-04-19 Thread Lenz Emilitri
I am not sure about PHP AGI, but in general via AGI you can monitor the state of the call and so you can know when the call is over. l. 2013/4/17 Rahul R > Hello List, > > In PHPAGI, I'm using the Astrisk Manager function send_request() to > originate an outbound call. I want to execute the rem

Re: [asterisk-users] phpagi

2008-03-19 Thread Erik Anderson
On Wed, Mar 19, 2008 at 12:48 PM, Carlos Carvalhar <[EMAIL PROTECTED]> wrote: > > How do I install phpagi? > > http://phpagi.sourceforge.net/ Since phpagi is really just a set of php libraries, all you need to do to install is dump it somewhere and add that location to your php include_path. -Eri

Re: [asterisk-users] phpagi

2008-03-19 Thread Geraint Lee
You don't install it as such, you just include the files from your php scripts. On 19/03/2008, Carlos Carvalhar <[EMAIL PROTECTED]> wrote: > > Hello, > > > > How do I install phpagi? > > http://phpagi.sourceforge.net/ > > > > I couldn't find any info about setup in that site, and I couldn't email

Re: [asterisk-users] PhpAgi call generation

2007-07-31 Thread Nitesh Divecha
Thanks Nasir, That helped alot... Cheers, Nitesh Nasir Iqbal wrote: > Oh, > > you need Dial application instead of origination. > > so no need to AGI Script simply add > > > the dialplan called for ".call" should look like this > > exten => yourexten,1,BackGround(your_menu_ivr) > exten => youre

Re: [asterisk-users] PhpAgi call generation

2007-07-31 Thread Nasir Iqbal
Oh, you need Dial application instead of origination. so no need to AGI Script simply add the dialplan called for ".call" should look like this exten => yourexten,1,BackGround(your_menu_ivr) exten => yourexten,n,WaitExten() exten => 1,1,Dial(SIP/xo-out/$supervisor_num) ;for Supervisor exten =

Re: [asterisk-users] PhpAgi call generation

2007-07-31 Thread Nitesh Divecha
Thanks Nasir, By putting "'Exten'=> your_extensions_here" it will create a new channel to that extension, correct? What I want to do is to join two channels... Join the User A channel which is active with supervisor. Cheers, Nitesh Nasir Iqbal wrote: > Hi Nitesh, > > you are missing Extensi

Re: [asterisk-users] PhpAgi call generation

2007-07-31 Thread Nasir Iqbal
Hi Nitesh, you are missing Extension try with $call = $asm->send_request('Originate', array('Channel'=>"SIP/xo-out/$supervisor_num", 'Context'=>'default', 'Exten'=> your_extensions_here, 'Priority'=>1, 'Callerid'=>$cid)); or

Re: [asterisk-users] PhpAgi call generation

2007-06-22 Thread Anthony Francis
Nitesh Divecha wrote: > Thanks Lee, > > That really helped me to get my project started... I am in process of > developing IVR based Notification System which is going to integrate > with my IVR based Time clock system. > > Notifications will be based on, if an employee is late to clock in, > ev

Re: [asterisk-users] PhpAgi call generation

2007-06-22 Thread Nitesh Divecha
Thanks Lee, That really helped me to get my project started... I am in process of developing IVR based Notification System which is going to integrate with my IVR based Time clock system. Notifications will be based on, if an employee is late to clock in, event should trigger and generate a .c

Re: [asterisk-users] PhpAgi call generation

2007-06-19 Thread Lee Jenkins
Nitesh Divecha wrote: > Is there any info on how to create .call files with some examples? And > where to place this file? And how to initiate it..? > > Thanks man... > > Cheers, > Nitesh > > > > Christopher Robinson wrote: >> That should be pretty easy to do with a .call file. The context t

Re: [asterisk-users] PhpAgi call generation

2007-06-19 Thread Nitesh Divecha
Is there any info on how to create .call files with some examples? And where to place this file? And how to initiate it..? Thanks man... Cheers, Nitesh Christopher Robinson wrote: > That should be pretty easy to do with a .call file. The context that > you drop your called party off to will

Re: [asterisk-users] PhpAgi call generation

2007-06-19 Thread Christopher Robinson
This should help: http://www.voip-info.org/wiki/index.php?page=Asterisk+channels Channel can be anything that is valid on your system. I use Local because it allows me to better control the outbound call. nik600 wrote: > many thanks to all. > > I am interested to originate the call using phpAGI

Re: [asterisk-users] PhpAgi call generation

2007-06-19 Thread Christopher Robinson
That should be pretty easy to do with a .call file. The context that you drop your called party off to will play the sounds and do the transfer. So really you need to concentrate on creating that context, the .call files are very easy to generate. Nitesh Divecha wrote: Finally, this is wha

Re: [asterisk-users] PhpAgi call generation

2007-06-19 Thread nik600
many thanks to all. I am interested to originate the call using phpAGI with this code. connect()) { $call = $asm->send_request('Originate', array('Channel'=>"LOCAL/[EMAIL PROTECTED]", 'Context'=>'called_party_context', 'Exten'=>'899',

Re: [asterisk-users] PhpAgi call generation

2007-06-19 Thread Nitesh Divecha
Finally, this is what I was looking for... to generate a call. I have been working on my Time Clock application, where an employee will call into the system using his cellphone to clock in and clock out his hours. And it works perfect... Now I was looking for an option where or if an employee i

Re: [asterisk-users] PhpAgi call generation

2007-06-19 Thread Rob Schall
Since its all part of a program I would do it using the AGI like Christopher was talking about. However, I think this would be a 2 program issue. First, you would have a program that would check a database or whatever to see who is late and make the call to the supervisior. That call I would th

Re: [asterisk-users] PhpAgi call generation

2007-06-19 Thread Rob Schall
Channel: Zap/g2/5052 MaxRetries: 2 RetryTime: 60 WaitTime: 30 Context: internal Extension: 8855 Priority: 1 Application: Festival Data: This, is, a, message, from, UCS, Call, One, Server Status. The, server, %s, is, currently, not, responding, on, ports, 80. Once you have this in a file with a

Re: [asterisk-users] PhpAgi call generation

2007-06-19 Thread nik600
sorry, can you post me an example of a call file? thanks On 6/19/07, Rob Schall <[EMAIL PROTECTED]> wrote: > An alternative to this method might be to create a call file and place > it in the spool. Have it either dial and connect the caller to an > extension that plays that sound, or just execute

Re: [asterisk-users] PhpAgi call generation

2007-06-19 Thread Christopher Robinson
I've done this many times, also used the .call files. If you don't need your application to initiate the call the .call files are the better way to go, otherwise it's a bit too much file management overhead. Here's some working code on our end. In this case the Channel is actually a context w

Re: [asterisk-users] PhpAgi call generation

2007-06-19 Thread Rob Schall
An alternative to this method might be to create a call file and place it in the spool. Have it either dial and connect the caller to an extension that plays that sound, or just execute that sound itself. Right now, we use this functionality for a server scanner. When it detects a particular port d

Re: [asterisk-users] phpagi - Event "On Hangup"

2007-02-12 Thread Moises Silva
Usually you should use the manager interface for that. On 2/12/07, nik600 <[EMAIL PROTECTED]> wrote: Do you know if it is possible to handle some events with phpagi? For example: On hangup (doesn't care if by caller or by asterisk) do something Thanks _

Re: [asterisk-users] phpagi transfer example

2007-01-15 Thread Time Bandit
Ok, how can i do the transfer from the caller to $keys ? Probably by using a goto : http://phpagi.sourceforge.net/phpagi2/docs/phpAGI/AGI.html#goto hth ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRI

Re: [asterisk-users] PHPAGI example usage of input.php

2006-11-15 Thread Tom Vile
It does error when I run it from the CLI with error: sh: -p: command not found I am assuming that it is referring to this line in phpagi.php shell_exec("{$this->config['cepstral']['swift']} -p audio/channels=1,audio/sampling-rate=$frequency $voice -o $fname.wav -f $fname.txt"); On 11/15/06, Ja

Re: [asterisk-users] PHPAGI example usage of input.php

2006-11-15 Thread Jay Moore
1) Try giving it an extension (say .gsm) and seeing if that works. Make sure you change both the file and your script. 2) Does the rest of the script work? If you run './test.php', do you get any errors? Jay Tom Vile wrote: There are no file extensions. It is just -rw-r--r-- 1 asteris

Re: [asterisk-users] PHPAGI example usage of input.php

2006-11-15 Thread Tom Vile
There are no file extensions.  It is just-rw-r--r--   1 asterisk asterisk   32 Nov 15 12:52 swift_082da06a422be49e3a475925d9fc50e6-rw-r--r--   1 asterisk asterisk    7 Nov 15 12:52 swift_6fc422233a40a75a1f028e11c3cd1140 -rw-r--r--   1 asterisk asterisk   13 Nov 15 12:52 swift_80339585692b0188288da1

Re: [asterisk-users] PHPAGI example usage of input.php

2006-11-15 Thread Jay Moore
Are you including the file extension? Jay Tom Vile wrote: I am trying to get the example input.php working from PHPAGI but it will not playback the letters that I put in because of this error: Nov 15 14:25:22 WARNING[18678] file.c: File /tmp/swift_f87b365372c500c76e497087ac7e470a does not exi

Re: [asterisk-users] phpagi problem

2006-07-18 Thread VoIP Street
Mauricio Mantilla wrote: Yeah, I wrote it on a different file and it worked, i guess there was some hidden character in the script that was messing it up. Thank you anyway, Mauricio Mantilla On 7/17/06, *Time Bandit* <[EMAIL PROTECTED] > wrote: > #!/usr/bin/ph

Re: [asterisk-users] phpagi problem

2006-07-18 Thread Mauricio Mantilla
Yeah, I wrote it on a different file and it worked, i guess there was some hidden character in the script that was messing it up.Thank you anyway,Mauricio MantillaOn 7/17/06, Time Bandit <[EMAIL PROTECTED]> wrote: > #!/usr/bin/php -q>  > require('/var/lib/asterisk/agi-bin/phpagi.php');> $agi = new

Re: [asterisk-users] phpagi problem

2006-07-17 Thread Time Bandit
#!/usr/bin/php -q say_digits(62410); $cid = $agi->get_variable("dir"); $agi->say_digits($cid); ?> I'm getting this error: parse error, unexpected '=' on line 6 I don't know why you're getting this error, it parse correctly here. But one thing is that the line "$agi->say_digits($cid);" won'

RE: [Asterisk-Users] phpagi

2006-01-19 Thread Mark Ackroyd
> $dbconn = mysql_connect("127.0.0.1","vladimir","vladimir"); kinda looks ok, but I would seriously consider putting as much code as you can into the dialplan rather than forking a PHP script for all the user interaction. For example, I use asterisk to handle loads of fax 2 email accounts. on 4

RE: [Asterisk-Users] PHPAGI

2006-01-19 Thread Mark Ackroyd
> i have installed [EMAIL PROTECTED] i need install more soft? odbc etc...?, i > think if > [EMAIL PROTECTED] > have inside the phpmyadmin i dont need more installed, this is true? I don't use [EMAIL PROTECTED] , but if phpmyadmin is installed you be pretty sure that you have all you need to con

Re: [Asterisk-Users] PHPAGI

2006-01-19 Thread Vladimir Montealegre
ROTECTED]> To: "'Asterisk Users Mailing List - Non-Commercial Discussion'" Sent: Thursday, January 19, 2006 9:27 AM Subject: RE: [Asterisk-Users] PHPAGI Here is a simple mysql snippet in php. Straight from the PHP manual. http://www.php.net $link = mysql_connect('HOST&#x

RE: [Asterisk-Users] PHPAGI

2006-01-19 Thread Mark Ackroyd
Here is a simple mysql snippet in php. Straight from the PHP manual. http://www.php.net $link = mysql_connect('HOST', 'UID', 'PASS') or die ("Could not connect"); mysql_select_db('DATABASE_NAME') or die ("Could not select database"); $query = "SELECT * FROM table"; $result = mysql_query($query) o

Re: [Asterisk-Users] PHPAGI daemon/background task?

2006-01-16 Thread Moises Silva
yep, i think that i can take some time to look at your code. Please contact me off-list, im available usually only early in the morning or in the night. Regards MSN: sism82 at hotmail dot com On 1/16/06, Dan Austin <[EMAIL PROTECTED]> wrote: > > Hum, i still have not a clear idea about where it

RE: [Asterisk-Users] PHPAGI daemon/background task?

2006-01-16 Thread Dan Austin
> Hum, i still have not a clear idea about where it gets stuck. Lets see. I may have glossed over this detail, I am using the php-asmanager.php library/script. > 1. Once a minut, check to see if any meetme conferences are active. > This is done by connecting each minute to the manager, or it stay

Re: [Asterisk-Users] PHPAGI daemon/background task?

2006-01-16 Thread Moises Silva
To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] PHPAGI daemon/background task? > > im not familiar with phpagi-asmanager.php, but i guess thats because > asterisk has nothing to send you and you are using blocking mode > sockets, hence socket_

RE: [Asterisk-Users] PHPAGI daemon/background task?

2006-01-14 Thread Dan Austin
Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] PHPAGI daemon/background task? im not familiar with phpagi-asmanager.php, but i guess thats because asterisk has nothing to send you and you are using blocking mode sockets, hence socket_read() is blocking. phpagi

Re: [Asterisk-Users] PHPAGI daemon/background task?

2006-01-13 Thread Moises Silva
im not familiar with phpagi-asmanager.php, but i guess thats because asterisk has nothing to send you and you are using blocking mode sockets, hence socket_read() is blocking. phpagi-asmanager.php give us more pointings about what you want to do and we will be able to help you. Currently im develo

Re: [Asterisk-Users] PHPAGI problems

2005-05-24 Thread Kyle Hagan
Try exten => 8661231234,1,agi,/some/directory/dtmf.php Kyle Hariharan Gopalan wrote: Hi Here is part of my extensions.conf exten => 8661231234,1,agi,dtmf.php When I dial this number, this is what I see in my asterisk console: -- Accepting AUTHENTICATED call from 198.22.67.70: > reque

RE: [Asterisk-Users] PHPAGI problems

2005-05-24 Thread Jay Milk
Try to run the script from the command line -- it should be hash-banged, so you should be able to run it from the shell. When you run it like that, you should see error messages. > -Original Message- > From: Hariharan Gopalan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 24, 2005 3:54 P

RE: [Asterisk-Users] PHPAGI problems

2005-05-24 Thread Brian C. Fertig
First off.. Just do a: exten => 12345,1,AGI(dtmf) And try running your php from the console and see if you get debug issues. .o---o. Brian Fertig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Re: [Asterisk-Users] phpagi DIAL command not working

2004-02-18 Thread Tony Buser
Welp I had no luck trying to get this to work. However, I came up with a workaround that isn't as clean, but at least it works. :) Here's what I did: In my agi script: $agi->agi_exec("SET VARIABLE PHONENUM $strPhone"); $agi->agi_exec("SET PRIORITY 20"); Then in extensions.conf: ex