text
stringlengths
0
152
same => n,Set(CONFBRIDGE(user,marked)=yes) ; Mark this user
same => n,Set(CONFBRIDGE(menu,7)=decrease_talking_volume) ; Decrease gain
same => n,Set(CONFBRIDGE(menu,9)=increase_talking_volume) ; Increase gain
same => n,Set(CONFBRIDGE(menu,4)=set_as_single_video_src) ; Lock video on me
same => n,Set(CONFBRIDGE(menu,5)=release_as_single_video_src) ; Return to talker
same => n,Set(CONFBRIDGE(menu,6)=admin_toggle_mute_participants); Mute all but admins
same => n,Set(CONFBRIDGE(menu,2)=participant_count) ; How many participants?
same => n,ConfBridge(${ConfNum})
same => n,Return()
same => n(participant),Noop()
same => n,Set(ConfNum=${EXTEN})
same => n,Set(CONFBRIDGE(user,wait_marked)=yes) ; Wait for a marked user
same => n,Set(CONFBRIDGE(user,announce_only_user)=no) ; Wait for a marked user
same => n,Set(CONFBRIDGE(user,music_on_hold_when_empty)=yes) ; Wait for a marked user
same => n,Set(CONFBRIDGE(menu,7)=decrease_talking_volume) ; Decrease gain
same => n,Set(CONFBRIDGE(menu,9)=increase_talking_volume) ; Increase gain
same => n,ConfBridge(${ConfNum})
same => n,Return()
We can set bridge, user, and menu parameters as in the preceding example. All of the
parameters you might wish to use are documented in the ~/src/asterisk-15.<TAB>/
configs/samples/confbridge.conf.sample file.
When we call the subroutine, we can pass the user as an argument. Place the follow‐
ing new code in your [sets] context after _55512XX and before *724:
exten => _55512XX,1,Answer()
same => n,Playback(tt-monkeys)
; ConfBridge
Advanced Conferencing
|
205
exten => *600,1,GoSub(subConference,${EXTEN:1},1(participant)) ;
exten => *601,1,GoSub(subConference,${EXTEN:1},1(admin,4242)) ;
exten => *724,1,Noop(Page)
same => n,Set(ChannelsToPage=${UserA_DeskPhone}&${UserA_SoftPhone}&${UserB_DeskPhone})
same => n,Page(${ChannelsToPage},i,120)
If you dial *600, you will be joined as a participant. If you dial *601, you will be asked
for the PIN (4242), and will join as an administrator. We used dialplan labels to con‐
trol the call flow into the subroutine. It’s easy to read, and easy to administer.
In Chapter 15 we’ll explore how to use an external database to store and retrieve these
parameters, rather than hardcoding them in the dialplan.
Video Conferencing
The conference engine in Asterisk can handle video, but it is a very simplified offer‐
ing, and you should evaluate it carefully to ensure it meets your needs. Some of the
more serious limitations include:
• All video participants must be using the same video codec; no video transcoding
is available in Asterisk.
• There is no video multiplexing in Asterisk; only one video source can be shown
at a time to a participant.
For a user to be able to use video (whether in a conference, or just for normal calls),
they need to have the video codecs enabled. This can be done by modifying the allow
field in the asterisk.endpoints table, and adding 'h264,vp8' to the allow field.
Make sure you don’t remove the codecs that are already there (for example, the ulaw
audio codec). A functional entry in that field might look like:
ulaw,h264,vp8
Before attempting to use video with your conferences, make sure your sets are able to
use it with direct desk-to-desk calls. If you can use video conferencing between your
sets, it’s likely it’ll also work in your conference rooms.
In Chapter 20, we’ll dive into WebRTC, which is where we’ll explore more powerful
concepts in the delivery of multimedia communication, including conferencing.
Conclusion
In this chapter we explored the features.conf file, which contains the functionality for
enabling DTMF-based transfers, enabling the recording of calls during a call, and
configuring parking lots for one or more companies. We also looked at various ways
of announcing calls and information to people in the office using a multitude of pag‐
ing methods, including traditional overhead paging systems and multicast paging to
206
|
Chapter 11: PBX Features, Including Parking, Paging, and Conferencing
the phone sets on employees’ desks. After that we delved into the ConfBridge()
application, which is extremely flexible in configuration and rich in available features.
This exploration of the various methods of implementing the traditional parking,
paging, and conferencing features in a modern way hopefully shows you the flexibil‐
ity Asterisk can offer.
Conclusion