Skip to main content

Global Variable local ip v4

Click here to expand Table of Contents

local_ip_v4

This global variable is automatically set by FreeSWITCH. You may override this global variable in vars.xml

Usage:

<!-- Set local_ip_v4 to hard-coded IP -->
<X-PRE-PROCESS cmd="set" data="local_ip_v4=192.168.0.68"/>

<!-- Set local_ip_v4 to eth1 address -->
<X-PRE-PROCESS cmd="exec-set" data="local_ip_v4=ip addr show eth1 | awk '/inet /{print $2}' | head -n 1 | cut -d '/' -f 1"/>

See also:

Comments:

The variables on this document have been reconciled into the Variables Master List. Posted by ryharris at Feb 07, 2018 14:00