<div dir="ltr"><div><br></div>On Mon, Jun 24, 2013 at 2:37 PM, James B. Byrne <span dir="ltr"><<a href="mailto:byrnejb@harte-lyne.ca" target="_blank">byrnejb@harte-lyne.ca</a>></span> wrote:<br><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Arch = x86_64<br>
OS = CentOS-6.4 (freepbx)<br>
Asterisk = 11.4.0<br>
FreePBX = 2.11.0.2<br>
<br>
Snom870 Handsets<br>
<br>
<br>
We are in the process of moving to an Asterisk based PBX. At the<br>
moment most things work as we wish. However, I have just notices that<br>
when I force a reload using 'amportal a reload' I see this loop start<br>
in 'asterisk -rvvvvvvvvvv':<br>
<br>
> Channel Local/s@tc-maint-000002a4;1 was answered.<br>
> Launching NoCDR() on Local/s@tc-maint-000002a4;1<br>
[2013-06-24 15:22:32] NOTICE[32678]: pbx_spool.c:402 attempt_thread:<br>
Call completed to Local/s@tc-maint<br>
[2013-06-24 15:22:32] NOTICE[32678]: pbx_spool.c:402 attempt_thread:<br>
Call completed to Local/s@tc-maint<br>
== Spawn extension (tc-maint, s, 5) exited non-zero on<br>
'Local/s@tc-maint-000002a4;2'<br>
-- Attempting call on Local/s@tc-maint for application NoCDR()<br>
(Retry 1)<br>
-- Executing [s@tc-maint:1] NoCDR("Local/s@tc-maint-000002a6;2",<br>
"") in new stack<br>
-- Executing [s@tc-maint:2] Set("Local/s@tc-maint-000002a6;2",<br>
"TCMAINT=RETURN") in new stack<br>
-- Executing [s@tc-maint:3] Gosub("Local/s@tc-maint-000002a6;2",<br>
"timeconditions,1,1()") in new stack<br>
-- Executing [1@timeconditions:1]<br>
GotoIfTime("Local/s@tc-maint-000002a6;2",<br>
"08:00-17:00,mon-fri,*,*?truestate") in new stack<br>
-- Goto (timeconditions,1,9)<br>
-- Executing [1@timeconditions:9]<br>
GotoIf("Local/s@tc-maint-000002a6;2", "0?falsegoto") in new stack<br>
-- Executing [1@timeconditions:10]<br>
ExecIf("Local/s@tc-maint-000002a6;2", "0?Set(DB(TC/1)=)") in new<br>
stack<br>
-- Executing [1@timeconditions:11]<br>
Set("Local/s@tc-maint-000002a6;2",<br>
"DEVICE_STATE(Custom:TC1)=NOT_INUSE") in new stack<br>
-- Executing [1@timeconditions:12]<br>
ExecIf("Local/s@tc-maint-000002a6;2",<br>
"0?Set(DEVICE_STATE(Custom:TCSTICKY)=INUSE)") in new stack<br>
-- Executing [1@timeconditions:13]<br>
GotoIf("Local/s@tc-maint-000002a6;2", "0?ext-group,417,1") in new<br>
stack<br>
-- Executing [1@timeconditions:14]<br>
Set("Local/s@tc-maint-000002a6;2", "TCSTATE=true") in new stack<br>
-- Executing [1@timeconditions:15]<br>
Return("Local/s@tc-maint-000002a6;2", "") in new stack<br>
-- Executing [s@tc-maint:4] System("Local/s@tc-maint-000002a6;2",<br>
"/var/lib/asterisk/bin/schedtc.php 60 /var/spool/asterisk/outgoing<br>
1") in new stack<br>
-- Executing [s@tc-maint:5] Answer("Local/s@tc-maint-000002a5;2",<br>
"") in new stack<br>
> Channel Local/s@tc-maint-000002a5;1 was answered.<br>
> Launching NoCDR() on Local/s@tc-maint-000002a5;1<br>
[2013-06-24 15:22:32] NOTICE[32681]: pbx_spool.c:402 attempt_thread:<br>
Call completed to Local/s@tc-maint<br>
[2013-06-24 15:22:32] NOTICE[32681]: pbx_spool.c:402 attempt_thread:<br>
Call completed to Local/s@tc-maint<br>
<br>
It is not an infinite loop but it does go on for an inordinately long<br>
time. Does anyone here recognize what is happening and can provide me<br>
with an explanation?<br></blockquote><div><br></div><div style>Since it is pbx_spool doing the processing, you probably have something creating a callfile in /var/spool/asterisk/outgoing on startup (or periodically).</div>
<div style><br></div><div style>I did a quick Google search and found out that this particular context is used by FreePBX 2.9's Time Conditions feature - see <a href="http://www.freepbx.org/forum/freepbx-distro/distro-discussion-help/odd-failed-calls-in-logs">http://www.freepbx.org/forum/freepbx-distro/distro-discussion-help/odd-failed-calls-in-logs</a> for more information.</div>
</div><div><br></div>-- <br><div dir="ltr"><div>Matthew Jordan<br></div><div>Digium, Inc. | Engineering Manager</div><div>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div><div>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></div>
</div>
</div></div>