support

How to reset FXO card

drtester
Posts: 92
Member Since:
2006-11-29

I've got a clone of the TDM400 card that has 4 fxo ports. The card works for a few days, but will occasionally just "die", and stop responding to ringing voltage on the port (I use it for inbound only). The only thing I've seen that seems to work is to stop amportal, restart zaptel, then start amportal. Its good then for a little bit, and the cycle continues.

I wrote a script to do just that, and put it in /etc/cron.daily, which has helped, but there are some mornings I get in and see that it still isn't working. I run the script, and its good.

I've tried this card in a couple different systems, and the same thing happens.. Also tried it with different Trixbox versions (2.0, 2.2, and now the latest 2.6.1) - same thing.

One thing I have noticed is that I sometimes get calls on my system from this card, and when I pick up the phone, I hear lots of noise.. Not exactly white noise, but loud noise nontheless. Usually after that call, the card is dead until next zaptel restart.

I also see that PRI cards seem to reset themselves quite frequently.

Is there some way I can make this card reset itself? Only if its not in use! I did try a zap reset within Asterisk, but this does not help.

Ideas, anyone?



kevern
Posts: 125
Member Since:
2008-08-16
drtester.I have been in the

drtester.

I have been in the IT industry for +_17 Years now and have a few techhies reporting to me.
This feedback is a suggestion based on experience as I do not have the facilities to simulate your hw/sw environment.

As a suggestion I would recommend that you firstly do a google search for TDM400 problems and secondly I would suggest that you try another TDM400 card in your system to test wether or not the card itself is givving you the troubles/problems.

Thirdly, and again if the TDM400 is not being used in approved hardware i.e. what Trixbox recommends try the same card in a different machine.

And lastly just getting a feel for your problem generally speaking if the fault is not common in software forums there is always a suspicion that something is not quite right with the hardware side of things.

As a end note, I presume your have referred to all the latest drivers for the card.

Hope this helps.

Kevern.



drtester
Posts: 92
Member Since:
2006-11-29
Found the solution!

I found some information from seeing other people having the same problem.

For the benefit of the archives, here is my solution: Put this script in /etc/cron.hourly:

#!/bin/bash
/usr/sbin/asterisk -rx "stop when convenient" > /dev/null
while /bin/ps ax | /bin/grep '[s]afe_asterisk' > /dev/null; do sleep 5; done
amportal stop > /dev/null
/etc/init.d/zaptel stop > /dev/null
/etc/init.d/zaptel start > /dev/null
amportal start > /dev/null



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.