[asterisk-bugs] [JIRA] (ASTERISK-17444) callfiles stops after sometime
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Wed Nov 20 17:30:03 CST 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-17444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Jordan updated ASTERISK-17444:
-----------------------------------
Description:
callfiles in spooldir ( handmade or automatic generated )
the files are executed, all looks fine.
After an houre, some hours, or some mins spooler stops
after shutdown and restart the files are executed
sip reload or or core reload dont help.
Version: 1.8.0 , 1.8.1.1, 1.8.-r1-r3 also svn build testet, always same Version
1.6 ok !
error Message in bug tracking is:
{noformat}
[Feb 21 02:00:50] ERROR[19246] pbx_spool.c: Unexpected event 8192 for file '#'
[Feb 21 02:00:50] ERROR[19246] pbx_spool.c: Unexpected event 32768 for file '950-21022011014551.call'
{noformat}
*ADDITIONAL INFORMATION*
here are used sip and iax channels.
OS: Linux Gentoo 64 Bit / i920 / 24GB ram, dedicated for Telefon and Routing
have trace error , problem is in pbx_spool file / scan_thread
errors are listet before / there is no file and var has old filename or crtl A,
me have used undef have_inotify , then it is ok !
bug must be here.
{noformat}
#ifdef HAVE_INOTIFY
int stage = 0;
/* Convert from seconds to milliseconds, unless there's nothing
in the queue already, in which case, we wait forever. */
int waittime = next == INT_MAX ? -1 : (next - now) * 1000;
/* When a file arrives, add it to the queue, in mtime order. */
if ((res = poll(&pfd, 1, waittime)) > 0 && (stage = 1) &&
(res = read(inotify_fd, &buf, sizeof(buf))) >= sizeof(*iev)) {
ssize_t len = 0;
/* File(s) added to directory, add them to my list */
for (iev = (void *) buf; res >= sizeof(*iev); iev = (struct inotify_event *) (((char *) iev) + len)) {
if (iev->mask & IN_CREATE) { queue_file_create(iev->name); }
else if (iev->mask & IN_CLOSE_WRITE)
{ queue_file_write(iev->name); }
else if (iev->mask & IN_MOVED_TO)
{ queue_file(iev->name, 0); }
else
{ ast_log(LOG_ERROR, "Unexpected event %d for file '%s'\n", (int) iev->mask, iev->name); }
len = sizeof(*iev) + iev->len;
res -= len;
}
} else if (res < 0 && errno != EINTR && errno != EAGAIN)
{ ast_debug(1, "Got an error back from %s(2): %s\n", stage ? "read" : "poll", strerror(errno)); }
#else
{noformat}
was:
callfiles in spooldir ( handmade or automatic generated )
the files are executed, all looks fine.
After an houre, some hours, or some mins spooler stops
after shutdown and restart the files are executed
sip reload or or core reload dont help.
Version: 1.8.0 , 1.8.1.1, 1.8.-r1-r3 also svn build testet, always same Version
1.6 ok !
error Message in bug tracking is:
[Feb 21 02:00:50] ERROR[19246] pbx_spool.c: Unexpected event 8192 for file '#'
[Feb 21 02:00:50] ERROR[19246] pbx_spool.c: Unexpected event 32768 for file '950-21022011014551.call'
****** ADDITIONAL INFORMATION ******
here are used sip and iax channels.
OS: Linux Gentoo 64 Bit / i920 / 24GB ram, dedicated for Telefon and Routing
> callfiles stops after sometime
> ------------------------------
>
> Key: ASTERISK-17444
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-17444
> Project: Asterisk
> Issue Type: Bug
> Components: PBX/pbx_spool
> Affects Versions: 1.8.2
> Reporter: waltermoeller
> Severity: Minor
>
> callfiles in spooldir ( handmade or automatic generated )
> the files are executed, all looks fine.
> After an houre, some hours, or some mins spooler stops
> after shutdown and restart the files are executed
> sip reload or or core reload dont help.
> Version: 1.8.0 , 1.8.1.1, 1.8.-r1-r3 also svn build testet, always same Version
> 1.6 ok !
> error Message in bug tracking is:
> {noformat}
> [Feb 21 02:00:50] ERROR[19246] pbx_spool.c: Unexpected event 8192 for file '#'
> [Feb 21 02:00:50] ERROR[19246] pbx_spool.c: Unexpected event 32768 for file '950-21022011014551.call'
> {noformat}
> *ADDITIONAL INFORMATION*
> here are used sip and iax channels.
> OS: Linux Gentoo 64 Bit / i920 / 24GB ram, dedicated for Telefon and Routing
> have trace error , problem is in pbx_spool file / scan_thread
> errors are listet before / there is no file and var has old filename or crtl A,
> me have used undef have_inotify , then it is ok !
> bug must be here.
> {noformat}
> #ifdef HAVE_INOTIFY
> int stage = 0;
> /* Convert from seconds to milliseconds, unless there's nothing
> in the queue already, in which case, we wait forever. */
> int waittime = next == INT_MAX ? -1 : (next - now) * 1000;
> /* When a file arrives, add it to the queue, in mtime order. */
> if ((res = poll(&pfd, 1, waittime)) > 0 && (stage = 1) &&
> (res = read(inotify_fd, &buf, sizeof(buf))) >= sizeof(*iev)) {
> ssize_t len = 0;
> /* File(s) added to directory, add them to my list */
> for (iev = (void *) buf; res >= sizeof(*iev); iev = (struct inotify_event *) (((char *) iev) + len)) {
> if (iev->mask & IN_CREATE) { queue_file_create(iev->name); }
> else if (iev->mask & IN_CLOSE_WRITE)
> { queue_file_write(iev->name); }
> else if (iev->mask & IN_MOVED_TO)
> { queue_file(iev->name, 0); }
> else
> { ast_log(LOG_ERROR, "Unexpected event %d for file '%s'\n", (int) iev->mask, iev->name); }
> len = sizeof(*iev) + iev->len;
> res -= len;
> }
> } else if (res < 0 && errno != EINTR && errno != EAGAIN)
> { ast_debug(1, "Got an error back from %s(2): %s\n", stage ? "read" : "poll", strerror(errno)); }
> #else
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list