__Variables
About
This page is a reference to all FreeSWITCH variables.
This page parallels the __Channel Variables) page. Consult both while the pages are being reconciled.
Variable References
You will see references to variables in the dialplan of the form ${variable}
as well as $${variable}
.
$${variable}
is evaluated once and becomes a static reference to the variable and is therefore suitable for variables that do not change, such as the domain of the FreeSWITCH server. That is why you see $${domain}
referenced so frequently in the Vanilla dialplan examples and as pre-processor variables which are evaluated once at startup.
${variable}
is evaluated during each pass through the dialplan, so it is used for variables that are expected to change, such as the ${destination_number}
or ${sip_to_user}
fields.
absolute_codec_string
Sets the absolute codec string to use (nothing will be appended).
Usage:
<action application="set" data="absolute_codec_string=PCMU,GSM"/>
<action application="bridge" data="sofia/gateway/myprovider/5551231234"/>
Per-leg Dialstring:
<action application="bridge" data=[leg_timeout=60,origination_caller_id_number=918039251,
absolute_codec_string=^^:PCMA:PCMU]sofia/gateway/gateway1/${destination_number}|[leg_timeout=60,
absolute_codec_string=PCMA]sofia/gateway/gateway2/${destination_number}"/>
Global Dialstring:
<action application="bridge" data="{absolute_codec_string=PCMA}sofia/gateway/gateway2/${destination_number}"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_opal | mod_opal.cpp | 10567 |
mod_sofia | sofia_glue.c | 12700 |
core | switch_ivr_originate.c | 12817 |
accountcode
Account code is mostly an arbitrary value that you can assign on a per leg basis. An important feature of accountcode is that if its value matches one of the CDR CSV templates defined in cdr_csv.conf.xml then that CDR template will be used when generating a CSV CDR.
Usage:
<action application="set" data="accountcode=custom"/>
acl_token
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_sofia | sofia.c | 9056 |
alert_info
Add an Alert-Info Header like Snom and other Phones need for Ring or Ringtone informations.
Usage:
Load an external Wav Rington on all Calls.
<action application="export" data="alert_info=http://192.168.181.5/sounds/ctu.wav"/>
Use the External Ringer (Change the Ringtone for the alert-external, alert-group and alert-internal in Snom under Setup > Preferences > Alert-Info Ringer)
<action application="export" data="alert_info=http://www.notused.com;info=alert-external;x-line-id=0"/>
(Set under See also: [http://wiki.snom.com/Web%5FInterface/V8/Preferences/Alert-Info%5FRinger](http://wiki.snom.com/Web%5FInterface/V8/Preferences/Alert-Info%5FRinger)
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_sofia | sofia.c | 6350 |
mod_sofia | sofia_glue.c | 4819 |
answer_epoch
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 6917 |
answer_stamp
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 7750 |
answer_uepoch
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 8686 |
answermsec
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 3546 |
answersec
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 3546 |
answerusec
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 3546 |
api_after_bridge
Execute an API command after bridge.
Usage:
Paging to PA System via Portaudio (w/ chime before and after announcement)
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_bridge.c | 7885 |
api_hangup_hook
Execute an API command on hangup.
Usage:
<action application="set" data="api_hangup_hook=jsrun cleanup.js ${uuid}"/>
See also:
- session_in_hangup_hook
- api_reporting_hook - like api_hangup_hook but after reporting state (both honor session_in_hangup_hook)
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_core_state_machine.c | 7885 |
api_on_answer
Execute an api (not an application) when the called party answers. To set an application, use execute_on_answer.
Usage:
<action application="export" data="nolocal:api_on_answer=uuid_broadcast ${uuid} beep.wav both"/>
Or,
<action application="bridge" data="{api_on_answer='uuid_broadcast ${uuid} beep.wav both'}sofia/gateway/provider/5551231234"/>
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 15207 |
api_on_media
Execute a FreeSWITCH API when the far end sends media, i.e. ringing or 183/SDP.
The command is executed only on channels that are not already answered. Just use export or export with nolocal: prefix to make sure it is executed when b-leg answers.
In the second usage example below, we have originated an outbound call to a local extension, where we will wait 30 seconds without ignoring media. In this case we use 'set' and not 'export'.
Usage:
<action application="export" data="nolocal:execute_on_media=lua incrInUse.lua ${uuid}"/>
Implemented By:
Module Name | Source File | Last Updated |
---|---|---|
Core | switch_channel.c | 850f2e3 |
api_on_startup
Execute an api (not an application) when the switch starts up.
Usage:
<X-PRE-PROCESS cmd="set" data="api_on_startup=sofia recover"/>
Implemented By:
Module Name | Source File | Last Revised | date |
---|---|---|---|
core | switch_channel.c | e164b76caf0a47b6b33891eea80b1928067c9dd1 | 2011-12-15 |
asr_intercept_dtmf
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_async.c | 8912 |
auto_answer_destination
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_sofia | sofia.c | 10525 |
auto_hunt
Setting auto_hunt to "true" will alter the normal sequential processing of dialplan extensions. auto_hunt will cause the dialplan to 'jump' to a specific extension name, not processing any other extension. The destination_number and extension name must be the same in order for this to work. The condition must still match, but the extension name is the operative element.
In the example below, there is no way to reach extension 333 without auto_hunt.
Usage: In vars.xml:
<X-PRE-PROCESS cmd="set" data="auto_hunt=true"/>
Example:
<extension name="do_xfer">
<condition field="destination_number" expression="^.*$">
<action application="set" data="auto_hunt=true"/>
<action application="transfer" data="333"/>
</condition>
</extension>
<extension name="333">
<condition field="destination_number" expression="^333$">
<action application="info"/>
</condition>
</extension>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dialplan_xml | mod_dialplan_xml.c | 12144 |
billmsec
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 6917 |
billsec
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 6917 |
billusec
Description needed! Please contribute one.
Usage:bypass_media
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 6917 |
bind_meta_key
Selects the meta key to use with the mod_dptools: bind_meta_app dialplan application.
Usage:
<action application="set" data="bind_meta_key=#"/>
Implemented By:
bridge_answer_timeout
Timeout in seconds how long to tolerate a bridge that is in early media without being answered (can be set on either leg). Useful when you want to pass early media from b-leg to a-leg but also use ${call\_timeout}
. This will consider the bridge failed if a 200 OK is not received before the bridge_answer_timeout.
Usage:
<action application="set" data="bridge_answer_timeout=20"/>
tags bridge answer timeout ringer ring timer voicemail
bridge_channel
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_bridge.c | 6537 |
bridge_early_media
By default this is false. Set to true, this makes the bridge use the live audio from the b-leg as ringback to the a-leg. Setting bridge_early_media=true means the early media will be buffered.
Consider setting this to true if you are using a loopback channel to execute a bridge to an endpoint which sends back early media and the received early media's audio is degraded. The buffering resulting from setting bridge_early_media=true brings with it a higher resource cost (than bridge_early_media=false), but may improve the sound quality of the early media.
Usage: Set bridge_early_media before the bridge, or in the dial string for the bridge.
bridge_epoch
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 3492 |
bridge_filter_dtmf
Setting this variable to true will prevent DTMF digits received on this channel when bridged from being sent to the other channel.
Usage:
You can set this variable in the dialplan before answering or inline as part of a dialstring.
Example dialplan usage:
<action application="set" data="bridge_filter_dtmf=true" />
Example dialstring usage:
{bridge_filter_dtmf=true}sofia/default/blah@baz.com
bridge_generate_comfort_noise
Generates comfort noise when bridged session is receiving discontinuous audio frames (silence suppression).
When greater than 0, this variable is set to the divisor of the silence generating function. 400 or 1400 are common values set, but you may experiment with other choices to pick one that sounds best.
When true, FreeSWITCH will pick a default comfort noise value.
When -1, FreeSWITCH will transmit silence without comfort noise. (As of 2012-10-25)
Usage:
Leg A wants a continuous stream of audio, but leg B is using silence suppression:
<action application="set" data="bridge_generate_comfort_noise=true"/>
<action application="bridge" data="sofia/user/1000"/>
Leg A uses silence suppression, but leg B wants a continuous stream of audio:
<action application="bridge" data="{bridge_generate_comfort_noise=true}sofia/user/1000"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_bridge.c | 9543 |
bridge_hangup_cause
This is set to the hangup cause of the last bridged B leg of the call. If you have continue_on_fail=true and hangup_after_bridge=false you can do checks on this to see what "really" happened to the call. You can for instance do execute_extension after bridge, do a condition check on ${bridge_hangup_cause}
to see if it contains MEDIA_TIMEOUT and then trigger a redial of the call or transfer to a cell phone. For a list of hangup causes, see Hangup Causes.
Usage:
<action application="log" data="1 B-leg hangup cause: ${bridge_hangup_cause}"/>
bridge_pre_execute_aleg_app
Command or api to be executed on the A leg before bridging the two channels.
Note: this is executed AFTER the call is setup but BEFORE the media (audio) is bridged.
Usage:
Example needed! Please contribute one
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_bridge.c | 8108 |
bridge_pre_execute_aleg_data
Arguments to be used with bridge_pre_execute_aleg_app.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_bridge.c | 8108 |
bridge_pre_execute_bleg_app
Command or api to be executed on the B leg before bridging the two channels. Useful when originating a call from the event socket, CLI or XML-RPC.
It could for instance be used to do a HTTP GET with a script or mod_http to the IP address of a Snom phone to increase the ringer volume if you need to do a wakeup call.
Can also be used to bind a dtmf to an app on the b leg of a call so that it can survive a transfer.
Note: this is executed AFTER the call is setup but BEFORE the media (audio) is bridged.
Usage:
<action application="set" data="bridge_pre_execute_bleg_app=bind_meta_app"/>
<action application="set" data="bridge_pre_execute_bleg_data=1 a s att_xfer::sofia/profile/destination"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_bridge.c | 8108 |
bridge_pre_execute_bleg_data
Arguments to be used with bridge_pre_execute_bleg_app
Usage:
<action application="set" data="bridge_pre_execute_bleg_app=bind_meta_app"/> <action application="set" data="bridge_pre_execute_bleg_data=1 a s att_xfer::sofia/profile/destination"/>
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_bridge.c | 8108 |
bridge_stamp
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 3443 |
bridge_terminate_key
Allows you to bind a key and the bridge will terminate if the dtmf matches
Usage: you can set bridge_terminate_key on either or both legs which will end the bridge, if it hangs up or not is decided by hangup_after_bridge=false or what is next in your dp
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dptools | mod_dptools.c | 12479 |
bridge_to
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_commands | mod_commands.c | 7421 |
core | switch_ivr.c | 5738 |
core | switch_ivr_async.c | 4798 |
core | switch_ivr_bridge.c | 12671 |
bridge_uepoch
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 3494 |
bridge_uuid
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_bridge.c | 9603 |
bypass_media
When set, all the media address of the far end of the originating leg will be passed to the far end of the new call leg and vice versa so the signaling goes through FreeSWITCH but the media is point-to-point.
Usage:
<action application="set" data="bypass_media=true"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dptools | mod_dptools.c | 12479 |
mod_esf | mod_esf.c | 5115 |
bypass_media_after_bridge
This is useful for bypassing media after bridging has happened.
Usage:
<action application="set" data="bypass_media_after_bridge=true"/>
It could be useful for an already established channel and doing a later bypass.
uuid_setvar <uuid> bypass_media_after_bridge true
uuid_broadcast <uuid> bridge::<endpoint>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dptools | mod_dptools.c | 12479 |
mod_sofia | sofia.c | 9591 |
core | switch_ivr_bridge.c | 9591 |
cache_speech_handles
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_play_say.c | 5876 |
call_clientcode
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_sofia | sofia.c | 6987 |
call_timeout
Controls how long (in seconds) to ring the B leg of a call when using the bridge application. The timeout is set on the A leg, and applies to any bridges that happen in the channel.
If you need to set a timeout on a call that has no A leg, use originate_timeout
If you need to set a timeout with enterprise bridging/originate, use originate_timeout
If you need to set the timeout on a per leg basis (i.e., a different timeout for each destination), use the leg_timeout variable.
Default Value: 60
Usage:
<action application="set" data="call_timeout=20"/>
Notes:
If a call timeout is to be specified against a group_call() list, use the following format:
<action application="bridge" data="{originate_timeout=24}${group_call(sales@$${domain})}"/>
Beware that if you are not using {ignore_early_media=true} call_timeout is no longer applicable as soon as early media signal is received.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dialplan_asterisk | mod_dialplan_asterisk.c | 6208 |
mod_dptools | mod_dptools.c | 10917 |
core | switch_ivr_originate.c | 9120 |
core | switch_swig.c | 4795 |
caller_id
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 6917 |
caller_id_name
The caller id name set by the inbound call, not a real variable. Practically it is read only.
caller_id_number
The caller id phone number set by the inbound call, not a real variable. Practically it is read only. From sofia.c, the values used (in precedence) are the user parts from: P-Preferred-Identity, P-Asserted-Identity, Remote-Party-ID, and the From header.
campon
Controls whether camping is enabled or not.
Default: false
Usage:
<action application="set" data="campon=true"/>
<action application="bridge" data="sofia/gateway/myprovider/5551231234"/>
campon_announce_sound
File to play back after the first bridge fails (rg to announce what key to press to skip to fallback extension)
Default: none
Usage:
<action application="set" data="campon=true"/>
<action application="set" data="campon_stop_key=1"/>
<action application="set" data="campon_announce_sound=press_one_to_stop.wav"/>
<action application="bridge" data="sofia/gateway/myprovider/5551231234"/>
campon_fallback_context
Controls camping during bridge app (testing needed)
Usage:
<action application="set" data="campon"/>
<action application="bridge" data="sofia/gateway/myprovider/5551231234"/>
campon_fallback_dialplan
Controls camping during bridge app (testing needed)
Usage:
<action application="set" data="campon"/>
<action application="bridge" data="sofia/gateway/myprovider/5551231234"/>
campon_hold_music
If you don't set the hold_music variable, this variable controls hold music while camping.
Usage:
<action application="set" data="campon=true"/>
<action application="set" data="campon_hold_music=/data/campmusic/RelaxingCampSounds.wav"/>
<action application="bridge" data="sofia/gateway/myprovider/5551231234"/>
campon_fallback_exten
Controls camping during bridge app (testing needed)
Usage:
<action application="set" data="campon"/>
<action application="bridge" data="sofia/gateway/myprovider/5551231234"/>
campon_retries
Controls how many times the bridge will be retried while camping.
Default: 100
Usage:
<action application="set" data="campon=true"/>
<action application="set" data="campon_retries=13"/>
<action application="bridge" data="sofia/gateway/myprovider/5551231234"/>
campon_sleep
Controls how long to wait before starting a retry.
Default: 10
Usage:
<action application="set" data="campon=true"/>
<action application="set" data="campon_sleep=30"/>
<action application="bridge" data="sofia/gateway/myprovider/5551231234"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dptools | mod_dptools.c | 15201 |
campon_stop_key
DTMF digit that breaks the campon loop and skips directly to fallback extension
Default: none
Usage:
<action application="set" data="campon=true"/>
<action application="set" data="campon_stop_key=1"/>
<action application="set" data="campon_announce_sound=press_one_to_stop.wav"/>
<action application="set" data="campon_fallback_exten=1000"/>
<action application="bridge" data="sofia/gateway/myprovider/5551231234"/>
campon_timeout
This variable controls how long to attempt each bridge before timing out. It works exactly like call_timeout but only applies to camping.
Default: 10
Usage:
<action application="set" data="campon=true"/>
<action application="set" data="campon_timeout=20"/>
<action application="bridge" data="sofia/gateway/myprovider/5551231234"/>
cdr_csv_base
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_cdr_csv | mod_cdr_csv.c | 6542 |
CHANNEL
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dialplan_asterisk | mod_dialplan_asterisk.c | 6205 |
channel_name
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 6542 |
codec_string
Sets the base codec string to use.
Usage:
<action application="set" data="codec_string=PCMU,GSM"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_opal | mod_opal.cpp | 10567 |
mod_sofia | sofia_glue.c | 5114 |
conference_auto_outcall_announce
File name of audio message to play to conference member joining conference via the conference_set_auto_outcall application. Because the conference would be originating an outbound call to a member this typically would be a greeting with an explanation that the recipient will be joining a conference call.
Usage:
<action application="set" data="conference_auto_outcall_announce=sounds/soundfile.wav"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_conference | mod_conference.c | 11104 |
conference_auto_outcall_caller_id_name
Caller ID name to use when dialing endpoints to join the conference via the conference_set_auto_outcall application.
Usage:
<action application="set" data="conference_auto_outcall_caller_id_name=$${effective_caller_id_name}"/>
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_conference | mod_conference.c | 11104 |
conference_auto_outcall_caller_id_number
Caller ID number to use when dialing endpoints to join the conference via the conference_set_auto_outcall application.
Usage:
<action application="set" data="conference_auto_outcall_caller_id_number=${effective_caller_id_number}"/>
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_conference | mod_conference.c | 11104 |
conference_auto_outcall_flags
Conference flags to set for members joining conference via the conference_set_auto_outcall application
Usage:
<action application="set" data="conference_auto_outcall_flags=mute"/>
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_conference | mod_conference.c | 11104 |
conference_auto_outcall_maxwait
Maximum time in seconds that the channel that initiated the conference_set_auto_outcall will wait for members to join the conference.
Usage:
<action application="set" data="conference_auto_outcall_maxwait=10"/>
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_conference | mod_conference.c |
conference_auto_outcall_prefix
The value of conference_auto_outcall_prefix is prepended to each of conference_set_auto_outcall values, of which there can be more than one.
Usage:
<extension name="mad_boss_intercom">
<condition field="destination_number" expression="^0911$">
<action application="set" data="conference_auto_outcall_caller_id_name=Mad Boss1"/>
<action application="set" data="conference_auto_outcall_caller_id_number=0911"/>
<action application="set" data="conference_auto_outcall_timeout=60"/>
<action application="set" data="conference_auto_outcall_flags=mute"/>
<action application="set" data="conference_auto_outcall_prefix={sip_auto_answer=true,execute_on_answer='bind_meta_app 2 a s1 transfer::intercept:${uuid} inline'}"/>
<action application="set" data="sip_exclude_contact=${network_addr}"/>
<action application="conference_set_auto_outcall" data="${group_call(sales)}"/>
<action application="conference" data="madboss_intercom1@default+flags{endconf|deaf}"/>
</condition>
</extension>
See also:
See Conferencing and Intercom for an example of using all this to page via multiple extensions.
See conference for details on initiating conferences.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_conference | mod_conference.c | 11104 |
conference_auto_outcall_profile
Conference profile to use for members joining the conference via the conference_set_auto_outcall application.
Usage:
<action application="set" data="conference_auto_outcall_profile=default"/>
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_conference | mod_conference.c |
conference_auto_outcall_timeout
Originate timeout to use when joining a member to a conference via conference_set_auto_outcall.
Usage:
<action application="set" data="conference_auto_outcall_timeout=60"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_conference | mod_conference.c | 11104 |
conference_controls
Set this variable to specify which conference control set to use when transferring a caller into a conference. This allows you, for example, to have a control set for the conference moderator and another control set for regular conference members. The control set for the moderator could include the ability to mute or kick people, for example.
NOTE: You must create the desired conference control set. Also, if this is not set then the default conference control set is used for the conference member.
Usage:
<action application="set" data="conference_controls=moderator"/>
Implemented By:
Module Name | Source File | Last Updated |
---|---|---|
mod_conference | mod_conference.c | ac19f73c |
conference_enforce_security
Allows the conference security to be overridden. This applies in two different scenarios, one for inbound and one for outbound. By default, conference security is always applied to inbound calls and is always skipped for outbound calls. This channel variable allows the behavior to be modified.
Usage:
Inbound
<action application="set" data="conference_enforce_security=false"/>
<action application="conference" data="3000"/>
Outbound
originate {conference_enforce_security=true}sofia/internal/1001 &conference(3000)
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_conference | mod_conference.c | 12863 |
conference_enter_sound
When set, this channel variable will override the enter-sound param on conference profile for any conferences into which the call leg is transferred.
Usage:
<action application="set" data="conference_enter_sound=silence_stream://10"/>
Implemented By:
Module Name | Source File | Last Updated |
---|---|---|
Mod_conference | mod_conference.c |
conference_exit_sound
Usage:
<action application="set" data="conference_exit_sound=silence_stream://10"/>
Implemented By:
Module Name | Source File | Last Updated |
---|---|---|
Mod_conference | mod_conference.c |
conference_last_matching_digits
Contains the last matching digits that the user on this channel sent into the conference.
Usage:
<action application="log" data="INFO Last digits sent by this user: ${conference_last_matching_digits}"/>
See also:
Implemented By:
Module Name | Source File | Last Updated |
---|---|---|
mod_conference | mod_conference.c | f6bcf830 |
conference_member_id
Contains the conference_member_id value for any conference to which the channel may be connected.
Implemented By:
mod_conference.c
conference_moderator
Is true if the channel is connected to a conference as a moderator.
Implemented By:
mod_conference.c
conference_name
The name of the last conference joined by this channel.
Usage:
<action application="log" data="INFO Last conference joined by this user: ${conference_name}"/>
Implemented By:
Module Name | Source File | Last Updated |
---|---|---|
mod_conference | mod_conference.c |
conference_recording
Contains the file name of the conference recording for the conference to which the channel is connected.
Implemented By:
mod_conference.c
conference_uuid
Every instance of a conference has its own UUID. This channel variable stores the conference UUID for the most recent conference in which the channel was a member. It is set as soon as the channel enters the conference, and will show up in XML CDRs and uuid_dump calls, as well as any events that show channel variables.
Implemented By:
Module Name | Source File | Last Updated |
---|---|---|
mod_conference | mod_conference.c | 2011-03-18 |
continue_on_fail
Controls what happens when the called party can not be reached (busy/offline). If "true" the dialplan continues to be processed. If "false" the dialplan will stop processing. Can contain the return messages that will continue on fail also.
Usage:
<action application="set" data="continue_on_fail=true"/>
or,
<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,NO_ROUTE_DESTINATION"/>
or Q.850 cause codes,
<action application="set" data="continue_on_fail=3,17,18,27"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dptools | mod_dptools.c | 5875 |
mod_lcr | mod_lcr.c | 10510 |
copy_xml_cdr
Copy's the other leg's XML CDR into this leg's CDR. For example, the A leg's CDR will contain a variable named b_leg_cdr whose contents are the URL-encoded XML CDR data from the B leg. This variable must be set on the B leg, so use {copy_xml_cdr=true} in the dialstring or use exportinstead of set.
Usage:
<action application="bridge" data="{copy_xml_cdr=true} user/${dialed_extension}@${domain_name}"/>
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_bridge.c | 8955 |
created_time
Contains the start time (in microseconds) of when the call was created.
Usage:
In the event that a call is transferred, this will contain the time of when the entire call was created, not that specific transfer. If you need the transfer created time, see Variable_profile_created_time and Variable_progress_time
current_application
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_fifo | mod_fifo.c | 10277 |
mod_sofia | sofia.c | 11562 |
core | switch_core_session.c | 10653 |
current_application_data
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_fifo | mod_fifo.c | 10277 |
mod_sofia | sofia.c | 11562 |
current_application_response
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dptools | mod_dptools.c | 10653 |
core | switch_core_session.c | 10653 |
default_language
Controls the default language the Say Phrase engine will use when no language is explicitly specified in the API call. This permits you to easily support multiple languages by only changing a single variable at call time.
Usage:
<action application="set" data="default_language=fr"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_play_say.c | 4796 |
destination_number
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_sofia | sofia.c | 6054 |
core | switch_ivr_bridge.c | 7083 |
detect_speech_result
The result of play_and_detect_speech.
Usage:
This value is read-only.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dptools | mod_dptools.c |
dialed_domain
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_commands | mod_commands.c | 10917 |
mod_dptools | mod_dptools.c | 7225 |
dialed_group
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_commands | mod_commands.c | 10917 |
dialed_user
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_commands | mod_commands.c | 10917 |
mod_dptools | mod_dptools.c | 7225 |
digits_dialed
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 12244 |
direction
It is used to determine if the particular leg of the call is inbound or outbound.
Usage:
<condition field="${direction}" expression="^inbound$">
See also:
disable_app_log
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_core_session.c | 8517 |
rtp_disable_hold
When set to true the user may not put the call on hold.
Usage:
<action application="set" data="rtp_disable_hold=true"/>
Implemented By:
mod_sofia
rtp_pass_codecs_on_stream_change
Pass codecs thru from a to b on stream change, example adding or removing video from a bridged call.
Usage
<action application="set" data="rtp_pass_codecs_on_stream_change=true"/>
disable_q850_reason
When set to true, this disables sending of the Reason header, which includes the Q.850 reason code, in responses and BYEs. For a list of hangup causes and their Q.850 codes, see Hangup Causes. This is available as of revision 15850 committed 12/8/2009.
Usage:
<action application="set" data="disable_q850_reason=true"/>
disable_radius_start
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_radius_cdr | mod_radius_cdr.c | 10793 |
disable_radius_stop
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_radius_cdr | mod_radius_cdr.c | 10793 |
disable_rtp_auto_adjust
Disable rtp auto adjust if it not behaves as you expected.
It stops the switch from rewriting the RTP destination based on the source
When RTP Auto-Adjust is ON FreeSWITCH will change the destination RTP address (port?) to match the source of the incoming packets, this doesn't work if the other end is really wanting to send and receive on a different addr (port?).
Usage:
<action application="set" data="disable_rtp_auto_adjust=true"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dingaling | mod_dingaling.c | 12641 |
mod_sofia | sofia_glue.c | 8908 |
DISPLACE_HANGUP_ON_ERROR
When set to true this channel variable will cause the call to hangup if there is an error when trying to uuid_displace the call. The default is "false". The default behavior before 2013/03/21 was to hangup.
Usage:
<action application="set" data="DISPLACE_HANGUP_ON_ERROR=true"/>
See also:
Implemented By:
Module Name | Source File | Last Updated |
---|---|---|
Core | switch_ivr_async.c |
dl_cid_msg
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dingaling | mod_dingaling.c | 4270 |
dl_from_host
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dingaling | mod_dingaling.c | 4943 |
dl_from_user
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dingaling | mod_dingaling.c | 4943 |
dl_host
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dingaling | mod_dingaling.c | 4943 |
dl_user
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dingaling | mod_dingaling.c | 4943 |
domain_name
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr.c | 9056 |
drop_dtmf
Set this on an inbound channel before answer or on an outbound channel before the bridge/originate in order to prevent DTMF events from being sent to the channel.
Only tested with RFC2833, may also work for INFO / inband. See Jira issue FS-4769. Commit 60f7849cbe72.
Usage:
<action application="set" data="drop_dtmf=true"/>
<action application="answer"/>
or,
<action application="export" data="nolocal:drop_dtmf=true"/>
<action application="bridge" data="sofia/internal/100@1.2.3.4"/>
or,
<action application="bridge" data="{drop_dtmf=true}sofia/internal/100@1.2.3.4"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_sofia | sofia_glue.c |
dtmf_type
For inband DTMF, Misc. Dialplan Tools start_dtmf must be used in the dialplan.
Usage:
<action application="set" data="dtmf_type=info"/>
or,
<action application="set" data="dtmf_type=rfc2833"/>
or,
<action application="set" data="dtmf_type=none"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_sofia | sofia_glue.c | 6952 |
dtmf_verbose
Enables verbose logging of Spandsp DTMF detector. Default is false. Set this variable prior to executing spandsp_start_dtmf.
Usage:
See also:
Implemented By:
Module Name | Source File | Last Updated |
---|---|---|
mod_spandsp | mod_spandsp_dsp.c |
duration
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 6917 |
easy_acctcode
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_easyroute | mod_easyroute.c | 10929 |
easy_destnum
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_easyroute | mod_easyroute.c | 10929 |
easy_dialstring
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_easyroute | mod_easyroute.c | 10929 |
easy_group
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_easyroute | mod_easyroute.c | 10929 |
easy_limit
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_easyroute | mod_easyroute.c | 10929 |
eavesdrop_annnounce_macro
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_async.c | 8098 |
eavesdrop_announce_id
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_async.c | 8098 |
eavesdrop_group
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_async.c | 8686 |
eavesdrop_indicate_failed
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dptools | mod_dptools.c | 8098 |
eavesdrop_indicate_idle
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dptools | mod_dptools.c | 8091 |
eavesdrop_indicate_new
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dptools | mod_dptools.c | 8091 |
eavesdrop_require_group
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dptools | mod_dptools.c | 8098 |
effective_caller_id_name
Sets the effective callerid name. This is automatically exported to the B-leg; however, it is not valid in an origination string. In other words, set this before calling bridge, otherwise use origination_caller_id_name
For Snom 370/820 users:
If you want to display LEG A's name (if available) as soon as LEG B (here the local Snom) rings, you have to set origination_caller_id_name or effective_caller_id_name as described. Otherwise, in LEG B's display, you will see LEG A's number during ringing and switching to LEG A's name after picking up the call by LEG B. To remove it set it to "_undef_".
Usage:
<action application="set" data="effective_caller_id_name=Bob Smith"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_voicemail | mod_voicemail.c | 8854 |
core | switch_core_session.c | 9248 |
effective_caller_id_number
Sets the effective callerid number. This is automatically exported to the B-leg; however, it is not valid in an origination string. In other words, set this before calling bridge, otherwise use origination_caller_id_number
Usage:
<action application="set" data="effective_caller_id_number=9185551212"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_voicemail | mod_voicemail.c | 8854 |
core | switch_core_session.c | 9248 |
enable_file_write_buffering
Enable file buffering when recording a file, defaults to true if not set.
Buffer size defaults to `SWITCH_DEFAULT_FILE_BUFFER_LEN` but can be overridden by putting bytes size instead of true (see below example).
Related discussion; [http://lists.freeswitch.org/pipermail/freeswitch-users/2012-April/082835.html](http://lists.freeswitch.org/pipermail/freeswitch-users/2012-April/082835.html)
Usage:
<action application="set" data="enable_file_write_buffering=false"/>
<action application="set" data="enable_file_write_buffering=true"/>
<action application="set" data="enable_file_write_buffering=65535"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_play_say.c | 11677 |
enable_heartbeat_events
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 9882 |
end_epoch
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 6917 |
end_stamp
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 6917 |
end_uepoch
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 6917 |
ep_codec_prefer_sdp
ep_codec_prefer_sdp contains the "endpoint" codec string on the A leg. The order of preference is chosen by the A leg
Usage:
Need some example.
Implemented By:
Module Name | Source File | Last Updated |
---|---|---|
Sofia | mod_sofia_glue.c |
ep_codec_string
ep_codec_string contains the "endpoint" codec string on the A leg. This codec list includes only the codecs that both the A leg and FreeSWITCH agree upon. This variable is set only when inbound-late-negotiation is enable on the SIP profile. NOTE: When there is more than one codec in the list, the order of preference is chosen by FreeSWITCH, not by the A leg
Usage:
<action application="bridge" data="{absolute_codec_string=${ep_codec_string}}sofia/foo/bar@baz"/>
Implemented By:
Module Name | Source File | Last Updated |
---|---|---|
Sofia | mod_sofia.c |
exec_after_bridge_app
Execute an application command after the bridge has been terminated. To be used with exec_after_bridge_arg. By contrast, to execute when the bridge has been established use execute_on_answer
Usage:
<action application="set" data="exec_after_bridge_app=transfer"/>
<action application="set" data="exec_after_bridge_arg=2102"/>
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_bridge.c | 5546 |
exec_after_bridge_arg
Argument passed to exec_after_bridge_app.
Usage:
<action application="set" data="exec_after_bridge_app=transfer"/>
<action application="set" data="exec_after_bridge_arg=2102"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_bridge.c | 5546 |
execute_on_answer
Execute an application (not an api) when the called party answers. To set an api, use api_on_answer. execute_on_answer will also allow for more control when dealing with no answer conditions in cases where you cannot ignore early media.
The command is executed only on channels that are not already answered. Just use export or export with nolocal: prefix to make sure it is executed when b-leg answers.
In the second usage example below, we have originated an outbound call to a local extension, where we will wait 30 seconds while manually ignoring media. In this case we use 'set' and not 'export'.
Usage:
<action application="export" data="nolocal:execute_on_answer=lua incrInUse.lua ${uuid}"/>
or, to wait 30 seconds for an answer while 'manually' ignoring early media
originate {ignore_early_media=true}sofia/gateway/my_gateway/5551212 885551212
<extension name="exe_on_ans">
<condition field="destination_number" expression="^88(\d+)$">
<action application="set" data="execute_on_answer=transfer ANSWEREDCALL XML default"/>
<action application="log" data="INFO Waiting 30 seconds for $1 to answer..."/>
<action application="sleep" data="30000"/>
<action application="log" data="INFO Call to $1 was not answered, taking alternative action..."/>
<action application="transfer" data="UNANSWEREDCALL XML default"/>
</condition>
</extension>
If you need to set multiple execute_on_answers, see: The execute on family
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_channel.c | 9636 |
execute_on_fax_detect
This is an example of how to create a channel variable page. This section is the description of the variable. Put the description information here and then the usage example below.
Usage:
<action application="set" data="skeleton=foo"/>
execute_on_fax_failure
This is an example of how to create a channel variable page. This section is the description of the variable. Put the description information here and then the usage example below.
Usage:
<action application="set" data="skeleton=foo"/>
execute_on_fax_result
This is an example of how to create a channel variable page. This section is the description of the variable. Put the description information here and then the usage example below.
Usage:
<action application="set" data="skeleton=foo"/>
execute_on_fax_success
This is an example of how to create a channel variable page. This section is the description of the variable. Put the description information here and then the usage example below.
Usage:
<action application="set" data="skeleton=foo"/>
execute_on_media
Execute an application when the far end sends media, i.e. ringing or 183/SDP.
The command is executed only on channels that are not already answered. Just use export or export with nolocal: prefix to make sure it is executed when b-leg answers.
In the second usage example below, we have originated an outbound call to a local extension, where we will wait 30 seconds without ignoring media. In this case we use 'set' and not 'export'.
Usage:
<action application="export" data="nolocal:execute_on_media=lua incrInUse.lua ${uuid}"/>
execute_on_media_timeout
Execute an application if the far end stops sending media and times out.
Usage:
<action application="export" data="nolocal:execute_on_media_timeout=lua oops_timeout.lua ${uuid}"/>
<action application="set" data="execute_on_media_timeout=transfer HANDLE_MEDIA_TIMEOUT XML default"/>
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
Sofia | mod_sofia.c | 7eafa85d |
execute_on_originate
Executes code on successful origination. Use the '<app> <arg>' format to execute in the origination thread or use '<app>::<arg>' to execute asynchronously.
Successful origination means the remote server responds, NOT when the call is actually answered.
Usage:
originate {ignore_early_media=true,execute_on_originate='cng_plc'}sofia/gateway/foo/123456789 9664
originate {ignore_early_media=true,execute_on_originate='my_app::my_arg'}sofia/gateway/foo/123456789 9664
execute_on_pre_answer
Execute an application (not an api) when the called party "preanswers" - that is, when some form of early media is coming or the far end sends a 180 Ringing.
The command is executed only on channels that are not already answered. Just use export or export with nolocal: prefix to make sure it is executed when b-leg answers.
In the second usage example below, we have originated an outbound call to a local extension, where we will wait 30 seconds without ignoring media. In this case we use 'set' and not 'export'.
Usage:
<action application="export" data="nolocal:execute_on_pre_answer=lua incrInUse.lua ${uuid}"/>
execute_on_ring
Execute a command when the called party rings.
Usage:
<action application="set" data="nolocal:execute_on_ring=lua markring ${uuid}"/>
execute_on_sip_extra_headers
Usage:
Avi Marcus - could this be used to send an incoming LRN header (e.g. alcazar) to a non-blocking curl or lua script (for caching)? Or would api_on_sip_extra_headers be good for that?
execute_on_sip_reinvite
Execute a command when SIP Reinvite.
Usage:
Add description here.
export_vars
export_vars lists variables to be exported to the other leg upon bridge. Unlike export, it only lists the variables to export without actually setting them. Note: This is useful to transfer information from a-leg (INVITE) to the future b-leg of REFER.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dptools | mod_dptools.c | 5118 |
core | switch_core_session.c | 4796 |
EXTEN
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dialplan_asterisk | mod_dialplan_asterisk.c | 6205 |
fail_on_single_reject
This is useful when using the "," AND operator in the DATA field of a bridge. The AND operator notifies a list of destinations, bridging to the first destination that accepts the call. Typically if a destination in the list rejects the call, the bridge will continue to be attempted until either another destination accepts the call, or a timeout occurs.
This variable allows one to terminate the bridging attempt on a single rejection of the call. This means the bridge attempt would fail, and if continue_on_fail has not been set, the call is terminated. This variable would be set within a condition before a bridge application. When used in conjunction with the continue_on_fail variable, one can perform operations such as rolling over a rejected caller to an answering machine application.
The default setting is FALSE, meaning a single rejection will not terminate the bridging attempt.
It can also be set to a list of failure causes to stop on, and can be negated to a list of causes not to stop on (i.e. stop on all other failure causes).
Usage:
<action application="set" data="fail_on_single_reject=true"/> <action application="bridge" data="sofia/$${profile}/$${kitchen}%$${domain},sofia/$${profile}/$${dining}%$${domain}"/> <action application="javascript" data="answermachine.js"/>
or,
<action application="set" data="fail_on_single_reject=USER_BUSY"/>
or,
<action application="set" data="fail_on_single_reject=!NORMAL_CIRCUIT_CONGESTION"/>
or to use a list,
<action application="set" data="fail_on_single_reject=^^:CALL_REJECTED:NORMAL_CLEARING:USER_BUSY"/>
or for negated list,
<action application="set" data="fail_on_single_reject=!^^:ALLOTTED_TIMEOUT:NETWORK_OUT_OF_ORDER"/>
failed_xml_cdr_prefix
If you set that on the A leg and any and all failed B originates generate a full XML CDR report and set it as a variable, this includes during a forked dial.
So say you try to call sofia/profile/a@xxxxxxx,sofia/profile/b@xxxxxxx
And it fails completely, before you make the call you set failed_xml_cdr_prefix to "bad_call"
Then you end up with ${bad_call_1} and ${bad_call_2} which are each a full XML report including all the vars etc.
Usage:
<action application="set" data="failed_xml_cdr_prefix=failinggw" />
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
core | switch_ivr_originate.c | 8730 |
failure_causes
Controls which failure causes will be considered as a failure to the bridge(s). This will change the values for which continue_on_fail will fail by default unless continue_on_fail is set to true.
Usage:
<action application="set" data="failure_causes=USER_BUSY,NO_ANSWER"/>
or Q.850 cause codes,
<action application="set" data="failure_causes=487"/>
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_dptools | mod_dptools.c | 12058 |
fax_bad_rows
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_disable_v17
fax_disable_v17 prevents the use of the V.17 (9,600bps to 14,400bps) FAX modem. This means FAXes will be limited to the use of V.29 (9,600bps and 7,200bps) and V.27ter (4,800bps). Some VoIP systems handle V.17 so poorly there are often good reasons to want to disable the use of this modem.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_document_total_pages
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_ecm_requested
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_ecm_used
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_end_page
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_filename
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_force_caller
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_ident
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_image_resolution
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_image_size
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_local_station_id
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_prefix
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_remote_station_id
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_result_code
Result Code | Message |
---|---|
0 | OK |
2 | Timed out waiting for initial communication |
3 | Timed out waiting for the first message |
5 | The HDLC carrier did not stop in a timely manner |
6 | Failed to train with any of the compatible modems |
13 | Unexpected message received |
14 | Received bad response to DCS or training |
15 | Received a DCN from remote after sending a page |
17 | Received a DCN while waiting for a DIS |
20 | Received no response to DCS or TCF |
23 | Invalid ECM response received from transmitter |
31 | Timer T2 expired while waiting for fax page |
32 | Timer T2 expired while waiting for next fax page |
48 | Disconnected after permitted retries |
49 | The call dropped prematurely |
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_result_text
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_success
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |
fax_transfer_rate
Description needed! Please contribute one.
Usage:
Example needed! Please contribute one.
See also:
Implemented By:
Module Name | Source File | Last Revised |
---|---|---|
mod_spandsp | mod_spandsp_fax.c | 3026e639fe0b8cfec9a37f2ce99aee7779b9e736 |