PRI card issue


We have asterisk installed and working fine. There is no issue. We have PRI card : Sangoma Technologies Corp. A200/Remora FXO/FXS Analog AFT card. Card also gets detected in lspci.

I m trying to use PRI card and I m getting below issue :

[quote]Dahdi and Wanpipe configuration complete: choose action

  1. Save cfg: Restart Asterisk & Wanpipe now
  2. Save cfg: Restart Asterisk & Wanpipe when convenient
  3. Save cfg: Stop Asterisk & Wanpipe now
  4. Save cfg: Stop Asterisk & Wanpipe when convenient
  5. Save cfg: Save cfg only (Not Recommanded!!!)
  6. Do not save cfg: Exit

Stopping Asterisk…

Stopping Wanpipe…

Shutting down wanpipe1 interface: w1g1
w1g1: unknown interface: No such device
Shutting down device: wanpipe1
No devices running, Unloading Modules

Unloading Dahdi modules…

Removing old configuration files…

Copying new Wanpipe configuration files…

Copying new Dahdi configuration file (/etc/dahdi/system.conf)…

Copying new Chan-Dahdi configuration files (/etc/asterisk/chan_dahdi.conf)…

Starting Wanpipe…

Starting WAN Router…
Loading WAN drivers: wanpipe done.
Starting up device: wanpipe1

wanconfig: Interface w1g1 setup failed
         : ioctl(ROUTER_IFNEW,w1g1) failed:
         :	22 - Invalid argument

Wanpipe drivers could not setup network interface
Please check /var/log/wanrouter and
/var/log/messages for errors

Configuring interfaces: w1g1 w1g1: unknown interface: No such device

Waiting for Dahdi /dev/dahdi …

Error: Dahdi device failed to come up
Possible Cause: UDEV not installed!

Loading Dahdi…
DAHDI Tools Version - 2.4.1
Notice: Configuration file is /etc/dahdi/system.conf
line 0: Unable to open master device ‘/dev/dahdi/ctl’

1 error(s) detected

Error executing command:
dahdi_cfg -v

Would you like to continue?

  1. No - exit
  2. YES
    [1-2, ENTER=‘No’]:1


I did below :[quote]
[root@0 ~]# modprobe dahdi
[root@0 ~]# modprobe wanpipe
[root@0 ~]#
[root@0 ~]# /etc/init.d/dahdi restart
Unloading DAHDI hardware modules: ERROR: Module dahdi is in use
Loading DAHDI hardware modules:
wct4xxp: [ OK ]
wcte12xp: [ OK ]
wct1xxp: [ OK ]
wcte11xp: [ OK ]
wctdm24xxp: [ OK ]
wcfxo: [ OK ]
wctdm: [ OK ]
wcb4xxp: [ OK ]
wctc4xxp: [ OK ]
xpp_usb: [ OK ]

No hardware timing source found in /proc/dahdi, loading dahdi_dummy
Running dahdi_cfg: [ OK ]
You have new mail in /var/spool/mail/root
[root@0 ~]# [/quote]

But in asterisk PRI is not getting detectd :

gCLI> dahdi show status
No such command ‘dahdi show status’ (type ‘help dahdi show’ for other possible commands)
CLI> dahdi show channels
No such command ‘dahdi show channels’ (type ‘help dahdi show’ for other possible commands)
CLI> [/quote]

Thank you

you have got this error:

Module dahdi is in use

the dahdi show status is not in right status, because your card driver wanpipe do not load successfully.
Please check dahdi and sangoma card, make sure that dahdi and wanpipe are starting up or unload properly before running setup script.

Note you will need to get support from Sangoma for the wanpipe driver and their cards.