[Asterisk-code-review] app voicemail: adds configuration options to set taskprocess... (asterisk[13])
Alexei Gradinari
asteriskteam at digium.com
Thu Jul 28 16:28:17 CDT 2016
Alexei Gradinari has posted comments on this change.
Change subject: app_voicemail: adds configuration options to set taskprocessor alert levels
......................................................................
Patch Set 3:
(7 comments)
https://gerrit.asterisk.org/#/c/3318/3//COMMIT_MSG
Commit Message:
Line 7: app_voicemail: adds configuration options to set taskprocessor alert levels
> Long line. Suggest:
Done
https://gerrit.asterisk.org/#/c/3318/3/CHANGES
File CHANGES:
PS3, Line 15: app_voicemail
: ------------------
: * Added "tps_queue_high" and "tps_queue_low" options.
: The options can modify the taskprocessor alert levels for this module.
: Additional information can be found in the sample configuration file at
: config/samples/voicemail.conf.sample.
> v13.11.0-rc1 has been created so this needs to go into a new v13.12.0 secti
Done
https://gerrit.asterisk.org/#/c/3318/3/apps/app_voicemail.c
File apps/app_voicemail.c:
Line 13456: long tps_queue_low, tps_queue_high;
> I prefer one variable declaration per line. It makes it easier to find and
Done
Line 14034: tps_queue_high = atoi(val);
> use sscanf instead of atoi. sscanf has better error detection (especially
Done
Line 14036: ast_log(AST_LOG_WARNING, "Invalid the taskprocessor high water alert trigger level '%s'. Using default value.\n", val);
> guidelines: break long lines at 90
I think in case of embedded system is can be lower.
Line 14044: ast_log(AST_LOG_WARNING, "Invalid the taskprocessor low water clear alert level '%s'. Using default value.\n", val);
> long line
Done
https://gerrit.asterisk.org/#/c/3318/3/configs/samples/voicemail.conf.sample
File configs/samples/voicemail.conf.sample:
Line 387: ; tps_queue_low=450 ; Taskprocessor low water clear alert level.
> The default is 90% of high water level.
Done
--
To view, visit https://gerrit.asterisk.org/3318
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I766294fbffedf64053c0d9ac0bedd3109f043ee8
Gerrit-PatchSet: 3
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-Reviewer: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-HasComments: Yes
More information about the asterisk-code-review
mailing list