Hostname in global variables

Hi All

I am using Asterisk-1.6…
Is there a way, i can set Host name Dynamically in the Global section of extension.conf… i need to use the hostname in my dialplan, and i don’t want to change the dialplan when the hostname changes…

some thing like…
[globals]
HOST_ID=’/bin/hostname’ ;; (it has to be unix command)

Any clue, how to do this…

Regards
Nischal…

You can create an agi script to set it.