Skip to main content

mod_dptools: env-set

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