similar to: [OT] phpagi help

Displaying 20 results from an estimated 800 matches similar to: "[OT] phpagi help"

2005 Oct 13
1
AGI Variable problem
Hello all, I try to use a agi script to get a variable from * und put them into a script which gives me another variablke and put this in *. My problem is now it seems the var ID is empty coz i always jump into the result 0 loop. The $MSN should be in the SetCIDNum. #!/usr/bin/php -q <?php include("/var/lib/asterisk/agi-bin/phpagi.php"); $agi = new AGI(); $ID =
2010 Jul 27
2
Urgent help = RUBY & AGI
Here's something that should be easy for RUBY pro's. Here is a script: 1.times do r = $agi.exec('DIAL', SIP/voipuser&Zap/32&Zap/33&Zap/34&Zap/35) r = $agi.get_variable('DIALSTATUS') # $agi.set_variable(' WHOANSWERED
2014 Sep 23
2
read digits from the user through php agi script
hi everyone, actually i want to release an IVR system using PHPAGI API , in this IVR i want to get value from the user. I already used get_data defined in phpagi but they are not able to get the value given by the user and store it in a php variable. i tested this : $result = $agi->get_data('beep', 3000, 20); $keys = $result['result']; but every time i found in $keys variable
2005 Oct 17
1
astcc missing to bill random calls?
Hello list, I just came into a strange problem wth astcc. the trouble is astcc.agi does not bill some calls. The calls are logged in the cdr-csv/Master.csv file, but with a duration of 0, billsec of 0, an empty dstchannel, and with a lastapp field of "hangup". I suppose that astcc.agi was not able to get the answeredime variable from the SIP channel... I have added a few functions to
2012 Jan 12
1
how to set callerid in php AGI file.
Hi, I am using phpagi for agi scripting. and want to update callerid number but didn't get any success. please help me how to update PHPAGI is new for me. Below is the code which I write. #!/usr/bin/php -q <?php set_time_limit(30); //require(.phpagi.php.); include("phpagi.php"); $agi = new AGI(); //answer the call $agi-> answer();
2005 Jan 02
1
Call Queue Question
Hi, I've been fussing with this for a while now - and cannot seem to get it to work correctly - or rather as I desire it.. I'm trying to implement a 'find-me' feature in my voicemail. Basically - pressing 1 at the voicemail puts the caller into a queue. The members of the queue are my cell phone and my work DID.. I need the queue to call both numbers at the same time and wait
2005 Aug 10
8
Blank CIDName or CIDNum = "asterisk"
I am using Sipura 841 phones and Asterisk CVS-v1-0-06/14/05. Whenever a call comes in with blank CIDName or CIDNum the phone reports the respective variable as "asterisk". I can manually set the variables to whatever I want: CIDName (alpha-numeric) & CIDNum (Numeric). But if I try to make them blank, or null, or maybe throw some alpha characters into CIDNum, they get reported
2009 Aug 25
1
How to detect if the call is being answered by Voice Mail?
Hi, I am pretty new to Asterisk. I am trying to make sure some human being answers the phone not the voice mail machine. How can I programmatically identify that? Here is my Sub: sub DialPhysician { my ($self, $con, $PhysicianPhone, $call_id, $conv_id) = (@_); to_log($self, "Inside Dial Physician", 2); my $DocPhone = "1".
2006 Feb 26
11
Asterisk question
Any idea how to read an external file, grab some stuff and push it back into an Asterisk variable? I can do it the other way with: system(echo "${UNIQUEID} =>" >> /home/ast/curr_calls) but I'm a bit stumped on how to go the other way around.... much thanks, Paul Hales
2007 May 28
1
[1.2.18] Wrong steps in extensions.conf?
Hello, Sometimes, when a call comes in from the PSTN through our VoIP gateway, the information that is sent to our web page that logs calls includes the original CID name instead of the one that is we expect to be rewritten on the fly using Asterisk's LookupCIDName: ================= ;extensions.conf [internal] exten => group,1,LookupCIDName exten =>
2005 Apr 09
3
CallerID name lookup AGI script
Hi all, My VoIP provider (race.com) doesn't send name info with CallerID, so I wrote an AGI script that does the following: 1) If it's a toll free number (800|888|877|866), set the CallerID name to "TollFree Caller" 2) Use curl to look up the number in Google phonebook 3) If a business listing, set the CallerID name to business name, as is. 4) If it's a residential
2003 Dec 23
2
Fw: perl database get
i mean AGI->database_get() ----- Original Message ----- From: "Muhammad Nasim" <muhammad@telappliant.com> To: <asterisk-users@lists.digium.com> Sent: Tuesday, December 23, 2003 6:41 PM Subject: Re: [Asterisk-Users] perl database get > I've used both the syntax you have given and the perl module. AGI->getvar() > returns nothing for arguments that work from
2008 Apr 21
1
Phone notification?
Hello everybody. Is there a way how to setup asterisk to notify caller's phone? Example: I have some numbers and names in asterisk database ( cidname, cidnum), and I want to display the name of person on my phone ( which has no addressbook, but can display chars ) which I am calling to be sure that I have dialed the right number. Thank you for any answer. Andrej
2007 Aug 28
1
deadagi and billsec or answeredtime
Hello, I want to create php rate script and I'm using Deadagi. But I allways get billsec 0 , or nothing. Can you help me to solve this problem... My extension.conf: exten => _123,1,DeadAgi(rate.php) exten => _123,2,hangup And my simple test php script rate.php #!/usr/local/bin/php -q <?php include_once (dirname(__FILE__)."/phpagi.php"); $AGI = new AGI();
2011 Mar 05
2
Help Asterisk / API / Perl
Hi i want use the API on my asterisk 1.6, but i have a small problems : In extension, i start it : exten => _X.,3,AGI(My-Script.agi) The perl agi file are started without problems but i want get into this script a lot of variable: Type (SIP or IAX) src (from cdr) but that's don't work: use Asterisk::AGI; use lib "/var/lib/asterisk/agi-bin"; $AGI = new
2006 Mar 20
4
simple perl-agi - where's the error?
Hello! I'm trying to setup a perl-deadagi, but my perl skills lack. can someone tell me why the following code doesn't work: #!/usr/bin/perl use Asterisk::AGI; $AGI = new Asterisk::AGI; $dialstring = $AGI->get_variable("DIALSTRING"); $res = $AGI->exec("DIAL $dialstring"); the asterisk output says: AGI Rx << GET VARIABLE DIALSTRING AGI Tx >> 200
2011 Jan 07
1
AGI->Macro w/Agruments
OK, I need to dial a macro from AGI and needs to pass an argument. Ok, I found an bug report, but it was stated "un fixable?" really after 5 years? https://issues.asterisk.org/view.php?id=2470 I found this email in the archive, but no solution other then the dodgy work around? http://www.mail-archive.com/asterisk-users at lists.digium.com/msg85048.html I have
2004 Nov 24
1
vm notification no longer contains calling party
Hello all, I recently updated * to 1.0.x from a CVS version downloaded in July, at the request of BroadVoice. Every since the upgrade, the email notifications that a voicemail has been left only contains CIDName and not CIDNum. Here's an example: "Just wanted to let you know you were just left a 0:06 long message (number 3) in mailbox 1 from PECK JASON , on Tuesday, November 16,
2012 Feb 11
1
Asterisk perl AGI confusing variables
Hello all, I'm struck with a very strange problem today. I've an AGI with some code subroutine snippet as follows: sub enable_sbc($) { my $carrier = shift; my $tmp = substr($carrier,1); my $jkh = $tmp; $server_port = $ast_agi->get_variable("SIPPEER($jkh,port)"); $ser_ip = $ast_agi->get_variable("SIPPEER($tmp,ip)");
2007 Jun 15
2
combining AGI with dialplans
On 2007-05-15 Tony Mountifield wrote (wrt using AGI scripts to dial out): > Can't comment on this one, as I never use AGI to dial. > My AGIs just set the context, extension and priority, > and exit to the dialplan to do any dialling. (http://article.gmane.org/gmane.comp.telephony.pbx.asterisk.user/185537) I would like to do this, but I am having trouble figuring out how. I have