Skip to content

Bridge()

Synopsis

Bridge two channels.

Description

Allows the ability to bridge two channels via the dialplan.

This application sets the following channel variable upon completion:

  • BRIDGERESULT - The result of the bridge attempt as a text string.

    • SUCCESS

    • FAILURE

    • LOOP

    • NONEXISTENT

Syntax

Bridge(channel,[options])
Arguments
  • channel - The current channel is bridged to the channel identified by the channel name, channel name prefix, or channel uniqueid.

  • options

    • p - Play a courtesy tone to channel.

    • F(context^exten^priority) - When the bridger hangs up, transfer the bridged party to the specified destination and start execution at that location.

      • context

      • exten

      • priority required

    • F - When the bridger hangs up, transfer the bridged party to the next priority ofthe current extension and start execution at that location.

    • h - Allow the called party to hang up by sending the * DTMF digit.

    • H - Allow the calling party to hang up by pressing the * DTMF digit.

    • k - Allow the called party to enable parking of the call by sending the DTMF sequence defined for call parking in features.conf.

    • K - Allow the calling party to enable parking of the call by sending the DTMF sequence defined for call parking in features.conf.

    • L(x[:y][:z]) - Limit the call to x ms. Play a warning when y ms are left. Repeat the warning every z ms. The following special variables can be used with this option:

      • LIMIT_PLAYAUDIO_CALLER - Play sounds to the caller. yes|no (default yes)

      • LIMIT_PLAYAUDIO_CALLEE - Play sounds to the callee. yes|no

      • LIMIT_TIMEOUT_FILE - File to play when time is up.

      • LIMIT_CONNECT_FILE - File to play when call begins.

      • LIMIT_WARNING_FILE - File to play as warning if y is defined. The default is to say the time remaining.

    • n - Do not answer the channel automatically before bridging.
      Additionally, to prevent a bridged channel (the target of the Bridge application) from answering, the 'BRIDGE_NOANSWER' variable can be set to inhibit answering.

    • S(x) - Hang up the call after x seconds after the called party has answered the call.

    • t - Allow the called party to transfer the calling party by sending the DTMF sequence defined in features.conf.

    • T - Allow the calling party to transfer the called party by sending the DTMF sequence defined in features.conf.

    • w - Allow the called party to enable recording of the call by sending the DTMF sequence defined for one-touch recording in features.conf.

    • W - Allow the calling party to enable recording of the call by sending the DTMF sequence defined for one-touch recording in features.conf.

    • x - Cause the called party to be hung up after the bridge, instead of being restarted in the dialplan.

See Also

Generated Version

This documentation was generated from Asterisk branch 18 using version GIT