[Asterisk-Users] fritz pci / chan_capi / australia setup

Anthony Wood woody+asterisk at switchonline.com.au
Mon Nov 24 16:14:18 MST 2003


These instructions are mostly good, I have some corrections below...

On Thu, Nov 20, 2003 at 09:14:24AM +1100, Anthony Wood wrote:
> Hi * Fans,
> 
> I have some fritz cards now, followed instructions from stuart hirsts email of Jun 28:
> 
> ->
> Thanks for your info but I think I have it working at last. Below are
> the steps I took which might help others.
> 
> 1) Download the PCI AVM drivers from ftp://ftp.avm.de/cardware
> 2) Download the Chan_capi from http://www.junghanns.net/asterisk/
> 3) tar -xvzf fcpci-suse8.0-03.09.10.tar.gz which creates a directory
> called "fritz"
> 4) edit the file fritz/src.drv/tools.c and put "//" in front of the
> following lines to exclude them :
> 
> #include <linux/string.h>
> #include <linux/vmalloc.h>
> #include <linux/kernel.h>
> #include <linux/version.h>
> //#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18)
> #include <linux/slab.h>
> //#else
> //#include <linux/malloc.h>
> //#endif
> 
> This stops the make error message.
> 
> 5) run "make"
> 6) run "make install"
> 7) create a file /etc/capi.conf with the following line in it:
> fcpci     -     -     -     -     -     -

7.5) You should stop any isdnutils services and unload any hisax or isdn modules at this point

> 8) run "insmod -f fcpci". You will get errors about the version of GCC
> but it should still work
> 9) run "capiinit"
> 10) run "capiinfo" which should give output showing the card and
> supported features.
> 11) extract using tar -xvzf chan_capi.0.2.2.tar.gz
> 12) in the chan_capi-0.2.2 directory run "make" and "make install" and
> "make config"
> 13) edit /etc/asterisk/modules.conf and add :
> 
> load => chan_capi.so
> 
> And in the [global] section add:
> 
> chan_capi.so=yes
> 
> 14) then start Asterisk
> 

This next bit is apparently unnecessary/no good.

> Also forgot to mention that you should make sure that the "isdn" and
> "hisax" modules are loaded by doing :
> 
> modprobe isdn
> modprobe hisax
> 
> I now have incoming calls working OK and working on getting outgoing
> working.
> 
> Stuart
> 
> <-
> 
> OK, so I have some good signs:
> 
> forge:/etc/asterisk# cat /proc/capi/controllers/1
> name             fritz-pci
> io               0xD400
> irq              10
> type             A1
> class            14
> ver_driver       3.09-10
> ver_cardtype     fritz-pci
> protocol         DSS1
> linetype         point to multipoint
> forge:/etc/asterisk#
> 
> *CLI> capi info
> Contr1: 2 B channels total, 2 B channels free.
> *CLI>
> 
> I've set up capi.conf as best I can:
> forge:/etc/asterisk# grep -v ^\; capi.conf | grep -v ^$
> [general]
> nationalprefix=0
> internationalprefix=0011
> rxgain=0.8
> txgain=0.8
> [interfaces]

You should list the msns that your devices connect to here:

> msn=292996337
> incomingmsn=*
> controller=1
> softdtmf=1
> accountcode=
> context=demo
> devices=2
> forge:/etc/asterisk#
> 
> And some extensions:
> grep -i 6337 extensions.conf
> exten => 11031976,1,Dial,CAPI/292996337:0416059875,5,tr
> exten => 02111947,1,Dial,CAPI/@292996337:0416059875,5,tr
> 
> And this is what I get every time:
> 
> *CLI> NOTICE[81926]: File chan_sip.c, Line 5018 (handle_request): Failed to auth
> enticate user "woody" <sip:woody at asterisk>;tag=f7f432a8-0b96-4daa-901a-e21e153cf
> f96
>     -- Executing Dial("SIP/woody-8607", "CAPI/@292996337:0416059875") in new stack
>     -- data = @292996337:0416059875
>     -- capi request omsn = @292996337
>   == found capi with omsn = 292996337
>   == CAPI Call CAPI[contr1/292996337]/1     -- Called @292996337:0416059875
>     -- CONNECT_CONF ID=001 #0x0005 LEN=0014
>   Controller/PLCI/NCCI            = 0x101
>   Info                            = 0x0
> 
>   == received CONNECT_CONF PLCI = 0x101 INFO = 0
>   == DISCONNECT_IND PLCI=0x101 REASON=0x3301
>     -- CAPI Hangingup
>   == No one is available to answer at this time
> 
> REASON 0x3301 means Layer 1 problem or signalling killed the channel.

The cable was good, but the NT unit I have (Telstra Australia NT1 plus II) disables the S-BUS
when you have a USB cable in it (undocumented feature).

cheers,
-- 
Woody



More information about the asterisk-users mailing list