[asterisk-dev] [Code Review] 4200: manager: Fix could not extend string messages.
rmudgett
reviewboard at asterisk.org
Fri Nov 21 12:47:18 CST 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4200/
-----------------------------------------------------------
(Updated Nov. 21, 2014, 12:47 p.m.)
Status
------
This change has been marked as submitted.
Review request for Asterisk Developers.
Changes
-------
Committed in revision 428570
Repository: Asterisk
Description
-------
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.
Note: The patch will be applied to v11+ with appropriate updates per branch.
Diffs
-----
/branches/13/main/manager.c 428298
Diff: https://reviewboard.asterisk.org/r/4200/diff/
Testing
-------
With the patch, the "failed to extend from %d to %d" messages no longer happen when shutting down Asterisk that has an AMI connection.
Thanks,
rmudgett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20141121/14b7f19d/attachment.html>
More information about the asterisk-dev
mailing list