[Asterisk-Users] variable in extension.conf

James Golovich james at wwnet.net
Tue Mar 11 11:58:27 MST 2003



On Tue, 11 Mar 2003, Tilghman Lesher wrote:

> On Tuesday 11 March 2003 08:44, Steven Critchfield wrote:
> > On Tue, 2003-03-11 at 02:29, Rattana BIV wrote:
> > > I try to detect if an user who use Netmeeting is connected
> > > or not. I think in order to do that, Netmeeting-user open a
> > > web page (in PHP) et press the button Connect or Disconnect
> > > and the PHP set the Environnement variable which will be
> > > proceeded in extension.conf
> > >
> > > So i need Environnement Variable, I have test it with :
> > > s,1,SetVar,toto=$VARENV where VARENV is my environnement
> > > variable but toto not take the value. perhaps should I try
> > > toto=${VARENV} or toto=${$VARENV}.
> >
> > You can not pass information that way. The environment
> > variable for your web server is JUST for your web server. It
> > will not be available to asterisk. Your webserver should not
> > run as root, nor as the same user as asterisk. Your best bet
> > would be to get netmeeting to register to asterisk when it is
> > opened, then asterisk will know the user is available.
> 
> You might be able to write an interface in PHP to the manager
> port and pass commands (perhaps to set database entries?).
> 

Thats a good idea, currently with the manager interface you can execute
cli commands so that would be easily done.  I was thinking of adding
native manager astdb commands, but I haven't had the time to get to it
recently.

James





More information about the asterisk-users mailing list