Now-a-days we are facing strange and serious issue with DAHDI calling. We are using FreePBX with this card. We are getting message “All Circuits are busy now”. I am novice to handle this issue so please suggest me some steps to get rid off this issue.
If I power down my PRI Modem or disconnect cable between PRI Modem and PBX for 10 minutes, my DAHDI calls start working. After sometime calls stop working again.
; Autogenerated by /usr/sbin/dahdi_genconf on Thu Jan 11 18:55:11 2018
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;
Well we restarted our pri modem and the calls started for couple of minutes then again All Circuits are busy now message appeared. Below are the logs after the message :-
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > [04 03 80 90 a3]
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: Speech (0)
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > User information layer 1: A-Law (35)
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > [18 03 a1 83 81]
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Preferred Dchan: 0
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > ChanSel: As indicated in following octets
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Ext: 1 Coding: 0 Number Specified Channel Type: 3
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Ext: 1 Channel: 1 Type: CPE]
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > [6c 05 21 80 38 36 36]
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Calling Party Number (len= 7) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Presentation: Presentation allowed, User-provided, not screened (0) ‘866’ ]
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > [70 0b 80 38 38 31 37 38 39 35 36 38 33]
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Called Party Number (len=13) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) ‘XXXXXXXXXX’ ]
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > [a1]
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Sending Complete (len= 1)
2018-01-12 12:40:03 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 q931.c:6350 q931_setup: Call 32785 enters state 1 (Call Initiated). Hold state: Idle
2018-01-12 12:40:03 NOTICE [3139] chan_dahdi.c:
PRI got event: HDLC Abort (6) on D-channel of span 1
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 TEI=0 Sending REJ N®=0
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=10
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 17/0x11) (Sent to originator)
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Message Type: SETUP ACKNOWLEDGE (13)
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < [18 03 a9 83 81]
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < ChanSel: As indicated in following octets
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Ext: 1 Coding: 0 Number Specified Channel Type: 3
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Ext: 1 Channel: 1 Type: CPE]
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 Received message for call 0x1b2408d0 on link 0x1b1473d0 TEI/SAPI 0/0
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 – Processing IE 24 (cs0, Channel ID)
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 q931.c:9211 post_handle_q931_message: Call 32785 enters state 2 (Overlap Sending). Hold state: Idle
2018-01-12 12:40:03 VERBOSE [3139] sig_pri.c:
Span 1: Processing event PRI_EVENT_SETUP_ACK(14)
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=5
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 17/0x11) (Sent to originator)
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Message Type: CALL PROCEEDING (2)
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 Received message for call 0x1b2408d0 on link 0x1b1473d0 TEI/SAPI 0/0
2018-01-12 12:40:03 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 q931.c:8846 post_handle_q931_message: Call 32785 enters state 3 (Outgoing Call Proceeding). Hold state: Idle
2018-01-12 12:40:03 VERBOSE [3139] sig_pri.c:
Span 1: Processing event PRI_EVENT_PROCEEDING(13)
2018-01-12 12:40:06
WARNING[5818][C-0000005c] func_presencestate.c: PRESENCE_STATE unknown
2018-01-12 12:40:11 NOTICE [3139] chan_dahdi.c:
PRI got event: HDLC Abort (6) on D-channel of span 1
2018-01-12 12:40:17 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 TEI=0 MDL-ERROR (I): T200 expired N200 times sending RR/RNR in state 8(Timer recovery)
2018-01-12 12:40:17 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 TEI=0 Sending SABME
2018-01-12 12:40:17 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 Changing from state 8(Timer recovery) to 5(Awaiting establishment)
2018-01-12 12:40:17 VERBOSE [3139] sig_pri.c:
Span 1: Processing event PRI_EVENT_DCHAN_DOWN(2)
2018-01-12 12:40:17 WARNING [3139] sig_pri.c:
Span 1: D-channel is down!
2018-01-12 12:40:17 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 TEI=0 Got UA
2018-01-12 12:40:17 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 Changing from state 5(Awaiting establishment) to 7(Multi-frame established)
2018-01-12 12:40:17 VERBOSE [3139] sig_pri.c:
Span 1: Processing event PRI_EVENT_DCHAN_UP(1)
2018-01-12 12:40:18 NOTICE [3139] chan_dahdi.c:
PRI got event: HDLC Abort (6) on D-channel of span 1
2018-01-12 12:40:21 NOTICE [3139] chan_dahdi.c:
PRI got event: HDLC Abort (6) on D-channel of span 1
2018-01-12 12:40:22 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 TEI=0 Got SABME from network peer.
2018-01-12 12:40:22 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 TEI=0 Sending UA
2018-01-12 12:40:22 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 TEI=0 MDL-ERROR (F): SABME in state 7(Multi-frame established)
2018-01-12 12:40:27
WARNING[5819][C-0000005d] func_presencestate.c: PRESENCE_STATE unknown
2018-01-12 12:41:15
WARNING[5823][C-0000005e] func_presencestate.c: PRESENCE_STATE unknown
2018-01-12 12:41:22
WARNING[5824][C-0000005f] func_presencestate.c: PRESENCE_STATE unknown
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 q931.c:7151 q931_hangup: Hangup other cref:32785
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 q931.c:6908 __q931_hangup: ourstate Outgoing Call Proceeding, peerstate Incoming Call Proceeding, hold-state Idle
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 q931.c:6097 q931_disconnect: Call 32785 enters state 11 (Disconnect Request). Hold state: Idle
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > DL-DATA request
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 17/0x11) (Sent from originator)
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Message Type: DISCONNECT (69)
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 TEI=0 Transmitting N(S)=0, window is open V(A)=0 K=7
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 17/0x11) (Sent from originator)
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Message Type: DISCONNECT (69)
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > [08 02 81 90]
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
2018-01-12 12:41:23 VERBOSE [5817] chan_dahdi.c:
PRI Span: 1 > Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=13
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 17/0x11) (Sent to originator)
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Message Type: RELEASE COMPLETE (90)
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < [08 06 82 d1 00 00 00 00]
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Cause (len= 8) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Public network serving the local user (2)
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Ext: 1 Cause: Invalid call reference value (81), class = Invalid message (e.g. parameter out of range) (5) ]
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Cause data 1: 00 (0)
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Cause data 2: 00 (0)
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Cause data 3: 00 (0)
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 < Cause data 4: 00 (0)
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 Received message for call 0x1b2408d0 on link 0x1b1473d0 TEI/SAPI 0/0
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 – Processing IE 8 (cs0, Cause)
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 q931.c:8959 post_handle_q931_message: Call 32785 enters state 0 (Null). Hold state: Idle
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 q931.c:7151 q931_hangup: Hangup other cref:32785
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 q931.c:6908 __q931_hangup: ourstate Null, peerstate Null, hold-state Idle
2018-01-12 12:41:23 VERBOSE [3139] chan_dahdi.c:
PRI Span: 1 Destroying call 0x1b2408d0, ourstate Null, peerstate Null, hold-state Idle
If you filter your logs on DCHAN, you will see that the d-channel is “bouncing” , you need to confirm with your provider that you have everything right on your end, if an E1 very often you need the D-channel to be set to hardhdlc and not dchan, but only your provider and you can know.