[asterisk-users] ConfBridge function slight change from 11 to 13

Richard Mudgett rmudgett at digium.com
Wed Mar 29 11:10:31 CDT 2017


On Wed, Mar 29, 2017 at 9:40 AM, Michaël Gaudette <michael at virtutel.ca>
wrote:

> Hi,
>
>
>
> I have been using ConfBridge since Asterisk 11, and I recently upgraded a
> server to 13.  While everything that needed fixing seems fixed, I have an
> issue that does not seem documented anywhere.
>
>
>
> The way I used ConfBridge is that I have a standard bridge profile, user
> profile and menu that (almost) everyone uses. I call the ConfBridge this
> way:
>
>
>
> exten => s,1,Confbridge(some_id,bridge_basic,user_basic,admin_menu_basic)
>
>
>
> But, even though everyone uses the same basic config, each conference has
> a different NIP to get it. So what I USED to do is this:
>
>
>
> exten => s,1,Set(CONFBRIDGE(user,pin)=123456)
>
> exten => s,2,Confbridge(some_id,bridge_basic,user_basic,admin_menu_basic)
>
>
>
> This, as far as I could tell on Asterisk 11, meant that the user_basic
> profile was used, but whatever default PIN present in confbridge.conf was
> “overwritten” by my on-the-fly to the ConfBridge(user,pin) value
>
>
>
> Now, on Asterisk 13.14 (I don’t have an Asterisk 12 I can play with) it
> seems that the fact that I am referencing the user_basic profile in my call
> to the ConfBridge app means that whatever PIN value I put in my dial plan
> is ignore, since a user profile is present. While, before, the PIN value
> overwrote the profile value by having that defined in my dialplan.
>
>
>
> ·         TBH this seems the legit way to use ConfBridge The wiki says:
>
> ·
>
> ·         “user_profile - The user profile name from confbridge.conf.
> When left blank, a dynamically built user profile created by the CONFBRIDGE
> dialplan function is searched for on the channel and used. If no dynamic
> profile is present, the 'default_user' profile found in confbridge.conf is
> used”
>
> ·
>
> ·         …but it suited me better to use it the way it worked in
> Asterisk 11.
>
> Is there any way to make the channel values overwrite the profile values
> instead of be ignored by the presence of a profile in the dialplan
> application parameters? Or something that has a similar effect, i.e. an
> easy to change overall default bridge user that can be slightly modified
> through the dialplan?
>

You have to explicitly create your dynamic user profile based upon the
desired user profile
first.  Otherwise, it uses the "default_user" profile as the basis of the
dynamic profile.

; Use a non-default user profile as the basis of the dynamic user profile
exten = 1111,1,NoOp()
same = n,Set(CONFBRIDGE(user,template)=user_basic)
same = n,Set(CONFBRIDGE(user,pin)=123456)
same = n,ConfBridge(some_id,bridge_basic,,admin_menu_basic)

; Use the default "default_user" profile as the basis of the dynamic user
profile
exten = 2222,1,NoOp()
same = n,Set(CONFBRIDGE(user,pin)=123456)
same = n,ConfBridge(some_id,bridge_basic,,admin_menu_basic)

If you explicitly specify a bridge, user, or menu profile to ConfBridge
then that is what gets
used regardless of any dynamic profile you created.

See the online documentation:
core show application ConfBridge
or
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_ConfBridge

config show help app_confbridge user_profile template
or
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Configuration_app_confbridge

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170329/ba22bf64/attachment.html>


More information about the asterisk-users mailing list