[Asterisk-Users] Struggling with ISDN4Linux and Asterisk config

mike mike at introspect.com
Wed Apr 7 10:02:23 MST 2004


The card is an ASUSCOM ISDNLink PCI (passive) and the circuit is from 
Qwest (in the US).  I will be using this circuit only for voice (I'm 
doing this because of the poor quality of my POTS lines).

I've compiled Hisax (as a module) into my 2.4.25 kernel, and with 
'modprobe hisax type=35 protocol=4 id=hisax' I get the following:
Apr  7 10:34:24 dev kernel: HiSax: Linux Driver for passive ISDN cards
Apr  7 10:34:24 dev kernel: HiSax: Version 3.5 (module)
Apr  7 10:34:24 dev kernel: HiSax: Layer1 Revision 1.1.4.1
Apr  7 10:34:24 dev kernel: HiSax: Layer2 Revision 1.1.4.1
Apr  7 10:34:24 dev kernel: HiSax: TeiMgr Revision 1.1.4.1
Apr  7 10:34:24 dev kernel: HiSax: Layer3 Revision 1.1.4.1
Apr  7 10:34:24 dev kernel: HiSax: LinkLayer Revision 1.1.4.1
Apr  7 10:34:24 dev kernel: HiSax: Approval certification failed because of
Apr  7 10:34:24 dev kernel: HiSax: unauthorized source code changes
Apr  7 10:34:24 dev kernel: HiSax: Card 1 Protocol NI1 Id=hisax (0)
Apr  7 10:34:24 dev kernel: HiSax: HFC-PCI driver Rev. 1.1.4.1
Apr  7 10:34:24 dev kernel: PCI: Enabling device 00:0a.0 (0000 -> 0003)
Apr  7 10:34:24 dev kernel: HiSax: HFC-PCI card manufacturer: 
Asuscom/Askey card name: 675
Apr  7 10:34:24 dev kernel: HFC-PCI: defined at mem 0xe0a20000 fifo 
0xd6178000(0x16178000) IRQ 11 HZ 100
Apr  7 10:34:24 dev kernel: HFC_PCI: resetting card
Apr  7 10:34:24 dev kernel: HFC 2BDS0 PCI: IRQ 11 count 226490
Apr  7 10:34:25 dev kernel: HFC 2BDS0 PCI: IRQ 11 count 226524
Apr  7 10:34:25 dev kernel: HiSax: National ISDN-1 Rev. 1.1.4.1
Apr  7 10:34:25 dev kernel: HiSax: National ISDN-1 Rev. 1.1.4.1
Apr  7 10:34:25 dev kernel: HiSax: 2 channels added
Apr  7 10:34:25 dev kernel: HiSax: MAX_WAITING_CALLS added

 From this I assume the card is correctly configured (I don't know 
anything about the "unauthorized source code changes").


In modem.conf I have:
[interfaces]
driver=i4l
language=en
type=autodetect
dialtype=tone
mode=immediate
context => isdn
group => 4
msn=1111
incomingmsn => 6791578
device => /dev/ttyI0
incomingmsn => 6791608
device => /dev/ttyI1

I don't know where the SPID should go.  In MSN?


In extensions.conf I have: 
                              [isdn] 
                                            exten => s,1,Wait(1)
exten => s,2,Answer
exten => s,3,Goto(mainmenu|s|4) 

[mainmenu]
exten => s,1,Wait(1)
exten => fax,1,Goto(fax|1|1)            ; print the fax
exten => s,2,Answer
exten => s,3,Wait(1)
exten => s,4,SetMusicOnHold(default)
exten => s,5,DigitTimeout,5
exten => s,6,ResponseTimeout,10
exten => s,7,Background(introspect/welcome)
exten => s,8,Background(introspect/dialextension)
exten => s,9,Background(silence/2)
exten => s,10,Dial(Zap/10&Zap/7,20,t)
... etc.


When I dial into the PBX I get the following from Asterisk:
     -- Executing Wait("Modem[i4l]/ttyI0", "1") in new stack
     -- Executing Answer("Modem[i4l]/ttyI0", "") in new stack
   == Spawn extension (isdn, s, 2) exited non-zero on 
'Modem[i4l]/ttyI0'e to answer: (No Response)
     -- Hungup 'Modem[i4l]/ttyI0'

and the following in the logs:
Apr  7 10:22:16 dev kernel: isdn_net: call from 3036388531 -> 0 6791578 
ignored
Apr  7 10:22:16 dev kernel: isdn_tty: call from 3036388531, -> RING on ttyI0
Apr  7 10:22:16 dev kernel: isdn_net: call from 3036388531 -> 0 6791578 
ignored
Apr  7 10:22:16 dev kernel: isdn_tty: call from 3036388531 -> 6791578 
ignored
Apr  7 10:22:18 dev kernel: isdn_net: call from 3036388531 -> 0 6791578 
ignored
Apr  7 10:22:18 dev kernel: isdn_tty: call from 3036388531 -> 6791578 
ignored
Apr  7 10:22:59 dev kernel: isdn: hisax,ch1 cause: 0066

Sometimes I also get:
Apr  7 10:59:51 dev kernel: SPID not supplied in EAZMSN


When I dial out from the PBX I get the following from Asterisk:
     -- Starting simple switch on 'Zap/7-1'
     -- Executing Dial("Zap/7-1", "Modem/g4/3036741234") in new stack
Apr  7 10:49:02 WARNING[311316]: chan_modem.c:181 modem_call: 
Destination g4/3036740068 requres a real destination (device:destination)
     -- Couldn't call g4/3036740068
     -- Hungup 'Modem[i4l]/ttyI1'
   == Everyone is busy at this time
     -- Executing Congestion("Zap/7-1", "") in new stack
   == Spawn extension (local, 93036741234, 2) exited non-zero on 'Zap/7-1'
     -- Hungup 'Zap/7-1'

and nothing in the logs.

Can someone help me with this?  Thanks,
Mike









More information about the asterisk-users mailing list