Call Us Today! 877.742.2583




Page tree
Skip to end of metadata
Go to start of metadata

About

Assign the value of a system environment variable to a FreeSWITCH global variable.


 Click here to expand Table of Contents

Usage

env-set <global_variable>=<$environment_variable>

<X-PRE-PROCESS cmd="env-set" data="my_global_var=$MY_ENVIRONMENT_VARIABLE"/>


Examples

<X-PRE-PROCESS cmd="env-set" data="switch_instance=$HOSTNAME"/>
<action application="log" data="CRIT ${switch_instance} handling call"/>


See Also