[asterisk-bugs] [JIRA] (ASTERISK-17444) callfiles stops after sometime

Joshua Colp (JIRA) noreply at issues.asterisk.org
Tue Dec 19 07:07:07 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-17444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Colp updated ASTERISK-17444:
-----------------------------------

    Assignee: waltermoeller
      Status: Waiting for Feedback  (was: Open)

Are you still experiencing this problem in recent supported versions of Asterisk?

> 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
>            Assignee: 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 was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list