[Asterisk-bsd] Asterisk and AVM PCI passive ISDN card - cannot hear anything

Matthias Fechner idefix at fechner.net
Thu Mar 16 04:17:03 MST 2006


Hi,

i tried today to get a passive ISDN card from AVM running with asterisk.
I'm running on FreeBSD
FreeBSD server.idefix.loc 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #2:
Thu Mar 16 10:20:23 CET 2006

The ISDN card is detected with the I4B driver from today:
--- cut ---
ihfc0: <AVM Fritz!Card PCI> port 0xd400-0xd41f mem 0xec223000-0xec22301f irq 10 at device 12.0 on pci0
ihfc0: Attaching I4B controller 0.
ihfc0: Creating /dev/ihfc0.X.
i4bisppp: 8 ISDN SyncPPP device(s) attached
i4bctl: ISDN system control port attached
capi: CAPI call control device attached, v2.05
i4b: ISDN call control device attached
i4btrc: 8 ISDN trace device(s) attached
i4brbch: 8 raw B channel access device(s) attached
i4btel: 8 ISDN telephony interface device(s) attached
i4bipr: 8 IP over raw HDLC ISDN device(s) attached (VJ header compression)
Zapata Telephony Interface Registered on major 196
i4b: unit 0, assigned TEI = 141 = 0x8d
i4b: unit 0, assigned TEI = 143 = 0x8f
i4b: unit 0, assigned TEI = 145 = 0x91
i4b: unit 0, assigned TEI = 147 = 0x93
i4b: unit 0, assigned TEI = 149 = 0x95
i4b: unit 0, assigned TEI = 151 = 0x97
i4b: unit 0, assigned TEI = 153 = 0x99
i4b: unit 0, assigned TEI = 155 = 0x9b
i4b: unit 0, assigned TEI = 157 = 0x9d
i4b: unit 0, assigned TEI = 159 = 0x9f
i4b: unit 0, assigned TEI = 161 = 0xa1
i4b: unit 0, assigned TEI = 163 = 0xa3
i4b: unit 0, assigned TEI = 165 = 0xa5
i4b: unit 0, assigned TEI = 167 = 0xa7
i4b: unit 0, assigned TEI = 169 = 0xa9
--- cut ---

Then i compiled the chan_capi module from the I4B source and installed
it.

I configured asterisk who it is descripted in the example
configurations.

Then I called asterisk with an ISDN phone and got the following lines:
--- cut ---
Executing Set("CAPI/ISDN1/97-a", "LANGUAGE()=de") in new stack
Executing GotoIf("CAPI/ISDN1/97-a", "1?97|1000") in new stack
Goto (capi-in,97,1000)
Executing VoiceMailMain("CAPI/ISDN1/97-a", "2000") in new stack
capi_send_detect_dtmf_req:2992:ENTRY=ISDN1:PLCI=0x1900:PBX_CHAN=CAPI/ISDN1/97-a:
Setting up DTMF detector, flag=1
Mar 16 12:03:29 WARNING[4865]: res_adsi.c:220 __adsi_transmit_messages: Unable to send CAS
Playing 'vm-login' (language 'de')
Mar 16 12:03:33 WARNING[4865]: app_voicemail.c:4949 vm_authenticate: Couldn't read username
--- cut ---

The problem I cannot hear and sound in the phone, it seems the
asterisk is playing the sound but not through the ISDN card.

What is wrong here with the configuration?

To make it clear, here the configuration from capi.conf:
[general]
nationalprefix=0
internationalprefix=00
rxgain=1
txgain=1

[ISDN1]
isdnmode=msn
msn=98
incomingmsn=97,98,99
controller=0
group=1
softdtmf=on
relaxdtmf=on
accountcode=
context=capi-in
holdtype=local
echocancel=no
echosquelch=no
devices=2

The extensions.conf:
[capi-in]
; Log incoming calls
exten => 97,1,Set(LANGUAGE()=de)
exten => 97,2,GotoIf($["${CALLERID}" = "93"]?97,1000) ; Myself, move to voicemail Menu
exten => 97,3,GotoIf($["${CALLERID}" = "12"]?97,1000) ; Myself, move to voicemail Menu
exten => 97,4,GotoIf($["${CALLERID}" = "13"]?97,1000) ; Myself, move to voicemail Menu
exten => 97,5,GotoIf($["${CALLERID}" = "0"]?97,2000) ; No dialnumber move to voicemail
exten => 97,6,Wait(1000)
exten => 97,1000,VoicemailMain(2000) ; hear voicemail
exten => 97,1001,Hangup
exten => 97,2000,Wait(12) ; No dialnumber, move to voicemail after 7 seconds
exten => 97,2001,Voicemail(u2000)
exten => 97,2002,Hangup

Thx a lot for help!

Best regards,
Matthias


More information about the Asterisk-BSD mailing list