[Asterisk-Users] my hfc card does not like Siemens
Dimitris Kounalakis
dcoun at medsite.info
Sat Mar 19 01:46:38 MST 2005
Hello,
I tried to connect my Siemens ISDN 4170 cordless small PBX to the
asterisk with an Acer HFC isdn card but I have not seen any success. The
asterisk can see the card but no success to receive or dial a call. The
Siemens 4170 gives fault in all the handsets with trying to dial and
does not receives anything.
I have linux kernel 2.4.29, asterisk CVS-v1-0-03/12/05-17, zaphfc
bristuff-0.2.0-RC7k patched with Florz's patch.
I created a cross cable with termination for connected the hfc card to
the siemens as it is shown:
Hfc card ----------> Siemens PBX ISDN phone
3 -----------------> 4
4 -----------------> 3
5 -----------------> 6
6 -----------------> 5
I used two 100 Ohm registors connecting pins 3 with 6 and 4 with 5 of
the HFC card's position in a 2 meters cable.
Any ideas for what is the cause of this trouble? Did anyone have an
Siemens ISDN to work with HFC card & asterisk?
All need information follows:
I have two ISDN cards: one AVM fritz PCI 2.0 and one Acer HFC card.
a part of `cat /proc/pci` is:
-----------------begin------------------------
Bus 0, device 9, function 0:
Network controller: Cologne Chip Designs GmbH ISDN network
controller [HFC-PCI] (rev 2).
IRQ 11.
Master Capable. Latency=16. Max Lat=16.
I/O at 0xd400 [0xd407].
Non-prefetchable 32 bit memory at 0xe8322000 [0xe83220ff].
Bus 0, device 10, function 0:
Network controller: AVM Audiovisuelles MKTG & Computer System GmbH
Fritz!PCI v2.0 ISDN (rev 2).
IRQ 5.
Non-prefetchable 32 bit memory at 0xe8320000 [0xe832001f].
I/O at 0xd000 [0xd01f].
----------------end--------------------------------
running `cat /proc/interrupts` - I can see the hfc card having shared
interrupt with my adaptec 4port ethrnet card but how I can change that ?
----------------begin-------------------------------
CPU0
0: 32638535 XT-PIC timer
1: 2 XT-PIC keyboard
2: 0 XT-PIC cascade
5: 25547143 XT-PIC usb-uhci, fcpci
10: 0 XT-PIC usb-uhci, eth4
11: 2600775468 XT-PIC usb-uhci, eth1, eth2, eth0, zaphfc
12: 0 XT-PIC ehci_hcd
14: 686066 XT-PIC ide0
NMI: 0
ERR: 0
----------------end--------------------------------
installing kernel module now:
/sbin/insmod /lib/modules/`uname -r`/misc/zaphfc.o modes=1 debug=1
and I have the following output in the logs:
----------------begin------------------------------
Mar 19 00:18:49 asterias kernel: PCI: Found IRQ 11 for device 00:09.0
Mar 19 00:18:49 asterias kernel: PCI: Sharing IRQ 11 with 00:10.1
Mar 19 00:18:49 asterias kernel: zaphfc: CCD/Billion/Asuscom 2BD0
configured at mem 0xe0bbc000 fifo 0xd80d8000(0x180d8000) IRQ 11 HZ 100
Mar 19 00:18:49 asterias kernel: zaphfc: Card 0 configured for NT mode
Mar 19 00:18:49 asterias kernel: zaphfc: Card 0 configured for master mode
Mar 19 00:18:49 asterias kernel: zaphfc: 1 hfc-pci card(s) in this box.
--------------------end----------------------------------
Running `ztcfg -vvv`
---------------------begin-----------------------
Zaptel Configuration
======================
SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)
Channel map:
Channel 01: Individual Clear channel (Default) (Slaves: 01)
Channel 02: Individual Clear channel (Default) (Slaves: 02)
Channel 03: D-channel (Default) (Slaves: 03)
3 channels configured.
--------------------------end----------------------------
Asterik, in the configuration now:
----------------/etc/zaptel.conf begin -------------------
loadzone = gr
defaultzone=gr
span=1,1,3,ccs,ami
bchan=1-2
dchan=3
----------------/etc/zaptel.conf end ---------------------
----------------/etc/asterisk/zapata.conf begin-----------
[channels]
overlapdial=yes
usecallerid=yes
cidstart=ring
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
switchtype = euroisdn
signalling = bri_net_ptmp
context=zapcha
channel => 1-2
----------------/etc/asterisk/zapata.conf end-----------
Asterisk starts without errors. When asterisk is running, the output of
the command `cat /proc/zaptel/1` is the following. If asterisk is
stopped then the '(In use)' does not exist.
---------------------------begin-------------------------------
Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [NT] layer 1 ACTIVATED (G3)"
AMI/CCS
1 ZTHFC1/0/1 Clear (In use)
2 ZTHFC1/0/2 Clear (In use)
3 ZTHFC1/0/3 HDLCFCS (In use)
---------------------------end---------------------------------
Output from asterisk's CLI
--------------------begin-----------------------------
asterias*CLI> pri show span 1
Primary D-channel: 3
Status: Provisioned, Up, Active
Switchtype: EuroISDN
Type: Network (PtMP)
Window Length: 135352076/135352012
Sentrej: 135352524
SolicitFbit: 135352396
Retrans: 135352460
Busy: 135351948
Overlap Dial: -1
asterias*CLI> zap show channels
Chan Extension Context Language MusicOnHold
pseudo zapcha gr
1 zapcha gr
2 zapcha gr
----------------------------end--------------------------
when making a call from a sip phone I get the following:
--------------------------begin-------------------------
-- Executing Dial("SIP/9591-131b", "Zap/1/211694") in new stack
-- Making new call for cr 131
> Protocol Discriminator: Q.931 (8) len=50
> Call Ref: len= 1 (reference 3/0x3) (Originator)
> Message type: SETUP (5)
> [04 03 80 90 a3]
> Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer
capability: Speech (0)
> Ext: 1 Trans mode/rate: 64kbps,
circuit-mode (16)
> Ext: 1 User information layer 1: A-Law (35)
> [18 01 89]
> Channel ID (len= 3) [ Ext: 1 IntID: Implicit, Other Spare: 0,
Exclusive Dchan: 0
> ChanSel: B1 channel
]
> [28 13 44 69 6d 69 74 72 69 73 20 4b 6f 75 6e 61 6c 61 6b 69 73]
> Display (len=19) [ Dimitris Kounalakis ]
> [6c 06 21 80 39 35 39 31]
> Calling Number (len= 8) [ Ext: 0 TON: National Number (2) NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1)
> Presentation: Presentation permitted, user
number not screened (0) '9591' ]
> [70 07 a1 32 31 31 36 39 34]
> Called Number (len= 9) [ Ext: 1 TON: National Number (2) NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1) '211694' ]
-- Called 1/211694
No response to SETUP message
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Call Initiated,
peerstate Overlap sending
-- Channel 0/1, span 1 got hangup
NEW_HANGUP DEBUG: Destroying the call, ourstate Call Initiated,
peerstate Overlap sending
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Call Initiated,
peerstate Overlap sending
-- Hungup 'Zap/1-1'
== No one is available to answer at this time
-----------------------------------------------end-------------------------------------
More information about the asterisk-users
mailing list