[asterisk-users] [asterisk-user] Can't get hostname on asterisk dialplan by ENV()

Mark Deneen mdeneen at gmail.com
Thu Apr 21 14:45:01 CDT 2011


On Thu, Apr 21, 2011 at 3:23 PM, Steve Edwards
<asterisk.org at sedwards.com> wrote:
> On Thu, 21 Apr 2011, RAJNIKANT VANZA wrote:
>
>> Can't get hostname environment variable on asterisk dialplan.
>
> 1) Is HOSTNAME in the Asterisk process's environment? What does executing:
>
>        tr '\000' '\n' < /proc/$(cat /var/run/asterisk.pid)/environ
>

This is /var/run/asterisk/asterisk.pid on my system.

I use runit to manage the asterisk process, and the chpst program
allows fine control over environment and other limits.

-M



More information about the asterisk-users mailing list