"Normal" Variables
Most FreeSWITCH variables are indicated by the syntax ${varname}. Variables can be created, assigned and re-assigned. Actually, assigning a value to a variable creates it, if it does not already exists. If it exists, it reassign it to the new value.
<action application="set" data="mystring='Rehan Allahwala'"/>
<action application="set" data="mystring2=SuzanneBowen"/>
<action application="set" data="mystring2=${mystring}"/>
The application "set" assign variables. Here we see how it works in dialplan "actions". When we create or reassign a variable, we use its name (without the ${} syntax). Inside the "data" argument of the "set" action, we use the equal sign (=) to separate the variable name from its (new) value. The single ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access