[asterisk-users] Can't read environment variable

Joost Kuif | Mobillion Joost.kuif at mobillion.nl
Wed Jan 30 06:38:48 CST 2008


Hi,
 
I can't read a environment variable in a asterisk dialplan. 
When logged in as user root on the system an 'echo $HOSTNAME' gives the
hostame of the machine.
Asterisk (1.4) is started from the same console.
 
I try to read it like this:
exten => s,n,NoOp(host=${ENV(HOSTNAME)})
 
Does anyone know what i am missing?
 
 
 
Ipv een saaie e-mail een leuk videobericht? Ga naar www.KletsKoppies.nl
<http://www.kletskoppies.nl/> 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080130/96515256/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 22907 bytes
Desc: kuif_joost.gif
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080130/96515256/attachment-0001.gif 


More information about the asterisk-users mailing list