]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_confbridge: Restore user's menu name to CLI output of 'confbridge list'
authorMatthew Jordan <mjordan@digium.com>
Tue, 27 Jan 2015 17:18:46 +0000 (17:18 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 27 Jan 2015 17:18:46 +0000 (17:18 +0000)
commit757e99a668d783972b5ec9a106fbcc7c1dc6488a
tree6a7474d2e834e846c22a91f274fe813be6f4f234
parent9a324112ef872d8926e15de6937c1dfab67a8e0a
app_confbridge: Restore user's menu name to CLI output of 'confbridge list'

When issuing a 'confbridge list XXXX' CLI command, the resulting output no
longer displays the menu associated with a ConfBridge participant.

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.

Review: https://reviewboard.asterisk.org/r/4372/

ASTERISK-24723 #close
Reported by: Steve Pitts
........

Merged revisions 431134 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/13.1@431140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/confbridge/conf_config_parser.c
apps/confbridge/include/confbridge.h