[asterisk-dev] [Code Review] 3408: app_voicemail: fix regression caused by dialplan function safety fixes - Asterisk 11 only
Corey Farrell
reviewboard at asterisk.org
Sun Mar 30 14:05:49 CDT 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3408/
-----------------------------------------------------------
(Updated March 30, 2014, 3:05 p.m.)
Review request for Asterisk Developers.
Changes
-------
Rename defaultlanguage to ast_defaultlanguage. I prefer this approach since ast_* can be considered to be reserved for asterisk core, and so we're not adding any exports outside the already reserved prefix.
Bugs: ASTERISK-23559
https://issues.asterisk.org/jira/browse/ASTERISK-23559
Repository: Asterisk
Description
-------
ASTERISK-23391 caused a regression in Asterisk 11. defaultlanguage is used as a fall-back when no channel is available. This variable is listed in options.h, allowing compile to succeed. This caused a run-time symbol failure because defaultlanguage is not listed in main/asterisk.exports.in.
This fix adds the variable to exports for Asterisk 11 only. I'm not against renaming the variable to ast_defaultlanguage in 11 if that is preferred. The function wasn't in Asterisk 1.8 so no change was made there, Asterisk 12 renames the variable to ast_defaultlanguage so it was not a problem in 12+.
Diffs (updated)
-----
/branches/11/utils/extconf.c 411572
/branches/11/main/channel.c 411572
/branches/11/main/asterisk.c 411572
/branches/11/include/asterisk/options.h 411572
/branches/11/apps/app_voicemail.c 411572
Diff: https://reviewboard.asterisk.org/r/3408/diff/
Testing
-------
Verified this corrects the symbol failure.
Thanks,
Corey Farrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140330/368b2a49/attachment.html>
More information about the asterisk-dev
mailing list