[asterisk-dev] Introducing the new ConfBridge

Tony Mountifield tony at softins.co.uk
Tue Mar 15 13:21:45 CDT 2011


In article <213431594.42476.1300211824953.JavaMail.root at zimbra>,
David Vossel <dvossel at digium.com> wrote:
> 
> From: "Tony Mountifield" <tony at mountifield.org>
> > 
> > So, what could be a better way of making all the different profile
> > items
> > settable independently at runtime? Some kind of syntax to say take the
> > value from a channel variable? Reinstate dialplan options for some
> > features?
> >
> 
> 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.

That would certainly be one way to do it.

Typically my app answers the call, then calls an AGI or FastAGI which
identifies the caller, prompts them for various things, looks them up
in a database, and then sets channel variables for the run-time Meetme
options. Then the dialplan includes those channel variables in the
invocation of Meetme. So the above approach would work, by including
such variable references in the call to ConfBridgeCreateProfile instead.

Perhaps you could even include an optional profile name to use as a
template, with the inline options then overriding or adding to it:

exten => 1111,n,ConfBridgeCreateProfile(bridge,mytemplate,i(16000)m(50))

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-dev mailing list