[asterisk-dev] Introducing the new ConfBridge

Russell Bryant russell at digium.com
Tue Mar 15 14:00:24 CDT 2011


On Tue, 2011-03-15 at 12:57 -0500, David Vossel wrote:

> Umm, this is a good point.  What if I made an app that allowed bridge/user profiles to be built dynamically in the dialplan, would that work?
> 
> ConfBridgeCreateProfile(type,options) ; Allows custom User and Bridge profiles to be built dynamically and stored on the channel.
> 
> When ConfBridge is called on the channel with no user or bridge profile specified, it will check to see if one of these dynamic profiles exist and use it instead of the default profiles in confbridge.conf.
> 
> Example Usage
> 
> exten => 1111,1,Answer()
> exten => 1111,n,ConfBridgeCreateProfile(bridge,i(16000)m(50)) ; creates a bridge profile with internal sample rate of 16khz and max members of 50
> exten => 1111,n,ConfBridgeCreateProfile(user,a)  ; creates a user profile specifying this user is an Admin.
> exten => 1111,n,ConfBridge(1111,,,)       ; Uses the dynamic bridge and user profiles just created.

I think I would prefer a dialplan function interface.  That seems more
natural to me for this sort of thing.

;
; Set an option on a dynamic confbridge profile.  If the profile does
; not exist, create it.
;
exten => foo,1,Set(CONFBRIDGE_PROFILE(profile_name,<bridge|
user>,option)=value)

-- 
Russell Bryant
Digium, Inc.   |   Engineering Manager, Open Source Software
445 Jan Davis Drive NW    -     Huntsville, AL 35806  -  USA
www.digium.com  -=-  www.asterisk.org -=- blogs.asterisk.org




More information about the asterisk-dev mailing list