System updates gets exception even after reboot

Hi!

The problem is pretty much related right now which is why he referred you to my ticket but under normal circumstances your DAHDI card initialization should not depend on the Sangoma Wanpipe drivers initalization…

My Sangoma card needs both to work but in a system which doesn’t have Sangoma hardware your DAHDI card initialization should not depend on proper (or improper!) Sangoma Wanpipe driver intialization and right now it looks like it is the case…

I believe this whole setup predates Schmooze becoming Sangoma so Andrew, Bryan, Rob, etc…are only trying to make right something they had more than likely no say in how it was initially setted up…

I don’t think the current problem is related to this and your Digium derivative card seems to behave pretty much like the real hardware (unless later proven otherwise :wink:)…

Right now I would not suggest that someone who has DAHDI hardware of any kind update unless (s)he is OK with having some possible downtime and knows how to revert things to get her/his system back to working order…

Good luck and have a nice day!

Nick

I hope no-one thinks I’m being difficult. I really appreciate all the work and support that everyone is putting in to give me and the whole community a free pbx system. I am really grateful of this. In return, what I am trying to do is provide as much information as possible to aid fault finding, so that everyone can benefit from a fully debugged system.

LOL…
It would appear that you misunderstood my comment…

It was not targeted towards your comments but my own…

I think it’s pretty apparent that I find the way I think it works (based on everyone’s experiences) convoluted to say the least…

While all the people I named now work for the manufacturer of my DAHDI card I know that it was not always the case and they are just trying to fix something they were not the ones to break in the first place…

I said the comment to which I think you replied because I didn’t to appear, myself, difficult…

That doesn’t mean that I don’t have an opinion on how things should be done I also understand why things don’t always go smoothly…

Good luck and have a nice day!

Nick

hi @marbled: I dont have any DAHDI or Digium devices. What is wanrouter module?

I’ll wait i have enough other issues :slight_smile:
Thanks leon

Hi Leon!

The actual name of the driver is Wanpipe,

wanrouter is the script we run to start, stop, etc… it…

re: Sangoma Documentation

It is a Sangoma telephony card hardware specific driver… It can actually do more than DAHDI but with FreePBX/Asterisk it’s a driver we must load in addition to DAHDI…

We use it with cards such as these:

I don’t think there is much risk if you don’t have any DAHDI hardware but as the MTA gals/guys say “Your server, your rules”… :wink:

(At one point in time I was really into mail servers (ie MTAs)…)

Good luck and have a nice day!

Nick

Hi Nick…ok thanks for the info…nope just running SIP stuff on a VM :slight_smile:
I’ll watch for your yeah or nay to move along thanks

Leon

We need to know your TDM card. Not your computer. Please tell us your card type.

i put yum remove kmod-wanpipe.x86_64 wanpipe.x86_64
after that yum install kmod-wanpipe.x86_64 wanpipe.x86_64

and now after reboot dont start asterisk, i need to put fwconsole restar.

and if i put again yum remove kmod-wanpipe.x86_64 wanpipe.x86_64

only say

[root@localhost ~]# yum remove kmod-wanpipe.x86_64 wanpipe.x86_64
Loaded plugins: fastestmirror, versionlock
Resolving Dependencies
--> Running transaction check
---> Package kmod-wanpipe.x86_64 0:7.0.20.13-1.sng7 will be erased
    ---> Package wanpipe.x86_64 0:7.0.20.13-1.sng7 will be erased
    --> Finished Dependency Resolution

    Dependencies Resolved

    =============================================================================================================================================================================================================================================
     Package                                                   Arch                                                Version                                                          Repository                                              Size
    =============================================================================================================================================================================================================================================
    Removing:
     kmod-wanpipe                                              x86_64                                              7.0.20.13-1.sng7                                                 @sng-pkgs                                               36 M
     wanpipe                                                   x86_64                                              7.0.20.13-1.sng7                                                 @sng-pkgs                                               29 M

    Transaction Summary
    =============================================================================================================================================================================================================================================
    Remove  2 Packages

    Installed size: 65 M
    Is this ok [y/N]:

i dont see any more this part

Removing for dependencies:
 freepbx                       noarch                  14.1-1.sng7                     @sng-pkgs                  163 M
 sangoma-pbx                   noarch                  1708-1.sng7                     @sng-pkgs                  8.0 k

Its any way to resolve this???
Thanks

@chaser In order to assist you we need some additional information, such as who manufactures your card, what model is it, etc. Note if it’s not a Sangoma card, wanpipe shouldn’t be affecting this. Also to try to help can you tell me what the output of dahdi_cfg -vvvv and asterisk -rx "dahdi show status".

