Session getVariable

From FreeSWITCH Wiki
Jump to: navigation, search

Get Variable on the specified channel.

To get the list of variable name you can use, you can display it using the info app:

<action application="info" />

Synopsis

getVariable(variable)
  • variable - string containing variable name

Example

Lua:
local caller_id = session:getVariable("caller_id_number")
JavaScript:
var caller_id = session.getVariable("caller_id_number")

See Also