support

All Circuits are busy now

imranmcse
Posts: 14
Member Since:
2007-03-20

I recently installed Trixbox 2.6.1 and configured Sangoma A101D perfectly. But I can't make outbound calls and can't receive incoming calls too.I don't know what's the problem please help?



GSnover
Posts: 1406
Member Since:
2006-11-19
Post several things:

1) dmesg | grep Zap
2) /etc/zaptel.conf
3) /etc/asterisk/zapata.conf and /etc/asterisk/zapata-auto.conf
4) ztcfg -vv
5) from the Asterisk CLI, zap show status
6) from the Asterisk CLI, zap show channels
7) with the CLI open, make a few test calls and capture the results and post here.

Post that info, and a solution is surely forthcoming.

Greg



imranmcse
Posts: 14
Member Since:
2007-03-20
[TrixboxDIC ~]# dmesg | grep

[TrixboxDIC ~]# dmesg | grep Zap
Zapata Telephony Interface Registered on major 196
Zaptel Version: 1.4.10.1
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM DCHAN Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
wanpipe1: Enable Zaptel HW DCHAN interface
wanpipe1: Wanpipe device is registered to Zaptel span # 1!
[TrixboxDIC ~]#

======================
/etc/zaptel.conf:

# Autogenerated by /usr/sbin/genzaptelconf -- do not hand edit
# Zaptel Configuration File
#
# This file is parsed by the Zaptel Configurator, ztcfg
#

# It must be in the module loading order

# Span 1: WPE1/0 "wanpipe1 card 0" (MASTER) HDB3/CCS
span=1,1,0,ccs,hdb3,crc4
# termtype: te
bchan=1-15,17-31
dchan=16

# Global data

loadzone = us
defaultzone = us
=====================
/etc/asterisk/zapata.conf

;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=en
context=from-pstn
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
;echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=0
pickupgroup=0
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include genzaptelconf configs
#include zapata-auto.conf

group=0

;Include AMP configs
#include zapata_additional.conf

===================
/etc/asterisk/zapata-auto.conf
; Autogenerated by /usr/sbin/genzaptelconf -- do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended
; to be #include-d by /etc/zapata.conf that will include the global settings
;

; Span 1: WPE1/0 "wanpipe1 card 0" (MASTER) HDB3/CCS
group=0,11
context=from-zaptel
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
group=
context=default

===================
ztcfg -vv:

[TrixboxDIC ~]# ztcfg -vv

Zaptel Version: 1.4.10.1
Echo Canceller: OSLEC
Configuration
======================

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
Channel 22: Clear channel (Default) (Slaves: 22)
Channel 23: Clear channel (Default) (Slaves: 23)
Channel 24: Clear channel (Default) (Slaves: 24)
Channel 25: Clear channel (Default) (Slaves: 25)
Channel 26: Clear channel (Default) (Slaves: 26)
Channel 27: Clear channel (Default) (Slaves: 27)
Channel 28: Clear channel (Default) (Slaves: 28)
Channel 29: Clear channel (Default) (Slaves: 29)
Channel 30: Clear channel (Default) (Slaves: 30)
Channel 31: Clear channel (Default) (Slaves: 31)

31 channels to configure.

[TrixboxDIC ~]#

===================================
zap show status:

TrixboxDIC*CLI> zap show status
Description Alarms IRQ bpviol CRC4
wanpipe1 card 0 OK 0 0 0

==================================
zap show channels:

TrixboxDIC*CLI> zap show channels
Chan Extension Context Language MOH Interpret
pseudo default en default
1 from-zaptel en default
2 from-zaptel en default
3 from-zaptel en default
4 from-zaptel en default
5 from-zaptel en default
6 from-zaptel en default
7 from-zaptel en default
8 from-zaptel en default
9 from-zaptel en default
10 from-zaptel en default
11 from-zaptel en default
12 from-zaptel en default
13 from-zaptel en default
14 from-zaptel en default
15 from-zaptel en default
17 from-zaptel en default
18 from-zaptel en default
19 from-zaptel en default
20 from-zaptel en default
21 from-zaptel en default
22 from-zaptel en default
23 from-zaptel en default
24 from-zaptel en default
25 from-zaptel en default
26 from-zaptel en default
27 from-zaptel en default
28 from-zaptel en default
29 from-zaptel en default
30 from-zaptel en default
31 from-zaptel en default
================================

When I make outbound calls it shows this in CLI:

