Maybe...
 
exten => s,n,NoOp(SET(host=${ENV(HOSTNAME))})
 
?

________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joost Kuif
| Mobillion
        Sent: 30 January 2008 12:39
        To: [email protected]
        Subject: [asterisk-users] Can't read environment variable
        
        
        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/> 
         

<<kuif_joost.gif>>

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

Reply via email to