Arne Morten Johansen
2006-Feb-08 07:50 UTC
SV: [Asterisk-Users] GotoIf number exists in file. How can i do this?
Oh. So how can I do this? If I write something in PHP, how do I make it output to an Asterisk variabel? I need to set a variable in asterisk to TRUE or FALSE based on the result of the PHP-script. ________________________________ Fra: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] P? vegne av Morgan Gilroy Sendt: 8. februar 2006 15:28 Til: Asterisk Users Mailing List - Non-Commercial Discussion Emne: RE: [Asterisk-Users] GotoIf number exists in file. How can i do this? It will probably be easier to write an AGI script to do this, I cant think of anything in the dialplan to do this. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Arne Morten Johansen Sent: 08 February 2006 13:38 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] GotoIf number exists in file. How can i do this? Hi there. I currently have a GotoIf statement that goes to a special extension priority if the CID match with one of the numbers in my "list" of CIDs. The way I've done it now is by multiple OR operators. There must be a better way. Anyone got some suggestions? This is basicly what I want. "If CID Exists in $File, goto s,10". So when I want to add a new CID I just add a new line in a txt file. Thanks, Arne Morten Johansen -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060208/d6954e64/attachment.htm
Time Bandit
2006-Feb-08 08:26 UTC
[Asterisk-Users] GotoIf number exists in file. How can i do this?
> Oh. So how can I do this? > > If I write something in PHP, how do I make it output to an Asterisk > variabel? I need to set a variable in asterisk to TRUE or FALSE based on the > result of the PHP-script.You can use PHPAGI, this will make your life easier http://phpagi.sourceforge.net/ hth
Gonzalo Servat
2006-Feb-08 16:34 UTC
[Asterisk-Users] GotoIf number exists in file. How can i do this?
On 2/8/06, Arne Morten Johansen <amj@avio.no> wrote:> > > > Oh. So how can I do this? > > If I write something in PHP, how do I make it output to an Asterisk > variabel? I need to set a variable in asterisk to TRUE or FALSE based on the > result of the PHP-script.You can find the answer to this question together with a few example PHP scripts at: http://www.voip-info.org/wiki-Asterisk+AGI+php Cheers, Gonzalo
Possibly Parallel Threads
- GotoIf number exists in file. How can i do this?
- SV: callback script?
- SV: How does asterisk behave when multiple phonesare logged in on a single SIP/account?
- Developing a call centre app. Communication with asterisk?
- Fromstring when sending e-mail on recieved voicemail