Re: [asterisk-users] Asterisk-11 loop behaviour
On Mon, Jun 24, 2013 at 2:37 PM, James B. Byrne byrn...@harte-lyne.cawrote: Arch = x86_64 OS = CentOS-6.4 (freepbx) Asterisk = 11.4.0 FreePBX = 2.11.0.2 Snom870 Handsets We are in the process of moving to an Asterisk based PBX. At the moment most things work as we wish. However, I have just notices that when I force a reload using 'amportal a reload' I see this loop start in 'asterisk -rvv': Channel Local/s@tc-maint-02a4;1 was answered. Launching NoCDR() on Local/s@tc-maint-02a4;1 [2013-06-24 15:22:32] NOTICE[32678]: pbx_spool.c:402 attempt_thread: Call completed to Local/s@tc-maint [2013-06-24 15:22:32] NOTICE[32678]: pbx_spool.c:402 attempt_thread: Call completed to Local/s@tc-maint == Spawn extension (tc-maint, s, 5) exited non-zero on 'Local/s@tc-maint-02a4;2' -- Attempting call on Local/s@tc-maint for application NoCDR() (Retry 1) -- Executing [s@tc-maint:1] NoCDR(Local/s@tc-maint-02a6;2, ) in new stack -- Executing [s@tc-maint:2] Set(Local/s@tc-maint-02a6;2, TCMAINT=RETURN) in new stack -- Executing [s@tc-maint:3] Gosub(Local/s@tc-maint-02a6;2, timeconditions,1,1()) in new stack -- Executing [1@timeconditions:1] GotoIfTime(Local/s@tc-maint-02a6;2, 08:00-17:00,mon-fri,*,*?truestate) in new stack -- Goto (timeconditions,1,9) -- Executing [1@timeconditions:9] GotoIf(Local/s@tc-maint-02a6;2, 0?falsegoto) in new stack -- Executing [1@timeconditions:10] ExecIf(Local/s@tc-maint-02a6;2, 0?Set(DB(TC/1)=)) in new stack -- Executing [1@timeconditions:11] Set(Local/s@tc-maint-02a6;2, DEVICE_STATE(Custom:TC1)=NOT_INUSE) in new stack -- Executing [1@timeconditions:12] ExecIf(Local/s@tc-maint-02a6;2, 0?Set(DEVICE_STATE(Custom:TCSTICKY)=INUSE)) in new stack -- Executing [1@timeconditions:13] GotoIf(Local/s@tc-maint-02a6;2, 0?ext-group,417,1) in new stack -- Executing [1@timeconditions:14] Set(Local/s@tc-maint-02a6;2, TCSTATE=true) in new stack -- Executing [1@timeconditions:15] Return(Local/s@tc-maint-02a6;2, ) in new stack -- Executing [s@tc-maint:4] System(Local/s@tc-maint-02a6;2, /var/lib/asterisk/bin/schedtc.php 60 /var/spool/asterisk/outgoing 1) in new stack -- Executing [s@tc-maint:5] Answer(Local/s@tc-maint-02a5;2, ) in new stack Channel Local/s@tc-maint-02a5;1 was answered. Launching NoCDR() on Local/s@tc-maint-02a5;1 [2013-06-24 15:22:32] NOTICE[32681]: pbx_spool.c:402 attempt_thread: Call completed to Local/s@tc-maint [2013-06-24 15:22:32] NOTICE[32681]: pbx_spool.c:402 attempt_thread: Call completed to Local/s@tc-maint It is not an infinite loop but it does go on for an inordinately long time. Does anyone here recognize what is happening and can provide me with an explanation? Since it is pbx_spool doing the processing, you probably have something creating a callfile in /var/spool/asterisk/outgoing on startup (or periodically). I did a quick Google search and found out that this particular context is used by FreePBX 2.9's Time Conditions feature - see http://www.freepbx.org/forum/freepbx-distro/distro-discussion-help/odd-failed-calls-in-logs for more information. -- Matthew Jordan Digium, Inc. | Engineering Manager 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: http://digium.com http://asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk-11 loop behaviour
On Tue, June 25, 2013 09:57, Matthew Jordan wrote: On Mon, Jun 24, 2013 at 2:37 PM, James B. Byrne byrn...@harte-lyne.cawrote: It is not an infinite loop but it does go on for an inordinately long time. Does anyone here recognize what is happening and can provide me with an explanation? Since it is pbx_spool doing the processing, you probably have something creating a callfile in /var/spool/asterisk/outgoing on startup (or periodically). I did a quick Google search and found out that this particular context is used by FreePBX 2.9's Time Conditions feature - see http://www.freepbx.org/forum/freepbx-distro/distro-discussion-help/odd-failed-calls-in-logs for more information. Thank you. Could I ask what search term you used for google? -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:byrn...@harte-lyne.ca Harte Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk-11 loop behaviour
On Tue, Jun 25, 2013 at 12:18 PM, James B. Byrne byrn...@harte-lyne.cawrote: On Tue, June 25, 2013 09:57, Matthew Jordan wrote: On Mon, Jun 24, 2013 at 2:37 PM, James B. Byrne byrn...@harte-lyne.cawrote: It is not an infinite loop but it does go on for an inordinately long time. Does anyone here recognize what is happening and can provide me with an explanation? Since it is pbx_spool doing the processing, you probably have something creating a callfile in /var/spool/asterisk/outgoing on startup (or periodically). I did a quick Google search and found out that this particular context is used by FreePBX 2.9's Time Conditions feature - see http://www.freepbx.org/forum/freepbx-distro/distro-discussion-help/odd-failed-calls-in-logs for more information. Thank you. Could I ask what search term you used for google? Sure - freepbx tc-maint But I did that after I looked at the FreePBX dialplan that came with AsteriskNOW and saw that the context tc-maint wasn't in there. -- Matthew Jordan Digium, Inc. | Engineering Manager 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: http://digium.com http://asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Asterisk-11 loop behaviour
Arch = x86_64 OS = CentOS-6.4 (freepbx) Asterisk = 11.4.0 FreePBX = 2.11.0.2 Snom870 Handsets We are in the process of moving to an Asterisk based PBX. At the moment most things work as we wish. However, I have just notices that when I force a reload using 'amportal a reload' I see this loop start in 'asterisk -rvv': Channel Local/s@tc-maint-02a4;1 was answered. Launching NoCDR() on Local/s@tc-maint-02a4;1 [2013-06-24 15:22:32] NOTICE[32678]: pbx_spool.c:402 attempt_thread: Call completed to Local/s@tc-maint [2013-06-24 15:22:32] NOTICE[32678]: pbx_spool.c:402 attempt_thread: Call completed to Local/s@tc-maint == Spawn extension (tc-maint, s, 5) exited non-zero on 'Local/s@tc-maint-02a4;2' -- Attempting call on Local/s@tc-maint for application NoCDR() (Retry 1) -- Executing [s@tc-maint:1] NoCDR(Local/s@tc-maint-02a6;2, ) in new stack -- Executing [s@tc-maint:2] Set(Local/s@tc-maint-02a6;2, TCMAINT=RETURN) in new stack -- Executing [s@tc-maint:3] Gosub(Local/s@tc-maint-02a6;2, timeconditions,1,1()) in new stack -- Executing [1@timeconditions:1] GotoIfTime(Local/s@tc-maint-02a6;2, 08:00-17:00,mon-fri,*,*?truestate) in new stack -- Goto (timeconditions,1,9) -- Executing [1@timeconditions:9] GotoIf(Local/s@tc-maint-02a6;2, 0?falsegoto) in new stack -- Executing [1@timeconditions:10] ExecIf(Local/s@tc-maint-02a6;2, 0?Set(DB(TC/1)=)) in new stack -- Executing [1@timeconditions:11] Set(Local/s@tc-maint-02a6;2, DEVICE_STATE(Custom:TC1)=NOT_INUSE) in new stack -- Executing [1@timeconditions:12] ExecIf(Local/s@tc-maint-02a6;2, 0?Set(DEVICE_STATE(Custom:TCSTICKY)=INUSE)) in new stack -- Executing [1@timeconditions:13] GotoIf(Local/s@tc-maint-02a6;2, 0?ext-group,417,1) in new stack -- Executing [1@timeconditions:14] Set(Local/s@tc-maint-02a6;2, TCSTATE=true) in new stack -- Executing [1@timeconditions:15] Return(Local/s@tc-maint-02a6;2, ) in new stack -- Executing [s@tc-maint:4] System(Local/s@tc-maint-02a6;2, /var/lib/asterisk/bin/schedtc.php 60 /var/spool/asterisk/outgoing 1) in new stack -- Executing [s@tc-maint:5] Answer(Local/s@tc-maint-02a5;2, ) in new stack Channel Local/s@tc-maint-02a5;1 was answered. Launching NoCDR() on Local/s@tc-maint-02a5;1 [2013-06-24 15:22:32] NOTICE[32681]: pbx_spool.c:402 attempt_thread: Call completed to Local/s@tc-maint [2013-06-24 15:22:32] NOTICE[32681]: pbx_spool.c:402 attempt_thread: Call completed to Local/s@tc-maint It is not an infinite loop but it does go on for an inordinately long time. Does anyone here recognize what is happening and can provide me with an explanation? -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:byrn...@harte-lyne.ca Harte Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users