@Marbled There is a method to the madness with regards to the wanpipe kernel driver as you have to remember that our cards have other uses than just working with Asterisk and Dahdi. Also when you have time to try running yum upgrade on your system, as looking over everything, things should be resolved.

Hi Bryan!

Long time no see… :wink:

Actually, that’s not what I was commenting about… It’s the fact that it looks like it’s the Wanpipe driver stuff which starts DAHDI for the other non-Sangoma cards… Right now it looks like having working Wanpipe drivers breaks things for others and vice versa…

When the Wanpipe driver had problems things started working for people it did not before…

As for the card having other uses besides DAHDI, please look at this post

which is about 4-5 posts above this one.

I said the following in that post

It can actually do more than DAHDI but with FreePBX/Asterisk it’s a driver we must load in addition to DAHDI…

I was referring here to the Wanpipe driver so I am well aware that the fact that the card can do a loooooot more than what we use it for…

I understood long ago that DAHDI is just one of the ways to talk to the card, just one more API…

As for running yum upgrade I already did it several minutes ago (15-20 I would say, I didn’t check the time), I am testing if everything seems OK now. I also removed the modification I had done and described in the ticket to see if it was still needed and it still is…

Have a nice day!

Nick

I’m unsure as to what your problem is, exactly? If it’s the Exception in Module Admin, you need to upgrade Framework to 14.0.1.12 or higher. If it’s NOT that, can you be specific about what problem you’re having, please?

–Rob

Ok, I seem to have some sort of timing related issue…

The fix I described in the ticket worked for a few tries and now no longer wants to…

If I had to guess I would say timing has something to do with it…

(So I will have to revert the fix and which will cause a timeout at boot and slow down my system boot time by about 4-5 minutes…)

I don’t know exactly how things work but my guess is that DAHDI is not initialized properly each time…

To debug thingx I use a phone which tells me to check the phone line when it doesn’t see line voltage…

When I reboot the system it stops having line voltage and complains but eventually tells me it’s OK when, I believe, the Wanpipe drivers have initialized the card…

However now, with the fix in place, I never get a dial tone…

If I had to guess I would think it’s either when the DAHDI drivers start or when Asterisk starts that I get a dial tone and I never get it with the fix in place…

Now I doubt Asterisk is to blame since, except for the missing DAHDI channels, everything works A-OK so my bets would be on DAHDI…

Bryan, does that make sense and is there anything you can suggest besides reverting the fix and slowing down my machine boot time tremendously?

Thank you and have a nice day!

Nick

OK, doing a fwconsole restart fixes things for me when I get that no dial tone problem which makes my problem a lot more similar to what the others are seeing…

Doing a lsdahdi when I have no dial tone gives this:

[root@jester ~]# lsdahdi
### Span  1: WRTDM/0 "wrtdm Board 1" (MASTER) 
   1 FXS        FXOKS       (EC: WANPIPE_HWEC - INACTIVE)  
   2 FXS        FXOKS       (EC: WANPIPE_HWEC - INACTIVE)  
   3 FXS        FXOKS       (EC: WANPIPE_HWEC - INACTIVE)  
   4 FXS        FXOKS       (EC: WANPIPE_HWEC - INACTIVE)  
   5 FXS        FXOKS       (EC: WANPIPE_HWEC - INACTIVE)  
   6 FXS        FXOKS       (EC: WANPIPE_HWEC - INACTIVE)  
   7 FXS        FXOKS       (EC: WANPIPE_HWEC - INACTIVE)  
   8 FXS        FXOKS       (EC: WANPIPE_HWEC - INACTIVE)  
   9 EMPTY                   
  10 EMPTY                   
  11 EMPTY                   
  12 EMPTY                   
  13 EMPTY                   
  14 EMPTY                   
  15 EMPTY                   
  16 EMPTY                   
  17 EMPTY                   
  18 EMPTY                   
  19 EMPTY                   
  20 EMPTY                   
  21 EMPTY                   
  22 EMPTY                   
  23 EMPTY                   
  24 EMPTY   

and this after a fwconsole restart

