[asterisk-bugs] [JIRA] (ASTERISK-27428) On Asterisk 15.1.0, AlarmReceiver() Application not flushing detected event to the event-file
Joshua Colp (JIRA)
noreply at issues.asterisk.org
Tue Dec 5 12:30:07 CST 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-27428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joshua Colp updated ASTERISK-27428:
-----------------------------------
Reference Notes:
To get the event info flushed to the event-file I had to set ALARMRECEIVER_RETRIES_LIMIT=2, doing so , it tries twice, but also does flush the first event to the spool file.
Seems the problem could be at line:698 of app_alarmreceiver.c Refer: https://github.com/asterisk/asterisk/blob/fecd5b4d912c3a682279bd888341e0f038a40e4e/apps/app_alarmreceiver.c#L698.
I made the following changes and it did work:
<change removed due to licensing>
was:
To get the event info flushed to the event-file I had to set ALARMRECEIVER_RETRIES_LIMIT=2, doing so , it tries twice, but also does flush the first event to the spool file.
Seems the problem could be at line:698 of app_alarmreceiver.c Refer: https://github.com/asterisk/asterisk/blob/fecd5b4d912c3a682279bd888341e0f038a40e4e/apps/app_alarmreceiver.c#L698.
I made the following changes and it did work:
--- asterisk-15.1.0/apps/app_alarmreceiver.c 2017-10-30 21:19:35.000000000 +0530
+++ custom-asterisk-15.1.0/apps/app_alarmreceiver.c 2017-11-17 14:10:54.699919793 +0530
@@ -695,7 +695,7 @@
limit = pbx_builtin_getvar_helper(chan, "ALARMRECEIVER_RETRIES_LIMIT");
ast_channel_unlock(chan);
if (!ast_strlen_zero(limit)) {
- if (limit_retries + 1 >= atoi(limit)) {
+ if (limit_retries >= atoi(limit)) {
return -1;
}
}
> On Asterisk 15.1.0, AlarmReceiver() Application not flushing detected event to the event-file
> ---------------------------------------------------------------------------------------------
>
> Key: ASTERISK-27428
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-27428
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Applications/app_alarmreceiver
> Affects Versions: 15.1.0
> Environment: OS: Scientific Linux release 6.9 (Carbon)
> UNAME: Linux machine03 2.6.32-642.4.2.el6.x86_64 #1 SMP Tue Aug 23 11:15:56 CDT 2016 x86_64 x86_64 x86_64 GNU/Linux
> Reporter: J N
> Severity: Minor
>
> Refer AlarmReceiver() Application doc @ https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+Application_AlarmReceiver.
> AlarmReceiver’s variable ALARMRECEIVER_RETRIES_LIMIT when set to “1”, as expected it does exit after one event is processed,but it fails to flush the event to the event-file.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list