[Asterisk-Users] GotoIf number exists in file. How can i do this?
Morgan Gilroy
morgan at telappliant.com
Wed Feb 8 08:08:04 MST 2006
The quickest way to do this would be
Print "SETVAR INFILE TRUE\n";
But your better off looking at one of the PHP AGI interface scripts on voip-info and doing..
$AGI->SetVar('INFILE','TRUE');
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Arne Morten Johansen
Sent: 08 February 2006 14:50
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: 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 at lists.digium.com [mailto:asterisk-users-bounces at 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 at lists.digium.com [mailto:asterisk-users-bounces at 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/393e6198/attachment.htm
More information about the asterisk-users
mailing list