[root@jester ~]# lsdahdi
### Span  1: WRTDM/0 "wrtdm Board 1" (MASTER) 
   1 FXS        FXOKS       (In use) (EC: WANPIPE_HWEC - INACTIVE)  
   2 FXS        FXOKS       (In use) (EC: WANPIPE_HWEC - INACTIVE)  
   3 FXS        FXOKS       (In use) (EC: WANPIPE_HWEC - INACTIVE)  
   4 FXS        FXOKS       (In use) (EC: WANPIPE_HWEC - INACTIVE)  
   5 FXS        FXOKS       (EC: WANPIPE_HWEC - INACTIVE)  
   6 FXS        FXOKS       (EC: WANPIPE_HWEC - INACTIVE)  
   7 FXS        FXOKS       (EC: WANPIPE_HWEC - INACTIVE)  
   8 FXS        FXOKS       (EC: WANPIPE_HWEC - INACTIVE) 
   9 EMPTY                   
  10 EMPTY                   
  11 EMPTY                   
  12 EMPTY                   
  13 EMPTY                   
  14 EMPTY                   
  15 EMPTY                   
  16 EMPTY                   
  17 EMPTY                   
  18 EMPTY                   
  19 EMPTY                   
  20 EMPTY                   
  21 EMPTY                   
  22 EMPTY                   
  23 EMPTY                   
  24 EMPTY   

(It’s normal that they are not all in use…)

If there’s anything else you need to track down this problem please let me know…

Have a nice day!

Nick

An fwconsole restart stops Dahdi then starts it again. When Dahdi is started in fwconsole on boot the system is telling us it’s already started when it isnt. You check check this after a reboot by running status against the Dahdi systems process then echo $?

Spot on. This is exactly what’s happening.

It is a Nicherons card: http://www.nicherons.com/TDM410P.html
Edit: Their site seems to be down, but their ebay shop is still up: http://stores.ebay.co.uk/Nicherons-International-Inc/Analog-Telephony-Device-/_i.html?_fsub=1241224014&_sid=798913034&_trksid=p4634.c0.m322 although I can no longer see the actual 410P card for sale any longer.

Note that this card has worked flawlessly in my FreePBX13 system, and works in my FreePBX14 system if I manully start DADHi after a reboot. Also, others with genuine Digium hardware are reporting similar issues, so I don’t think its the card:

With the slightly older (and from what I understand, broken) wanpipe driver installed (7.0.20-9.sng7), everything boots fine, and I get the following:

[root@freepbx ~]# yum list kmod-wanpipe.x86_64 wanpipe.x86_64
Loaded plugins: fastestmirror, kmod, versionlock
Loading mirror speeds from cached hostfile
Installed Packages
kmod-wanpipe.x86_64                                      7.0.20-9.sng7                                         @sng-pkgs
wanpipe.x86_64                                           7.0.20-9.sng7                                         @sng-pkgs
Available Packages
kmod-wanpipe.x86_64                                      7.0.20.13-1.sng7                                      sng-pkgs
wanpipe.x86_64                                           7.0.20.13-1.sng7                                      sng-pkgs
[root@freepbx ~]# dahdi_cfg -vvvv
DAHDI Tools Version - 2.11.1

DAHDI Version: 2.11.1
Echo Canceller(s): OSLEC
Configuration
======================


Channel map:

Channel 01: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 01)
Channel 02: FXO Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 02)
Channel 03: FXO Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 04)

4 channels to configure.

Setting echocan for channel 1 to oslec
Setting echocan for channel 2 to oslec
Setting echocan for channel 3 to oslec
Setting echocan for channel 4 to oslec
[root@freepbx ~]# asterisk -rx "dahdi show status"
Description                              Alarms  IRQ    bpviol CRC    Fra Codi Options  LBO
Wildcard TDM400P REV I Board 5           OK      0      0      0      CAS Unk           0 db (CSU)/0-133 feet (DSX-1)
[root@freepbx ~]#

If I then upgrade to the latest wanpipe driver, I get the following:

[root@freepbx ~]# yum list kmod-wanpipe.x86_64 wanpipe.x86_64
Loaded plugins: fastestmirror, kmod, versionlock
Loading mirror speeds from cached hostfile
Installed Packages
kmod-wanpipe.x86_64                                      7.0.20.13-1.sng7                                      @sng-pkgs
wanpipe.x86_64                                           7.0.20.13-1.sng7                                      @sng-pkgs
[root@freepbx ~]# dahdi_cfg -vvvv
DAHDI Tools Version - 2.11.1

DAHDI Version: 2.11.1
Echo Canceller(s):
Configuration
======================


Channel map:

Channel 01: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 01)
Channel 02: FXO Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 02)
Channel 03: FXO Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 04)

4 channels to configure.

