diff options
author | Richard Mudgett <rmudgett@digium.com> | 2014-11-21 19:16:55 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2014-11-21 19:16:55 +0000 |
commit | 3576ae47f44136a1751b937615aff7e8ee64026a (patch) | |
tree | d7d02aaa29d481484f1646cb10330e2c5b343fc6 /tests/test_channel_feature_hooks.c | |
parent | 4394e0431c81e80741273e4f3f63be4137716ff5 (diff) |
manager: Fix could not extend string messages.
When shutting down Asterisk that has an active AMI connection, you get
several "failed to extend from %d to %d" messages because use of the
EVENT_FLAG_SHUTDOWN attempts to add all AMI permission strings to the
event.
* Created MAX_AUTH_PERM_STRING to use when creating stack based struct
ast_str variables used with the authority_to_str() and
user_authority_to_str() functions instead of a variety of magic numbers
that could be too small.
* Added a special check for EVENT_FLAG_SHUTDOWN to authority_to_str() so
it will not attempt to add all permission level strings.
Review: https://reviewboard.asterisk.org/r/4200/
........
Merged revisions 428570 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 428571 from http://svn.asterisk.org/svn/asterisk/branches/12
........
Merged revisions 428572 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@428573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'tests/test_channel_feature_hooks.c')
0 files changed, 0 insertions, 0 deletions