[Asterisk-code-review] app voicemail: Add taskprocessor alert level options. (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Tue Aug 2 19:55:32 CDT 2016


Richard Mudgett has posted comments on this change.

Change subject: app_voicemail: Add taskprocessor alert level options.
......................................................................


Patch Set 5: Code-Review-1

(5 comments)

Minor nits except to allow setting the low water level to -1 to request the low level be 90% of the high water level.

https://gerrit.asterisk.org/#/c/3318/5//COMMIT_MSG
Commit Message:

Line 11: It could happen when IMAP or DB server died or not reachable.
It could happen when the IMAP or DB server dies or is unreachable.


PS5, Line 14: If taskprocessor queue reached high level, the alert is triggered
            : and the pjsip/distributor stops processing new requsts.
If the taskprocessor queue reaches the high water level then the alert is triggered and pjsip stops processing new requests until the queue reaches the low water level to clear the alert.


https://gerrit.asterisk.org/#/c/3318/5/apps/app_voicemail.c
File apps/app_voicemail.c:

Line 14042: 			if (sscanf(val, "%30ld", &tps_queue_low) != 1 || tps_queue_low <= 0 || tps_queue_low >= tps_queue_high) {
Allow -1 to indicate low is 90% of high.

if (sscanf() != 1 || tps_queue_high < tps_queue_low) then error and set default of -1.


Line 14048: 			ast_log(AST_LOG_WARNING, "failed to set alert levels for mwi subscription taskprocessor.\n");
s/failed/Failed/
s/mwi subscription/voicemail/


https://gerrit.asterisk.org/#/c/3318/5/configs/samples/voicemail.conf.sample
File configs/samples/voicemail.conf.sample:

Line 388: 			; The default is 90% of high water level.
The default is -1 for 90% of high water level.


-- 
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: 5
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