DAHDI_CHANCONFIG failed on channel 1: Invalid argument (22)
Selected signaling not supported
Possible causes:
        FXS signaling is being used on a FXS interface (use a FXO signaling variant)
        RBS signaling is being used on a E1 CCS span
        Signaling is being assigned to channel 16 of an E1 CAS span
[root@freepbx ~]# asterisk -rx "dahdi show status"
Description                              Alarms  IRQ    bpviol CRC    Fra Codi Options  LBO
[root@freepbx ~]#

Edit: The latest kmod-wanpipe.x86_64 has just disappeared from the repo, so I can’t upgrade any longer!
Edit 2: Repo now fixed, so I’ve updated the post to show the results with the latest wanpipe.

This is nothing new. This has been happened since day 1

Again. Same.issue as before.

It’s still there.

Yum clean all

Still not finding it:

[root@freepbx ~]# yum clean all
Loaded plugins: fastestmirror, kmod, versionlock
Cleaning repos: sng-base sng-epel sng-extras sng-pkgs sng-updates
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors
[root@freepbx ~]# yum list *wanpipe*
Loaded plugins: fastestmirror, kmod, versionlock
sng-base                                                                                                                                    | 3.6 kB  00:00:00
sng-epel                                                                                                                                    | 4.3 kB  00:00:00
sng-extras                                                                                                                                  | 3.4 kB  00:00:00
sng-pkgs                                                                                                                                    | 3.4 kB  00:00:00
sng-updates                                                                                                                                 | 3.4 kB  00:00:00
(1/8): sng-base/7/x86_64/group_gz                                                                                                           | 156 kB  00:00:00
(2/8): sng-epel/7/x86_64/group_gz                                                                                                           | 170 kB  00:00:00
(3/8): sng-epel/7/x86_64/updateinfo                                                                                                         | 833 kB  00:00:02
(4/8): sng-extras/7/x86_64/primary_db                                                                                                       | 112 kB  00:00:01
(5/8): sng-pkgs/7/x86_64/primary_db                                                                                                         | 457 kB  00:00:02
(6/8): sng-base/7/x86_64/primary_db                                                                                                         | 5.7 MB  00:00:04
(7/8): sng-epel/7/x86_64/primary_db                                                                                                         | 4.8 MB  00:00:04
(8/8): sng-updates/7/x86_64/primary_db                                                                                                      | 2.7 MB  00:00:05
Determining fastest mirrors
Installed Packages
kmod-wanpipe.x86_64                                                            7.0.20-9.sng7                                                              @sng-pkgs
wanpipe.x86_64                                                                 7.0.20-9.sng7                                                              @sng-pkgs
Available Packages
wanpipe.x86_64                                                                 7.0.20.13-1.sng7                                                           sng-pkgs
wanpipe-devel.x86_64                                                           7.0.20.13-1.sng7                                                           sng-pkgs
[root@freepbx ~]#

Any other ideas?

@chaser Can you try again by running yum clean all and then verify that you see wanpipe now using yum list *wanpipe*. You should see the following:

Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
Installed Packages
wanpipe.x86_64                                 7.0.20.13-1.sng7                        @sng-pkgs
Available Packages
kmod-wanpipe.x86_64                            7.0.20.13-1.sng7                        sng-pkgs
wanpipe-debuginfo.x86_64                       7.0.20.13-1.sng7                        sng7-debuginfo
wanpipe-devel.x86_64                           7.0.20.13-1.sng7                        sng-pkgs

Assuming you do, you should be able to run yum update again or specifically update wanpipe and kmod-wanpipe.

Thanks. That’s working now:

[root@freepbx ~]# yum list *wanpipe*
Loaded plugins: fastestmirror, kmod, versionlock
Loading mirror speeds from cached hostfile
Installed Packages
kmod-wanpipe.x86_64                                                            7.0.20-9.sng7                                                              @sng-pkgs
wanpipe.x86_64                                                                 7.0.20-9.sng7                                                              @sng-pkgs
Available Packages
kmod-wanpipe.x86_64                                                            7.0.20.13-1.sng7                                                           sng-pkgs
wanpipe.x86_64                                                                 7.0.20.13-1.sng7                                                           sng-pkgs
wanpipe-devel.x86_64                                                           7.0.20.13-1.sng7                                                           sng-pkgs
[root@freepbx ~]#

@GameGamer43 - Now that the repo is working again, I’ve updated post 77 to show the output with both the previous and current wanpipe driver. As I’ve said before, DAHDi loads with the previous wanpipe driver, but doesn’t load with the newest, or those before the previous.

Does an fwconsole restart fix your issues?