<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=921262112-30012008><FONT face=Arial
size=2><SPAN class=899470413-30012008>Maybe...</SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=921262112-30012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=921262112-30012008><FONT face=Arial
size=2>exten => s,n,NoOp(<SPAN
class=899470413-30012008>SET(</SPAN>host=${ENV(HOSTNAME)<SPAN
class=899470413-30012008>)</SPAN>})</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=921262112-30012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=921262112-30012008><SPAN
class=899470413-30012008><FONT face=Arial
size=2>?</FONT></SPAN></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Joost
Kuif | Mobillion<BR><B>Sent:</B> 30 January 2008 12:39<BR><B>To:</B>
asterisk-users@lists.digium.com<BR><B>Subject:</B> [asterisk-users] Can't read
environment variable<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=921262112-30012008>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=921262112-30012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=921262112-30012008>I can't read a
environment variable in a asterisk dialplan. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=921262112-30012008>When logged
in as user root on the system an 'echo $HOSTNAME' gives the hostame of
the machine.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=921262112-30012008>Asterisk (1.4) is
started from the same console.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=921262112-30012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=921262112-30012008>I try to read it
like this:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=921262112-30012008>exten =>
s,n,NoOp(host=${ENV(HOSTNAME)})</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=921262112-30012008><FONT face=Arial size=2>Does anyone know
what i am missing?</FONT></SPAN></DIV>
<DIV><SPAN class=921262112-30012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV align=left><IMG src="http://www.mobillion.nl/email/kuif_joost.gif"></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><SPAN
style="FONT-SIZE: 10pt; COLOR: #004080; FONT-STYLE: italic">Ipv een saaie
e-mail een leuk videobericht? Ga naar</SPAN><I><FONT color=red size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: red; FONT-STYLE: italic">
</SPAN></FONT></I><I><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-STYLE: italic; FONT-FAMILY: Arial"><A
title=http://www.kletskoppies.nl/ href="http://www.kletskoppies.nl/"><FONT
title=http://www.kletskoppies.nl/ face="Trebuchet MS" color=red><SPAN
title=http://www.kletskoppies.nl/><SPAN
title=http://www.kletskoppies.nl/><SPAN title=http://www.kletskoppies.nl/
style="COLOR: red; FONT-FAMILY: 'Trebuchet MS'"><SPAN
title=http://www.kletskoppies.nl/>www.KletsKoppies.nl</SPAN></SPAN></SPAN></FONT></SPAN></A></SPAN></FONT></I></DIV>
<DIV> </DIV></BLOCKQUOTE></BODY></HTML>