[asterisk-bugs] [DAHDI-linux 0013897]: [patch] Support for generic HFC-4S cards

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Dec 5 00:13:07 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13897 
====================================================================== 
Reported By:                tzafrir
Assigned To:                tzafrir
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   13897
Category:                   wcb4xxp
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     confirmed
====================================================================== 
Date Submitted:             2008-11-13 16:17 CST
Last Modified:              2008-12-05 00:13 CST
====================================================================== 
Summary:                    [patch] Support for generic HFC-4S cards
Description: 
A patch to add some basic support of other HFC-4S -based PCI cards (such as
the ones made by Junghanns). 

Status: gets rid of the echo canceller messages when not needed, but still
needs work.

Specifically:
* It adds too broad a range of cards (which also include bero.net cards) 
* The range may include some 2-ports cards, which will probably not work.

Not yet tested to work, though it it is at least configured.

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

---------------------------------------------------------------------- 
 (0095831) zhulizhong (reporter) - 2008-12-05 00:13
 http://bugs.digium.com/view.php?id=13897#c95831 
---------------------------------------------------------------------- 
I do not add any new code. i just add PCI ID?for OpenVox. some test results
are below:
======= pri show span 1==========
[root at bogon wcb4xxp]# asterisk -r
Asterisk 1.6.0.1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for
details.
This is free software, with components licensed under the GNU General
Public
License version 2 and other licenses; you are welcome to redistribute it
under
certain conditions. Type 'core show license' for details.
=========================================================================
    -- Remote UNIX connection
Connected to Asterisk 1.6.0.1 currently running on bogon (pid = 2879)
Verbosity is at least 9
bogon*CLI>
bogon*CLI>
bogon*CLI>
bogon*CLI> pri show span 1
Primary D-channel: 3
Status: Provisioned, Up, Active
Switchtype: EuroISDN
Type: CPE
Window Length: 0/7
Sentrej: 0
SolicitFbit: 0
Retrans: 0
Busy: 0
Overlap Dial: 0
T200 Timer: 1000
T203 Timer: 10000
T305 Timer: 30000
T308 Timer: 4000
T309 Timer: -1
T313 Timer: 4000
N200 Counter: 3
Overlap Recv: No
============dahdi show status=====
bogon*CLI> dahdi show status
Description                              Alarms  IRQ    bpviol CRC4   Fra
Codi Options  LBO
B4XXP (PCI) Card 0 Span 1                OK      0      0      0      CCS
AMI  YEL      0 db (CSU)/0-133 feet (DSX-1)
B4XXP (PCI) Card 0 Span 2                RED     0      0      0      CCS
AMI  YEL      0 db (CSU)/0-133 feet (DSX-1)
B4XXP (PCI) Card 0 Span 3                RED     0      0      0      CCS
AMI  YEL      0 db (CSU)/0-133 feet (DSX-1)
B4XXP (PCI) Card 0 Span 4                RED     0      0      0      CCS
AMI  YEL      0 db (CSU)/0-133 feet (DSX-1)

================================incoming calls-play demo====
 Making new call for cr 4
-- Processing Q.931 Call Setup
-- Processing IE 161 (cs0, Sending Complete)
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 30 (cs0, Progress Indicator)
-- Processing IE 108 (cs0, Calling Party Number)
q931.c:3509 q931_receive: call 4 on channel 2 enters state 6 (Call
Present)
    -- Going to extension s|1 because of Complete received
q931.c:2774 q931_call_proceeding: call 4 on channel 2 enters state 9
(Incoming Call Proceeding)
> Protocol Discriminator: Q.931 (8)  len=7
> Call Ref: len= 1 (reference 4/0x4) (Terminator)
> Message type: CALL PROCEEDING (2)
> [18 01 8a]
> Channel ID (len= 3) [ Ext: 1  IntID: Implicit  Other  Spare: 0 
Exclusive  Dchan: 0
>                        ChanSel: B2 channel
                         ]
    -- Accepting call from '82535462' to 's' on channel 0/2, span 1
[Dec  5 14:02:06] WARNING[2889]: chan_dahdi.c:1654 dahdi_enable_ec: Unable
to enable echo cancellation on channel 2 (No such device)
[Dec  5 14:02:06] WARNING[2889]: chan_dahdi.c:1654 dahdi_enable_ec: Unable
to enable echo cancellation on channel 2 (No such device)
bogon*CLI>     -- Executing [s at demo:1] Wait("DAHDI/2-1", "1") in new
stack
    -- Executing [s at demo:1] Wait("DAHDI/2-1", "1") in new stack
