Call Us Today! 877.742.2583




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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

About

Set a channel variable for the channel calling the application.


 Click here to expand Table of Contents

Usage

set <channel_variable>=<value>

This application may be run [[Dialplan_XML#Inline_Actions|inline]] from the XML dialplan.

Examples

<action application="set" data="effective_caller_id_name=FreeSwitch"/>
<action application="set" data="effective_caller_id_number=12345678"/>
<action application="set" data="sip_uri_to_dial=${sip_to_user}@${sip_to_host}"/>
<action application="log" data="DIALING Extension DialURI [${sip_uri_to_dial}]\n"/>
<action application="bridge" data="sofia/sip/${sip_uri_to_dial}"/>

Warning

The variables will not be set until execution. If you need it right away in a condition, run it [[Dialplan_XML#Inline_Actions|inline]].

Alternatively, the variable will be available after a transfer or execute_extension.

Setting multiple variables

To set multiple variables you can either call the set application multiple times or you can use the multiset application to set them all from a single line.

See Also

  • No labels