<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 29, 2017 at 9:40 AM, Michaël Gaudette <span dir="ltr"><<a href="mailto:michael@virtutel.ca" target="_blank">michael@virtutel.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_8951979682975484157WordSection1"><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">exten => s,1,Confbridge(some_id,bridge_<wbr>basic,user_basic,admin_menu_<wbr>basic)<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">exten => s,1,Set(CONFBRIDGE(user,pin)=<wbr>123456)<u></u><u></u></p><p class="MsoNormal">exten => s,2,Confbridge(some_id,bridge_<wbr>basic,user_basic,admin_menu_<wbr>basic)<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="margin-left:0cm;background:white none repeat scroll 0% 0%"><u></u><span style="font-size:10pt;font-family:symbol;color:rgb(51,51,51)"><span>·<span style="font:7pt "times new roman"">         </span></span></span><u></u>TBH this seems the legit way to use ConfBridge T<span style="font-size:10pt;font-family:"courier new";color:rgb(51,51,51)">he wiki says: </span><span style="font-size:10.5pt;font-family:"helvetica","sans-serif";color:rgb(51,51,51)"><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:0cm;background:white none repeat scroll 0% 0%"><u></u><span style="font-size:10pt;font-family:symbol;color:rgb(51,51,51)"><span>·<span style="font:7pt "times new roman"">         </span></span></span><u></u><span style="font-size:10.5pt;font-family:"helvetica","sans-serif";color:rgb(51,51,51)"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:0cm;background:white none repeat scroll 0% 0%"><u></u><span style="font-size:10pt;font-family:symbol;color:rgb(51,51,51)"><span>·<span style="font:7pt "times new roman"">         </span></span></span><u></u><span style="font-size:10pt;font-family:"courier new";color:rgb(51,51,51)">“user_profile</span><span style="font-size:10.5pt;font-family:"helvetica","sans-serif";color:rgb(51,51,51)"> - 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”<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:0cm;background:white none repeat scroll 0% 0%"><u></u><span style="font-size:10pt;font-family:symbol;color:rgb(51,51,51)"><span>·<span style="font:7pt "times new roman"">         </span></span></span><u></u><span style="font-size:10.5pt;font-family:"helvetica","sans-serif";color:rgb(51,51,51)"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:0cm;background:white none repeat scroll 0% 0%"><u></u><span style="font-size:10pt;font-family:symbol;color:rgb(51,51,51)"><span>·<span style="font:7pt "times new roman"">         </span></span></span><u></u><span style="font-size:10.5pt;font-family:"helvetica","sans-serif";color:rgb(51,51,51)">…but it suited me better to use it the way it worked in Asterisk 11.<u></u><u></u></span></p><p class="MsoNormal" style="background:white none repeat scroll 0% 0%"><span style="font-size:10.5pt;font-family:"helvetica","sans-serif";color:rgb(51,51,51)">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?</span></p></div></div></blockquote><div><br></div><div>You have to explicitly create your dynamic user profile based upon the desired user profile<br>first.  Otherwise, it uses the "default_user" profile as the basis of the dynamic profile.<br><br></div><div><div>; Use a non-default user profile as the basis of the dynamic user profile<br></div>exten = 1111,1,NoOp()<br></div>same = n,Set(CONFBRIDGE(user,template)=user_basic)<br><div>same = n,Set(CONFBRIDGE(user,pin)=123456)<br></div><div>same = n,ConfBridge(some_id,bridge_basic,,admin_menu_basic)<br><br></div><div><div>; Use the default "default_user" profile as the basis of the dynamic user profile<br>exten = 2222,1,NoOp()<br></div>same = n,Set(CONFBRIDGE(user,pin)=123456)<br></div><div>same = n,ConfBridge(some_id,bridge_basic,,admin_menu_basic)<br><br></div><div>If you explicitly specify a bridge, user, or menu profile to ConfBridge then that is what gets<br>used regardless of any dynamic profile you created.<br><br></div><div>See the online documentation:<br></div><div>core show application ConfBridge<br></div><div>or<br><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_ConfBridge">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_ConfBridge</a><br><br>config show help app_confbridge user_profile template<br></div><div>or<br><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Configuration_app_confbridge">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Configuration_app_confbridge</a><br></div><div><br></div><div>Richard<br></div></div><br></div></div>