bogon*CLI>     -- Executing [s at demo:2] Answer("DAHDI/2-1", "") in new
stack
q931.c:2909 q931_connect: call 4 on channel 2 enters state 8 (Connect
Request)
> Protocol Discriminator: Q.931 (8)  len=11
> Call Ref: len= 1 (reference 4/0x4) (Terminator)
> Message type: CONNECT (7)
> [18 01 8a]
> Channel ID (len= 3) [ Ext: 1  IntID: Implicit  Other  Spare: 0 
Exclusive  Dchan: 0
>                        ChanSel: B2 channel
                         ]
> [1e 02 81 82]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 
0: 0  Location: Private network serving the local user (1)
>                               Ext: 1  Progress Description: Called
equipment is non-ISDN. (2) ]
    -- Executing [s at demo:2] Answer("DAHDI/2-1", "") in new stack
q931.c:2909 q931_connect: call 4 on channel 2 enters state 8 (Connect
Request)
> Protocol Discriminator: Q.931 (8)  len=11
> Call Ref: len= 1 (reference 4/0x4) (Terminator)
> Message type: CONNECT (7)
> [18 01 8a]
> Channel ID (len= 3) [ Ext: 1  IntID: Implicit  Other  Spare: 0 
Exclusive  Dchan: 0
>                        ChanSel: B2 channel
                         ]
> [1e 02 81 82]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 
0: 0  Location: Private network serving the local user (1)
>                               Ext: 1  Progress Description: Called
equipment is non-ISDN. (2) ]
    -- Executing [s at demo:3] Set("DAHDI/2-1", "TIMEOUT(digit)=5") in new
stack
    -- Digit timeout set to 5
    -- Executing [s at demo:4] Set("DAHDI/2-1", "TIMEOUT(response)=10") in
new stack
    -- Response timeout set to 10
    -- Executing [s at demo:5] BackGround("DAHDI/2-1", "demo-congrats") in
new stack
    -- <DAHDI/2-1> Playing 'demo-congrats.gsm' (language 'en')
    -- Executing [s at demo:3] Set("DAHDI/2-1", "TIMEOUT(digit)=5") in new
stack
    -- Digit timeout set to 5
    -- Executing [s at demo:4] Set("DAHDI/2-1", "TIMEOUT(response)=10") in
new stack
    -- Response timeout set to 10
    -- Executing [s at demo:5] BackGround("DAHDI/2-1", "demo-congrats") in
new stack
    -- <DAHDI/2-1> Playing 'demo-congrats.gsm' (language 'en')
bogon*CLI> < Protocol Discriminator: Q.931 (8)  len=4
< Call Ref: len= 1 (reference 4/0x4) (Originator)
< Message type: CONNECT ACKNOWLEDGE (15)
q931.c:3669 q931_receive: call 4 on channel 2 enters state 10 (Active)
< Protocol Discriminator: Q.931 (8)  len=4
< Call Ref: len= 1 (reference 4/0x4) (Originator)
< Message type: CONNECT ACKNOWLEDGE (15)
q931.c:3669 q931_receive: call 4 on channel 2 enters state 10 (Active)
< Protocol Discriminator: Q.931 (8)  len=17
bogon*CLI> < Protocol Discriminator: Q.931 (8)  len=17
< Call Ref: len= 1 (reference 4/0x4) (Originator)
< Call Ref: len= 1 (reference 4/0x4) (Originator)
bogon*CLI> < Message type: DISCONNECT (69)
< Message type: DISCONNECT (69)
bogon*CLI> < [08 07 82 90 00 00 00 00 78]
< [08 07 82 90 00 00 00 00 78]
bogon*CLI> < Cause (len= 9) [ Ext: 1  Coding: CCITT (ITU) standard (0) 
Spare: 0  Location: Public network serving the local user (2)
< Cause (len= 9) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0 
Location: Public network serving the local user (2)
bogon*CLI> <                  Ext: 1  Cause: Normal Clearing (16), class =
Normal Event (1) ]
<                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
bogon*CLI> <              Cause data 1: 00 (0)
<              Cause data 1: 00 (0)
bogon*CLI> <              Cause data 2: 00 (0)
<              Cause data 2: 00 (0)
bogon*CLI> <              Cause data 3: 00 (0)
<              Cause data 3: 00 (0)
bogon*CLI> <              Cause data 4: 00 (0)
<              Cause data 4: 00 (0)
bogon*CLI> <              Cause data 5: 78 (120)
<              Cause data 5: 78 (120)
bogon*CLI> < [1e 02 82 88]
< [1e 02 82 88]
bogon*CLI> < Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU)
standard (0)  0: 0  Location: Public network serving the local user (2)
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 
0: 0  Location: Public network serving the local user (2)
bogon*CLI> <                               Ext: 1  Progress Description:
Inband information or appropriate pattern now available. (8) ]
<                               Ext: 1  Progress Description: Inband
information or appropriate pattern now available. (8) ]
bogon*CLI> -- Processing IE 8 (cs0, Cause)
-- Processing IE 8 (cs0, Cause)
bogon*CLI> -- Processing IE 30 (cs0, Progress Indicator)
-- Processing IE 30 (cs0, Progress Indicator)
bogon*CLI> q931.c:3784 q931_receive: call 4 on channel 2 enters state 12
(Disconnect Indication)
q931.c:3784 q931_receive: call 4 on channel 2 enters state 12 (Disconnect
Indication)
    -- Channel 0/2, span 1 got hangup request, cause 16
