sip-trunk-intermittently-not-registering

the_trooper47
Posts: 26
Member Since:
2010-10-31

......when the modem dies! you cant access the internet anymore so the modem needs rebooting!

I have a Draytek modem, I have it set to automatically reboot during the early morning to try & avoid this, but sometimes when theres a lot of traffic &/or downloading the internet connection goes kind of stail. (ie. the connection is active/ alive but no new traffic can go in or out of the modem, eg. cant access Google via ping or web browser.)

So this is the problem, I need a reliable phone system but to have that I also need consistant access to my ISP & Voip provider. No or very minimal down time. :-)

On some occasions google (for example) will be accessible but the trixbox's SIP registration fails, this is seen as a greyed out trunk when viewing the FOP. When either we cant access the internet, call out or the FOP shows the greyed out trunk, rebooting the modem corrects the issue everytime.

Using a windows pc I have a batch file which pings a web address, if the ping returns an error level to say that there was no response I am sent an internal message, like that of the old Windows Messenger. Only problem with this is sometimes the IP designated will respond but the SIP registration will still show that its failed.

Has anyone has gone down this road b4?

Can anyone suggest how I can mimic the SIP registration in a batch file or vbs script, so that if the SIP registration fails I can be notified straight away, determined by the returned error level?

Cheers in advance!

--

trixbox 2.8.0.4



gheffo
Posts: 13
Member Since:
2012-02-05
man asterisk

Hi,

Was it too involved to check out $ man asterisk as a suggested starting point?

###########################
#!/bin/bash
echo `man asterisk`
###########################

Actually what you asked for was an interesting question - maybe one solved during a long and boring rainy Sunday afternoon?



the_trooper47
Posts: 26
Member Since:
2010-10-31
Re: man asterisk

mmmmm ... sarcasm much?!

I appreciate you taking the time to respond gheffo, I'll check it out... but it may not help me in a windows environment.

I think its important to have a consistant/ reliable internet connection... being a newbie with limited knowledge using linux is why I came to the forum to ask for help... hopefully someone with some know-how on a rainy sunday will help more than just myself who wants this also.

trixbox 2.8.0.4

--

trixbox 2.8.0.4



SkykingOH
Posts: 9678
Member Since:
2007-12-17
Sarcasm is about all that is

Sarcasm is about all that is left here. Fonality abandoned the project a long time ago and the community is non-existent. Running an unsupported, abandoned, out of date distro when so many options exist and trying to extend it does not exactly ingratiate you to the few trollers left in the forums. I have admin privs so I try to stop by once a day, delete spam and point people in the right direction.

With so many options like the FreePBX distro and PBX in Flash I can't imagine why anyone would run trixbox.

To answer your question if you look in the trunk settings you can fire off a script on trunk failure. That can fire a Windows script off as easy as it can a Linux script.

--

Scott

aka "Skyking"



Comment viewing options

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