Problem:
Seems as if everything is working 100%, but every now and then the 2 dahdi channels just stops working. Almost as if the card does not hangup the call. How can this work for most of the day and then just stop working.
Doing a
CLI>dahdi restart
from the cli fixes the problem, but i would like to have the system working 101% as i need to roll out 70 systems with this setup. Any help would be highly appreciated.
Hardware:
Core 2 Quad 2.5 intel chip
2 gig ram
1 TB Hdrive
1 x 4ch TDM410 Digium Analog Card
Using only port 1 and 2 connected to telco company (Telkom SA)
OS and software:
Linux Ubuntu Desktop 10.04
Asterisk 1.6.2.8
Asterisk-addons-1.6.2.1
dahdi-linux-complete-2.3.0.1+2.3.0
libpri-1.4.11.1
/etc/asterisk/chan_dahdi.conf
group = 1
usecallerid = yes
hidecallerid = no
callwaiting = yes
threewaycalling = yes
transfer = yes
echocancel = yes
echocancelwhenbridged = yes
rxgain = 0.0
txgain = 0.0
context = from-bri
ringtimeout = 8000
channel => 1,2
/etc/dahdi/system.conf
loadzone = us
defaultzone = us
fxsks = 1-4
echocanceller = mg2,1-4
Here is the /var/log/asterisk/full
Here you can see the channels just stopped working and i had to restart dahdi to get it going again, and then works fine for another day or so.
[Jun 24 11:33:48] NOTICE[2244] chan_dahdi.c: Got event 2 (Ring/Answered)…
[Jun 24 11:33:49] NOTICE[2244] chan_dahdi.c: Got event 18 (Ring Begin)…
[Jun 24 11:33:50] WARNING[2244] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Unknown)
[Jun 24 11:34:27] NOTICE[2248] chan_dahdi.c: Got event 18 (Ring Begin)…
[Jun 24 11:34:28] NOTICE[2248] chan_dahdi.c: Got event 2 (Ring/Answered)…
[Jun 24 11:34:30] NOTICE[2248] chan_dahdi.c: Got event 18 (Ring Begin)…
[Jun 24 11:34:31] WARNING[2248] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Unknown)
[Jun 24 11:42:43] NOTICE[2275] chan_dahdi.c: Got event 18 (Ring Begin)…
[Jun 24 11:42:44] NOTICE[2275] chan_dahdi.c: Got event 2 (Ring/Answered)…
[Jun 24 11:42:46] NOTICE[2275] chan_dahdi.c: Got event 18 (Ring Begin)…
[Jun 24 11:42:47] WARNING[2275] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Unknown)
[Jun 24 11:49:12] WARNING[2297] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 11:49:35] WARNING[2298] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 11:49:59] WARNING[2299] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 11:52:22] WARNING[2300] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 11:52:50] WARNING[2301] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 11:53:34] WARNING[2304] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 11:54:11] WARNING[2305] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 11:54:54] WARNING[2306] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 12:14:49] WARNING[2315] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 12:18:05] WARNING[2320] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 12:18:23] WARNING[2321] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 12:18:25] WARNING[2322] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 12:19:15] WARNING[2324] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 12:20:42] WARNING[2325] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 12:23:44] WARNING[2328] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 12:27:45] WARNING[2329] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 12:29:17] WARNING[2340] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[Jun 24 12:35:19] VERBOSE[2458] chan_dahdi.c: Destroying channels and reloading DAHDI configuration.
[Jun 24 12:35:19] VERBOSE[2289] chan_dahdi.c: – Hungup ‘DAHDI/2-1’
[Jun 24 12:35:19] VERBOSE[2289] pbx.c: == Spawn extension (from-bri, 0827974722, 4) exited non-zero on ‘DAHDI/1-1’
[Jun 24 12:35:19] VERBOSE[2289] chan_dahdi.c: – Hungup ‘DAHDI/1-1’
[Jun 24 12:35:19] VERBOSE[2458] chan_dahdi.c: == Unregistered channel -2
[Jun 24 12:35:19] VERBOSE[2458] chan_dahdi.c: == Unregistered channel 1
[Jun 24 12:35:19] VERBOSE[2458] chan_dahdi.c: == Unregistered channel 2
[Jun 24 12:35:19] VERBOSE[2458] config.c: == Parsing ‘/etc/asterisk/chan_dahdi.conf’: [Jun 24 12:35:19] VERBOSE[2458] config.c: == Found
[Jun 24 12:35:19] VERBOSE[2458] config.c: == Parsing ‘/etc/asterisk/users.conf’: [Jun 24 12:35:19] VERBOSE[2458] config.c: == Found
[Jun 24 12:35:19] VERBOSE[2458] chan_dahdi.c: – Reconfigured channel 1, FXS Kewlstart signalling
[Jun 24 12:35:19] VERBOSE[2458] chan_dahdi.c: – Reconfigured channel 2, FXS Kewlstart signalling
[Jun 24 12:35:19] DEBUG[2458] chan_dahdi.c: Channel ‘1,2’ configured.
[Jun 24 12:35:19] VERBOSE[2458] chan_dahdi.c: – Automatically generated pseudo channel
[Jun 24 12:35:19] WARNING[2458] chan_dahdi.c: Ignoring any changes to ‘userbase’ (on reload) at line 23.
[Jun 24 12:35:19] WARNING[2458] chan_dahdi.c: Ignoring any changes to ‘vmsecret’ (on reload) at line 31.
[Jun 24 12:35:19] WARNING[2458] chan_dahdi.c: Ignoring any changes to ‘hassip’ (on reload) at line 35.
[Jun 24 12:35:19] WARNING[2458] chan_dahdi.c: Ignoring any changes to ‘hasiax’ (on reload) at line 39.
[Jun 24 12:35:19] WARNING[2458] chan_dahdi.c: Ignoring any changes to ‘hasmanager’ (on reload) at line 47.
[Jun 24 12:35:59] VERBOSE[2460] chan_dahdi.c: – Starting simple switch on ‘DAHDI/1-1’
[Jun 24 12:36:01] NOTICE[2460] chan_dahdi.c: Got event 18 (Ring Begin)…
[Jun 24 12:36:02] NOTICE[2460] chan_dahdi.c: Got event 2 (Ring/Answered)…
[Jun 24 12:36:04] NOTICE[2460] chan_dahdi.c: Got event 18 (Ring Begin)…
[Jun 24 12:36:04] VERBOSE[2460] pbx.c: – Executing [s@from-bri:1] Wait(“DAHDI/1-1”, “1”) in new stack
[Jun 24 12:36:05] VERBOSE[2460] pbx.c: – Executing [s@from-bri:2] Set(“DAHDI/1-1”, “CALLFILENAME=/recordings/incoming/20100624-123605-”) in new stack
[Jun 24 12:36:05] VERBOSE[2460] pbx.c: – Executing [s@from-bri:3] Monitor(“DAHDI/1-1”, “wav,/recordings/incoming/20100624-123605-,mb”) in new stack
[Jun 24 12:36:05] VERBOSE[2460] pbx.c: – Executing [s@from-bri:4] Dial(“DAHDI/1-1”, “SIP/401&SIP/402&SIP/403&SIP/404,90,tr”) in new stack
[Jun 24 12:36:05] VERBOSE[2460] netsock.c: == Using SIP RTP CoS mark 5
[Jun 24 12:36:05] VERBOSE[2460] app_dial.c: – Called 401
[Jun 24 12:36:05] VERBOSE[2460] netsock.c: == Using SIP RTP CoS mark 5
[Jun 24 12:36:05] VERBOSE[2460] app_dial.c: – Called 402
[Jun 24 12:36:05] VERBOSE[2460] netsock.c: == Using SIP RTP CoS mark 5
[Jun 24 12:36:05] VERBOSE[2460] app_dial.c: – Called 403
[Jun 24 12:36:05] VERBOSE[2460] netsock.c: == Using SIP RTP CoS mark 5
[Jun 24 12:36:05] WARNING[2460] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Unknown)
[Jun 24 12:36:05] VERBOSE[2460] app_dial.c: – SIP/401-000000b3 is ringing
[Jun 24 12:36:05] VERBOSE[2460] app_dial.c: – SIP/402-000000b4 is ringing
[Jun 24 12:36:05] VERBOSE[2460] app_dial.c: – SIP/403-000000b5 is ringing
[Jun 24 12:36:18] VERBOSE[2460] app_dial.c: – SIP/403-000000b5 answered DAHDI/1-1
[Jun 24 12:36:39] VERBOSE[2460] pbx.c: == Spawn extension (from-bri, s, 4) exited non-zero on ‘DAHDI/1-1’
[Jun 24 12:36:39] VERBOSE[2460] chan_dahdi.c: – Hungup ‘DAHDI/1-1’
[Jun 24 12:36:45] VERBOSE[2458] asterisk.c: – Remote UNIX connection disconnected
[Jun 24 12:37:01] VERBOSE[1508] netsock.c: == Using SIP RTP CoS mark 5
[Jun 24 12:37:01] VERBOSE[2471] pbx.c: – Executing [0761134528@from-bri:1] NoOp(“SIP/403-000000b6”, “Dialing 0761134528”) in new stack
[Jun 24 12:37:01] VERBOSE[2471] pbx.c: – Executing [0761134528@from-bri:2] Set(“SIP/403-000000b6”, “CALLFILENAME=/recordings/outgoing/20100624-123701-403”) in new stack
[Jun 24 12:37:01] VERBOSE[2471] pbx.c: – Executing [0761134528@from-bri:3] Monitor(“SIP/403-000000b6”, “wav,/recordings/outgoing/20100624-123701-403,mb”) in new stack
[Jun 24 12:37:01] VERBOSE[2471] pbx.c: – Executing [0761134528@from-bri:4] Dial(“SIP/403-000000b6”, “DAHDI/G1/0761134528,10,tw”) in new stack
[Jun 24 12:37:01] VERBOSE[2471] app_dial.c: – Called G1/0761134528
dahdi_test
dahdi_test
Opened pseudo dahdi interface, measuring accuracy…
99.990% 99.988% 99.990% 99.990% 99.990% 99.990% 99.990% 99.990%
99.990% 99.990% 99.990% 99.990% 99.990% 99.990% 99.990% 99.990% ^C
— Results after 16 passes —
Best: 99.990 – Worst: 99.988 – Average: 99.989954, Difference: 99.989954
Please help me find a solution. What could be wrong? What other information can i provide?