bogon*CLI>     -- Channel 0/2, span 1 got hangup request, cause 16
  == Spawn extension (demo, s, 5) exited non-zero on 'DAHDI/2-1'
bogon*CLI>   == Spawn extension (demo, s, 5) exited non-zero on
'DAHDI/2-1'
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication,
peerstate Disconnect Request
q931.c:2925 q931_release: call 4 on channel 2 enters state 19 (Release
Request)
> Protocol Discriminator: Q.931 (8)  len=8
> Call Ref: len= 1 (reference 4/0x4) (Terminator)
> Message type: RELEASE (77)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0 
Location: Private network serving the local user (1)
>                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
    -- Hungup 'DAHDI/2-1'
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication,
peerstate Disconnect Request
q931.c:2925 q931_release: call 4 on channel 2 enters state 19 (Release
Request)
> Protocol Discriminator: Q.931 (8)  len=8
> Call Ref: len= 1 (reference 4/0x4) (Terminator)
> Message type: RELEASE (77)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0 
Location: Private network serving the local user (1)
>                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
    -- Hungup 'DAHDI/2-1'
bogon*CLI> < Protocol Discriminator: Q.931 (8)  len=4
< Protocol Discriminator: Q.931 (8)  len=4
bogon*CLI> < Call Ref: len= 1 (reference 4/0x4) (Originator)
< Call Ref: len= 1 (reference 4/0x4) (Originator)
bogon*CLI> < Message type: RELEASE COMPLETE (90)
< Message type: RELEASE COMPLETE (90)
q931.c:3724 q931_receive: call 4 on channel 2 enters state 0 (Null)
bogon*CLI> q931.c:3724 q931_receive: call 4 on channel 2 enters state 0
(Null)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
bogon*CLI> NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate
Null
=============================================
[root at bogon wcb4xxp]# dahdi_scan
[1]
active=yes
alarms=OK
description=B4XXP (PCI) Card 0 Span 1
name=B4/0/1
manufacturer=Digium
devicetype=HFC-4S OpenVox B400P
location=PCI Bus 02 Slot 03
basechan=1
totchans=3
irq=217
type=digital-TE
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI,HDB3
framing_opts=ESF,D4,CCS,CRC4
coding=AMI
framing=CCS
[2]
active=yes
alarms=RED
description=B4XXP (PCI) Card 0 Span 2
name=B4/0/2
manufacturer=Digium
devicetype=HFC-4S OpenVox B400P
location=PCI Bus 02 Slot 03
basechan=4
totchans=3
irq=217
type=digital-TE
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI,HDB3
framing_opts=ESF,D4,CCS,CRC4
coding=AMI
framing=CCS
[3]
active=yes
alarms=RED
description=B4XXP (PCI) Card 0 Span 3
name=B4/0/3
manufacturer=Digium
devicetype=HFC-4S OpenVox B400P
location=PCI Bus 02 Slot 03
basechan=7
totchans=3
irq=217
type=digital-TE
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI,HDB3
framing_opts=ESF,D4,CCS,CRC4
coding=AMI
framing=CCS
[4]
active=yes
alarms=RED
description=B4XXP (PCI) Card 0 Span 4
name=B4/0/4
manufacturer=Digium
devicetype=HFC-4S OpenVox B400P
location=PCI Bus 02 Slot 03
basechan=10
totchans=3
irq=217
type=digital-TE
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI,HDB3
framing_opts=ESF,D4,CCS,CRC4
coding=AMI
framing=CCS

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-05 00:13 zhulizhong     Note Added: 0095831                          
======================================================================




More information about the asterisk-bugs mailing list