TrixboxDIC*CLI>
== Primary D-Channel on span 1 down
== Primary D-Channel on span 1 up
-- Executing [90508389916@from-internal:1] Macro("SIP/813-b77055e0", "user-callerid|SKIPTTL|") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("SIP/813-b77055e0", "user-callerid: device 813") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/813-b77055e0", "AMPUSER=813") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/813-b77055e0", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/813-b77055e0", "1|Set|REALCALLERIDNUM=813") in new stack
-- Executing [s@macro-user-callerid:5] NoOp("SIP/813-b77055e0", "REALCALLERIDNUM is 813") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/813-b77055e0", "AMPUSER=813") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/813-b77055e0", "AMPUSERCIDNAME=Imran") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/813-b77055e0", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/813-b77055e0", "AMPUSERCID=813") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/813-b77055e0", "CALLERID(all)="Imran" <813>") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/813-b77055e0", "REALCALLERIDNUM=813") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("SIP/813-b77055e0", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:13] NoOp("SIP/813-b77055e0", "TTL: ARG1: SKIPTTL") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/813-b77055e0", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("SIP/813-b77055e0", "Using CallerID "Imran" <813>") in new stack
-- Executing [90508389916@from-internal:2] Set("SIP/813-b77055e0", "_NODEST=") in new stack
-- Executing [90508389916@from-internal:3] Macro("SIP/813-b77055e0", "record-enable|813|OUT|") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/813-b77055e0", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/813-b77055e0", "recordingcheck|20080803-214018|1217814018.21") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20080803-214018|1217814018.21: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] NoOp("SIP/813-b77055e0", "No recording needed") in new stack
-- Executing [90508389916@from-internal:4] Macro("SIP/813-b77055e0", "dialout-trunk|1|0508389916||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/813-b77055e0", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/813-b77055e0", "0|Authenticate|") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/813-b77055e0", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/813-b77055e0", "DIAL_NUMBER=0508389916") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/813-b77055e0", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/813-b77055e0", "GROUP()=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/813-b77055e0", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/813-b77055e0", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/813-b77055e0", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/813-b77055e0", "outbound-callerid|1") in new stack
-- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/813-b77055e0", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,3)
-- Executing [s@macro-outbound-callerid:3] NoOp("SIP/813-b77055e0", "REALCALLERIDNUM is 813") in new stack
-- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/813-b77055e0", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing [s@macro-outbound-callerid:9] Set("SIP/813-b77055e0", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:10] Set("SIP/813-b77055e0", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:11] Set("SIP/813-b77055e0", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/813-b77055e0", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/813-b77055e0", "1?usercid") in new stack
-- Goto (macro-outbound-callerid,s,18)
-- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/813-b77055e0", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing [s@macro-outbound-callerid:22] NoOp("SIP/813-b77055e0", "CallerID set to "Imran" <813>") in new stack
-- Executing [s@macro-dialout-trunk:12] AGI("SIP/813-b77055e0", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/813-b77055e0", "OUTNUM=0508389916") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/813-b77055e0", "custom=ZAP/g0") in new stack
-- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/813-b77055e0", "1?gocall") in new stack
-- Goto (macro-dialout-trunk,s,17)
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/813-b77055e0", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/813-b77055e0", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/813-b77055e0", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:20] Dial("SIP/813-b77055e0", "ZAP/g0/0508389916|300|") in new stack
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/813-b77055e0", "s-CONGESTION|1") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,1)
-- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/813-b77055e0", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,3)
-- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/813-b77055e0", "TRUNK Dial failed due to CONGESTION - failing through to other trunks") in new stack
-- Executing [90508389916@from-internal:5] Macro("SIP/813-b77055e0", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/813-b77055e0", "all-circuits-busy-now|noanswer") in new stack
-- Playing 'all-circuits-busy-now' (language 'en')
-- Executing [s@macro-outisbusy:2] Playback("SIP/813-b77055e0", "pls-try-call-later|noanswer") in new stack
-- Playing 'pls-try-call-later' (language 'en')
-- Executing [s@macro-outisbusy:3] Macro("SIP/813-b77055e0", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/813-b77055e0", "w") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/813-b77055e0", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/813-b77055e0", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/813-b77055e0", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/813-b77055e0", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/813-b77055e0", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/813-b77055e0' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/813-b77055e0' in macro 'outisbusy'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/813-b77055e0'
== Primary D-Channel on span 1 down
== Primary D-Channel on span 1 up
======================================
For inbound calls there is no log at all.
Waiting for kind solution.



GSnover
Posts: 1406
Member Since:
2006-11-19
Excellent!

The D-Channel is cycling up and down - since your config looks right (at least it looks valid for an E1 with HDB3/CCS - We don't use that here in the States) I really think it's a Circuit-Side issue - do you have any other equipment you can hook into the line and test it with?

D-Channel cycling is almost always an un-initialized line in my experience - in New Mexico (where I am) you can get a PRI from Qwest (the Incumbent Local Exchange Carrier - ILEC) or one of their competitors (Paetec, Time Warner, etc. - Competitive Local Exchange Carrier - CLEC).

Many times when we order a circuit from a CLEC, they are actually re-leasing a circuit from Qwest (the ILEC) and I would say about 80% of the time when we show up to test, they have not "heated up" the circuit yet - made it active with Qwest - and this is the symptom we see - no calls in or out, and the D-Channel coming up and then going right back down again.

Call them tomorrow (Monday - might already be Today for you!) and tell them the D-Channel is not staying up - my guess is that your setup is right, and the problem is on their end - let us know what you find!

Greg



imranmcse
Posts: 14
Member Since:
2007-03-20
I checked with service

I checked with service provider, everything is fine. Even they made a test call on their device.



victorvvv
Posts: 54
Member Since:
2007-03-05
please try to add into zapata.conf

pridialplan=unknown



bhickey
Posts: 24
Member Since:
2007-09-18
Well seeing as it's a

Well seeing as it's a Sangoma card, I assume you've gone through the usual instructions at :

http://wiki.sangoma.com/wanpipe-asterisk-trixbox-rpms

and then the PRI debugging stuff at :

http://wiki.sangoma.com/wanpipe-linux-asterisk-debugging#pri_span...

The following commands in particular are usually informative :

wanrouter status

and checking for alarms :

wanpipemon -i w1g1 -c Ta



imranmcse
Posts: 14
Member Since:
2007-03-20
Adding pridialplan=unknown

Adding pridialplan=unknown doesn't help.

wanrouter status:
[TrixboxDIC ~]# wanrouter status

Devices currently active:
wanpipe1

Wanpipe Config:

Device name | Protocol Map | Adapter | IRQ | Slot/IO | If's | CLK | Baud rate |
wanpipe1 | N/A | A101/1D/A102/2D/4/4D/8| 129 | 2 | 1 | EXT | 0 |

Wanrouter Status:

Device name | Protocol | Station | Status |
wanpipe1 | AFT HDLC | N/A | Connected |

====================

[TrixboxDIC ~]# wanpipemon -i w1g1 -c Ta

***** w1g1: E1 Alarms (Framer) *****

ALOS: OFF | LOS: OFF
RED: OFF | AIS: OFF
OOF: OFF | RAI: OFF

***** w1g1: E1 Performance Monitoring Counters *****

Line Code Violation : 351
Far End Block Errors : 0
CRC4 Errors : 0
FAS Errors : 0

Rx Level : > -2.5db

Where are the Sangoma guys? Please help.



Mandi_08
Posts: 264
Member Since:
2008-07-23
imranmcse, I'm having pretty

imranmcse,
I'm having pretty much the same issue as you.
The only difference I can see is that when I do ztcfg -vvv I get an extra line
ZT_SPANCONFIG failed on span 1: No such device or address (6)

My error starts when I run setup-sangoma. If I have wanrouter start on boot, I can't start asterisk. If I have it not start, I get zaptel errors.

I hope someone finds a solution soon, I've been scouring the net for almost 2 weeks now.



bhickey
Posts: 24
Member Since:
2007-09-18
Line Code Violation :

Line Code Violation : 351

Have you tried different Line Coding/Framing options in the 'setup-sangoma' script. Maybe try NCRC4 instead of CRC4?



imranmcse
Posts: 14
Member Since:
2007-03-20
I am already using NCRC4.

I am already using NCRC4. Same encoding was working with my last box with same A101D and PRI line.



marc.sangoma
Posts: 146
Member Since:
2008-04-08
Hi, Sorry Monday was a

Hi,

Sorry Monday was a holiday here in Canada, so for the issue of the PRI going up and down typically the solution is http://wiki.sangoma.com/wanpipe-linux-asterisk-appendix#PRI_Fails.... If this is not the case then please follow step 9 in the pri debugging section at http://wiki.sangoma.com/wanpipe-linux-asterisk-debugging#pri_span....

For the "ZT_SPANCONFIG failed on span 1: No such device or address (6" error that "Mandi_08" has this is a different issue. So please check the /var/log/messages file after you get this error and see if you can see any errors in there. If you can not then please send the entire /var/log/messages along with a brief description of the issue to techdesk@sangoma.com.

Marc
Sangoma Technologies



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.