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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to