Bridge

最後更新: 2015-08-24

 

two-party bridges

- Core
- Native
- Local
- Multiparty
- Remote
- Holding

Core

A core bridge can perform media transcoding, media manipulation, call recording, DTMF feature execution, talk detection, and additional functionality because Asterisk has direct access to the media flowing between channels.

Native (higher performance)

When this occurs, Asterisk defers the transfer of media to the channel drivers/protocol stacks themselves.

no transcoding, media manipulation, recording, DTMF, or other features depending on media interpretation can be done by Asterisk.

- SIP
- DAHDI

Local

A local native bridge occurs when the media between two channels is handled by the channel drivers/protocol stacks themselves, but the media is still sent from each device to Asterisk.

Multiparty

Multiparty bridges interact with one or more channels and may route media among them.

Remote

the media is completely outside of Asterisk.
With SIP channels, this is often called "direct media"

Holding

provide a waiting area for channels which you may not yet be prepared to process or connect to other channels. This type of bridge prevents participants from exchanging media, can provide entertainment for all participants, and provides the ability for an announcer to interrupt entertainment with special messages as necessary.


BridgeWait()

BridgeWait([name,[role,[options]]])

The channel will then wait in the holding bridge until some event occurs which removes it from the holding bridge.

name: default

role: participant (default)

options

    m - The specified MOH class

    e - Which entertainment mechanism,
        m - Play music on hold (default)
        r - Ring without pause
        s - Generate silent audio
        h - Put the channel on hold
        n - No entertainment

    S - Automatically exit the bridge and return to the PBX after duration seconds.

 


CLI

boxA*CLI> bridge show all

Bridge-ID                            Chans Type            Technology
623111e7-e947-4a1a-bd68-26c0cb894a13     1 base            holding_bridge

boxA*CLI> bridge show 623111e7-e947-4a1a-bd68-26c0cb894a13

Id: 623111e7-e947-4a1a-bd68-26c0cb894a13
Type: base
Technology: holding_bridge
Num-Channels: 1
Channel: PJSIP/507-00000009

 


ConfBridge

 

Audio mixing is performed within the internals of Asterisk.

Usage:

ConfBridge(conference,[bridge_profile,[user_profile,[menu]]])

user_profile

The user profile name from confbridge.conf.

'default_user' profile found in confbridge.conf is used.

menu

The name of the DTMF menu in confbridge.conf to be applied to this channel.

* DTMF menu

checking

core show applications like ConfBridge

exten => s,1,ConfBridge(101);  join Room 101

Usage:

ConfBridge([confno][,options])

env variable

The join sound

CONFBRIDGE_JOIN_SOUND

The leave sound

CONFBRIDGE_LEAVE_SOUND

i.e.

exten=> 1,1,Answer()
    same=> n,Set(CONFBRIDGE(user,announce_join_leave)=yes)
    same=> n,Set(CONFBRIDGE(user,startmuted)=yes)
    same=> n,ConfBridge(1)

options

a: Set admin mode.
A: Set marked mode.
c: Announce user(s) count on joining a conference.
m: Set initially muted.
M[(class)]: Enable music on hold when the conference has a single caller.
            Optionally, specify a musiconhold class to use. If one is not provided,
            it will use the channel's currently set music class, or 'default'.
1: Do not play message when first person enters
s: Present menu (user or admin) when '*' is received
(send to menu).
w: Wait until the marked user enters the conference.
q: Quiet mode (don't play enter/leave sounds).

Differences with MeetMe

* no longer possible to assign a PIN to a conference

Configure File

confbridge.conf

[sample_user_menu]

[sample_admin_menu]

DOC

https://wiki.asterisk.org/wiki/display/AST/ConfBridge


Bridge()

Bridge application

 

 


AMI

 

Action: BridgeList

Response: Success
Message: Bridge listing will follow

Event: BridgeListItem
BridgeUniqueid: 4f375c62-2055-459e-9aa8-ac8fdb01d6a8
BridgeType: base
BridgeTechnology: softmix
BridgeCreator: ConfBridge
BridgeName: 2771XXXX
BridgeNumChannels: 1

Event: BridgeListComplete

Action: CoreShowChannels

Action: ListCommands

Action: BridgeInfo

Action: Status

Status                          List channel status.

 

Bridge                          Bridge two channels already in the PBX.

Hangup                          Hangup channel.

BridgeDestroy                   Destroy a bridge.

  ConfbridgeSetSingleVideoSrc     Set a conference user as the single video sour
  ConfbridgeStopRecord            Stop recording a Confbridge conference.
  ConfbridgeStartRecord           Start recording a Confbridge conference.
  ConfbridgeLock                  Lock a Confbridge conference.
  ConfbridgeUnlock                Unlock a Confbridge conference.
  ConfbridgeKick                  Kick a Confbridge user.
  ConfbridgeUnmute                Unmute a Confbridge user.
  ConfbridgeMute                  Mute a Confbridge user.
  ConfbridgeListRooms             List active conferences.
  ConfbridgeList                  List participants in a conference.

  BridgeKick                      Kick a channel from a bridge.
  BridgeDestroy                   Destroy a bridge.
  BridgeInfo                      Get information about a bridge.
  BridgeList                      Get a list of bridges in the system.

 

 

 

Creative Commons license icon Creative Commons license icon