For some reason every time we come back in the morning, we cannot make or receive calls on the Zap/Dahdi interface. It has taken me some time to be able to source what the problem might be, and in fact the only way to resolve it is to reset the whole server.
This morning I’ve had a look through the overnight log, which I’ve set as full/verbose/everything under the sun!.. and think I may have found the source of the problem… Can someone make any suggestions as to what might be causing it?
[quote][Nov 25 02:12:50] VERBOSE[21977] logger.c: == Starting post polarity CID detection on channel 1
[Nov 25 02:12:50] VERBOSE[17310] logger.c: – Starting simple switch on ‘Zap/1-1’
[Nov 25 02:12:51] NOTICE[17310] chan_dahdi.c: Got event 4 (Alarm)…
[Nov 25 02:12:51] DEBUG[17310] chan_dahdi.c: Ignoring Polarity switch to IDLE on channel 1, state 9
[Nov 25 02:12:51] DEBUG[17310] chan_dahdi.c: Polarity Reversal event occured - DEBUG 2: channel 1, state 9, pol= 0, aonp= 0, honp= 0, pdelay= 600, tv= -781474917
[Nov 25 02:12:52] NOTICE[17310] chan_dahdi.c: Alarm cleared on channel 1
[Nov 25 02:12:52] DEBUG[17310] chan_dahdi.c: Ignore switch to REVERSED Polarity on channel 1, state 9
[Nov 25 02:12:52] DEBUG[17310] chan_dahdi.c: Ignoring Polarity switch to IDLE on channel 1, state 9
[Nov 25 02:12:52] DEBUG[17310] chan_dahdi.c: Polarity Reversal event occured - DEBUG 2: channel 1, state 9, pol= 0, aonp= 0, honp= 0, pdelay= 600, tv= -781473731
[Nov 25 02:12:53] WARNING[17310] chan_dahdi.c: Detected alarm on channel 1: Red Alarm
[Nov 25 02:12:53] WARNING[17310] chan_dahdi.c: Hangup received waiting for ring. Exiting simple switch
[Nov 25 02:12:53] VERBOSE[17310] logger.c: – Hungup ‘Zap/1-1’
[Nov 25 02:12:54] VERBOSE[21977] logger.c: == Starting post polarity CID detection on channel 1
[Nov 25 02:12:54] VERBOSE[17316] logger.c: – Starting simple switch on ‘Zap/1-1’
[Nov 25 02:12:55] NOTICE[17316] chan_dahdi.c: Got event 5 (No more alarm)…
[Nov 25 02:12:57] WARNING[17316] chan_dahdi.c: CID timed out waiting for ring. Exiting simple switch
[Nov 25 02:12:57] VERBOSE[17316] logger.c: – Hungup ‘Zap/1-1’
…
[Nov 25 07:24:14] VERBOSE[21977] logger.c: == Starting post polarity CID detection on channel 1
[Nov 25 07:24:14] VERBOSE[2550] logger.c: – Starting simple switch on ‘Zap/1-1’
[Nov 25 07:24:16] NOTICE[2550] chan_dahdi.c: CallerID number: 901234567890, name: EXTERNAL, flags=0
[Nov 25 07:24:18] WARNING[2550] chan_dahdi.c: CID timed out waiting for ring. Exiting simple switch
[Nov 25 07:24:18] VERBOSE[2550] logger.c: – Hungup ‘Zap/1-1’
…
[Nov 25 07:24:53] VERBOSE[21977] logger.c: == Starting post polarity CID detection on channel 1
[Nov 25 07:24:53] VERBOSE[2756] logger.c: – Starting simple switch on ‘Zap/1-1’
[Nov 25 07:24:53] NOTICE[2756] chan_dahdi.c: Got event 2 (Ring/Answered)…
[Nov 25 07:24:55] WARNING[2756] chan_dahdi.c: CID timed out waiting for ring. Exiting simple switch
[Nov 25 07:24:55] VERBOSE[2756] logger.c: – Hungup ‘Zap/1-1’
…
[Nov 25 07:27:38] VERBOSE[3767] logger.c: – Executing [9123456@DLPN_Nursery:1] Macro(“Zap/3-1”, “trunkdial-failover-0.3|Zap/g2/9123456|IAX2/123456/441234123456|trunk_1|84435161”) in new stack
[Nov 25 07:27:38] VERBOSE[3767] logger.c: – Executing [s@macro-trunkdial-failover-0.3:1] Set(“Zap/3-1”, “CALLERID(num)=”) in new stack
[Nov 25 07:27:38] DEBUG[3767] app_macro.c: Executed application: Set
[Nov 25 07:27:38] VERBOSE[3767] logger.c: – Executing [s@macro-trunkdial-failover-0.3:2] GotoIf(“Zap/3-1”, “0?1-dial|1”) in new stack
[Nov 25 07:27:38] DEBUG[3767] app_macro.c: Executed application: GotoIf
[Nov 25 07:27:38] VERBOSE[3767] logger.c: – Executing [s@macro-trunkdial-failover-0.3:3] Set(“Zap/3-1”, “CALLERID(all)=01234567890”) in new stack
[Nov 25 07:27:38] DEBUG[3767] app_macro.c: Executed application: Set
[Nov 25 07:27:38] VERBOSE[3767] logger.c: – Executing [s@macro-trunkdial-failover-0.3:4] Goto(“Zap/3-1”, “1-dial|1”) in new stack
[Nov 25 07:27:38] VERBOSE[3767] logger.c: – Goto (macro-trunkdial-failover-0.3,1-dial,1)
[Nov 25 07:27:38] DEBUG[3767] app_macro.c: Executed application: Goto
[Nov 25 07:27:38] VERBOSE[3767] logger.c: – Executing [1-dial@macro-trunkdial-failover-0.3:1] Dial(“Zap/3-1”, “Zap/g2/9123456”) in new stack
[Nov 25 07:27:38] WARNING[3767] app_dial.c: Unable to create channel of type ‘Zap’ (cause 34 - Circuit/channel congestion)
[Nov 25 07:27:38] VERBOSE[3767] logger.c: == Everyone is busy/congested at this time (1:0/1/0)
[Nov 25 07:27:38] DEBUG[3767] app_macro.c: Executed application: Dial
[Nov 25 07:27:38] VERBOSE[3767] logger.c: – Executing [1-dial@macro-trunkdial-failover-0.3:2] GotoIf(“Zap/3-1”, “26 > 0 ?1-CONGESTION|1:1-out|1”) in new stack
[Nov 25 07:27:38] VERBOSE[3767] logger.c: – Goto (macro-trunkdial-failover-0.3,1-CONGESTION,1)
[Nov 25 07:27:38] DEBUG[3767] app_macro.c: Executed application: Gotoif
[Nov 25 07:27:38] VERBOSE[3767] logger.c: – Executing [1-CONGESTION@macro-trunkdial-failover-0.3:1] Dial(“Zap/3-1”, “IAX2/84435161/441452731880”) in new stack
[Nov 25 07:27:38] WARNING[3767] app_dial.c: Unable to create channel of type ‘IAX2’ (cause 20 - Unknown)
[Nov 25 07:27:38] VERBOSE[3767] logger.c: == Everyone is busy/congested at this time (1:0/0/1)
[Nov 25 07:27:38] DEBUG[3767] app_macro.c: Executed application: Dial
[Nov 25 07:27:38] VERBOSE[3767] logger.c: – Executing [1-CONGESTION@macro-trunkdial-failover-0.3:2] Hangup(“Zap/3-1”, “”) in new stack
[Nov 25 07:27:38] VERBOSE[3767] logger.c: == Spawn extension (macro-trunkdial-failover-0.3, 1-CONGESTION, 2) exited non-zero on ‘Zap/3-1’ in macro ‘trunkdial-failover-0.3’
[Nov 25 07:27:38] VERBOSE[3767] logger.c: == Spawn extension (macro-trunkdial-failover-0.3, 1-CONGESTION, 2) exited non-zero on ‘Zap/3-1’
[Nov 25 07:27:38] VERBOSE[3767] logger.c: – Hungup ‘Zap/3-1’
[/quote]
As a bit of explanation… Zap channels 1 & 2 are PSTN lines (fxo), and 3 is a telephone (i.e. fxs).
It’s the events at 2:12 am that concern me, as I think it must be something reseting on the telephone line, causing a failure, but I’m not sure.
Thanks
Nunners