similar to: How to pass variable back and forth from dialplan to php file?

Displaying 20 results from an estimated 10000 matches similar to: "How to pass variable back and forth from dialplan to php file?"

2009 Jun 04
3
PHP/AGI/SetVar Issue
Is there a limitation to the number of variables you can set from a PHP agi script? I have a simple example and I can't get it to let me set more than 1. I am pretty sure I am just missing something, but I've searched all over an can't find the answer. Here is the extensions.conf part: exten => _XXXXXXXXXX,1,AGI,diallocal.agi exten => _XXXXXXXXXX,n,NoOp(${ISLOCALCONTEXT})
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
2011 Feb 14
1
Asterisk Call File using Local Channel not passing Variable back to Dialplan
Hi Everyone, I am trying to pass a variable using the .call files but it turns out blank. Can someone please point out what might be wrong here: */tmp/spool-file.sh* *----------------------------------------------------------------------* echo "Channel: Local/s at callback_leg*1*/n CallerID: \"Call-back\" <123456> MaxRetries: 0 RetryTime: 10 WaitTime: 45 Context:
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
2010 Jun 14
2
calling peer from server
Hi everybody, This is the console output of the asterisk server. debian-te410*CLI> sip set debug peer 2002 SIP Debugging Enabled for IP: 172.26.48.113:5061 I have a sofphone with user 2002 registered on the server on the ip 113. I am trying to place a call to the sofphone on this ip. I have written a simple php script which utilises the exec_dial function inbuilt in phpagi.php file. I have
2010 Jun 19
2
Using SetVar with System() is it possible?
Hi Guys, Is it possible to harvest the output of system into a SetVar(variable)? exten => s,n,SetVar(var=system(*asterisk -rx "sip show channels" | grep -c "(ulaw)")* * * *??? any problem with the syntax? * * * * * *Thanks,* * * -------------- next part -------------- An HTML attachment was scrubbed... URL:
2008 Oct 05
5
asterisk, phpagi and singleton
Hello, I've this situation: 300+ simultaneous calls and dialplan like this: exten => _X.,1,Answer() exten => _X.,2,DEADAGI(check_status.php) exten => _X.,3,Dial(SIP/other/${NUMBER}) exten => _X.,4,Hangup exten => h,1,DEADAGI(cdr.php) When project is running , I had a lot of defunct php scripts (I've exceed mysql connection limits and so on, deadagi help a bit). The
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
2014 Nov 18
2
AGI and AMI in PHP -- What's current?
I'm writing some code that needs to access AMI in PHP. (I'll probably be doing AGI later as well.) I'm looking at phpagi (2.20), but it hasn't been updated since 2010 and appears to be a bit behind current Asterisk -- No event handler for event 'fullybooted'. What PHP framework/library are you using -- and why? -- Thanks in advance,
2006 Dec 19
26
Match a Numer - then continue with dialplan
Anyone know if there's a way to match a dialplan extension, execute some code, say set a variable, and then continue with the dialplan? I want to set a variable when the dialplan flows beyond a certain context. This would be a great feature. Doug.
2005 Mar 15
1
Not ringing phone that are in use
We have a small number of phones, when a call comes in we want all the phones that aren't in use to ring. Is there a simple way to test and see what phones are in use then ring the other phones? I tried some code like this: [zap] exten => s,1,Answer exten => s,2,ChanIsAvail(${DERRICK}) exten => s,3,SetVar,"EVERYONE=${DERRICK}" exten => s,4,ChanIsAvail(${DON}) exten
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 =
2003 Jun 24
1
Problems with # and extensions.
I get the following message when I dial 74#. Does anyone have any ideas on what might be going on? If I don't require numbers to be terminated with # everything works as expected, but you have to wait for the digit timeout, of course. MESSEGE: DEBUG[1150520624]: File pbx.c, Line 1683 (ast_pbx_run): Oooh, got something to jump out with ('#')! -- Invalid extension '#' in
2007 Jan 15
3
php agi - first phrase truncated, all others fine
I have the following code. When I call the extension, it either ignores the first "Hello there everyone", or says "hello" and moves on sometime stoping before it finishes hello. The rest of the text reads fine. Anyone else have this issue?? Thanks! require('/var/lib/asterisk/agi-bin/phpagi.php'); $agi = new AGI(); $agi->answer();
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();
2006 Dec 27
1
php agi trixbox help
I have this code which was taken from the phpagi project page along with the following in extensions_conf and the output from the asterisk CLI. When I call the 311 extension, I does nothing then hangs up. What am I doing wrong?? ----php code------------ #!/usr/local/bin/php -q <?php set_time_limit(30); require('phpagi.php'); $agi = new AGI(); $agi->answer(); $cid =
2005 Aug 04
1
Getting asterisk to work with callthroughs?
Hi, Firstly, what I'm trying to do is: * Get asterisk to pick up a SIP call via a DID * Prompt the user * When the user puts in a number, go to IAX.conf and route it according to what I've specified there, i.e Least Cost Routing, etc. I've set-up something similar to what I've found online, but it doesn't work! Asterisk doesn't pick up the call at all..... :( The files
2005 May 25
15
PHP/AGI Problem
Hi I am currently developing a IVR application using PHP/AGI. I am using the PHPAGI class at http://phpagi.sourceforge.net/ to handle the commuication with my *. The application basically asks a caller to enter in some information which is then processed and a answer is read back out to them. I want the application to loop back to the beginning after giving the answer so they can try another
2011 Jan 20
2
Accessing a 'user' variable via. dialplan.
Hi, I know you can access various sip variables via 'Set(sstatus=${SIPPEER(201,status)})' (for example) to get the status of the sip user - but what about variables? I have a user that has setvar=123456 in their users.conf (sip.conf if you prefer). I can read it with a 'sip show peer 201' - but that gives everything and parsing that isn't really an option. Anyone know how
2004 Jul 06
2
AGI - No audio
All, I am currently working with the AGI interface using PHP, I have it working to execute commands that do not require prompts to be played, but when I execute an AGI command to play a prompt or stream a prompt all i get is silence (although I can see in the log where it says the correct name for the prompt to be played). I have looked through the wiki and googled extensively, so if something