Review Board 1.7.16


confbridge: Restore menu name associated with confbridge user to CLI output of 'confbridge list XXX'

Review Request #4372 - Created Jan. 26, 2015 and submitted

Matt Jordan
13
ASTERISK-24723
Reviewers
asterisk-dev
jrose
Asterisk
When issuing a 'confbridge list XXXX' CLI command, the resulting output no longer displays the menu associated with a ConfBridge participant:

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

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.

This patch fixes the issue by copying the menu name over to the user profile when the menu hooks are applied to the user. Since that function now does a little bit more than just apply the hooks, the name of the function has been changed to cover the copying of the menu name over as well.

In addition, there is a disparity between the menu name length as it is stored on the conf_menu structure and the confbridge_user structure; this patch makes the lengths match so that a strcpy can be used.
Ran the CLI command. The output now shows the menu associated with the user.
Total:
1
Open:
0
Resolved:
1
Dropped:
0
Status:
From:
Review request changed
Updated (Jan. 27, 2015, 11:25 a.m.)
  • changed from pending to submitted
Committed in revision 431156

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.