[Home]

Summary:ASTERISK-24723: confbridge: CLI command 'confbridge list XXXX' no longer displays user menus
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2015-01-26 09:50:31.000-0600Date Closed:2015-01-27 11:12:29.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Applications/app_confbridge
Versions:13.1.0 Frequency of
Occurrence
Related
Issues:
is caused byASTERISK-22760 ConfBridge: CONFBRIDGE function does not allow for dynamic creation of menu items
Environment:Attachments:( 0) ASTERISK-24723-13.diff
Description:When issuing a {{confbridge list XXXX}} CLI command, the resulting output no longer displays the menu associated with a ConfBridge participant:

{noformat}
same => n,ConfBridge(8888,,default_user,menu_1)
{noformat}

{noformat}
Channel                        Flags  User Profile     Bridge Profile   Menu             CallerID
============================== ====== ================ ================ ================ ================
PJSIP/1601-00000004                   default_user     default_bridge                    1601
{noformat}

The issue was caused by ASTERISK-22760. When that patch was done, it removed the copying of the menu name associated with the user from the actual user profile:

{code}
/* menu name */
- if (args.argc > 3 && !ast_strlen_zero(args.menu_name)) {
- ast_copy_string(user.menu_name, args.menu_name, sizeof(user.menu_name));
- if (conf_set_menu_to_user(user.menu_name, &user)) {
- ast_log(LOG_WARNING, "Conference menu %s does not exist and can not be applied to confbridge user.\n",
- args.menu_name);
- res = -1; /* invalid PIN */
- goto confbridge_cleanup;
- }
+ if (args.argc > 3 && !ast_strlen_zero(args.menu_profile_name)) {
+ menu_profile_name = args.menu_profile_name;
}
{code}

That {{ast_copy_string}} (or an equivalent) is still needed somewhere.
Comments: