TIPS Wable Woes: Asterisk Dies

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,149
Reaction score
1,238
Capture.PNG

Running on Wable Server - every so often - whenever it frickin feels like it ... asterisk dies with

Full File
[2016-03-03 11:23:04] WARNING[6879][C-00000008] chan_sip.c: Failed to initialize UDPTL, declining image stream
[2016-03-03 11:23:04] WARNING[6879][C-00000008] chan_sip.c: Failing due to no acceptable offer found
[2016-03-03 11:24:54] VERBOSE[10217] asterisk.c: Remote UNIX connection disconnected
[2016-03-03 11:25:03] VERBOSE[6826] asterisk.c: Asterisk uncleanly ending (0).
[2016-03-03 11:25:03] VERBOSE[6826] asterisk.c: Executing last minute cleanups
[2016-03-03 11:25:03] VERBOSE[6826] res_musiconhold.c: Destroying musiconhold processes
[2016-03-03 11:25:04] VERBOSE[6826] manager.c: Manager unregistered action DBGet
[2016-03-03 11:25:04] VERBOSE[6826] manager.c: Manager unregistered action DBPut
[2016-03-03 11:25:04] VERBOSE[6826] manager.c: Manager unregistered action DBDel
[2016-03-03 11:25:04] VERBOSE[6826] manager.c: Manager unregistered action DBDelTree
[2016-03-03 12:25:52] Asterisk 13.6.0 built by root @ myhost.com on a x86_64 running Linux on 2015-11-17

Another:

[2016-03-03 15:36:04] VERBOSE[31537][C-0000001d] app_mixmonitor.c: End MixMonitor Recording SIP/VI-In-00000053
[2016-03-03 15:39:33] VERBOSE[16445] asterisk.c: Asterisk cleanly ending (0).
[2016-03-03 15:39:33] VERBOSE[16445] asterisk.c: Executing last minute cleanups
[2016-03-03 15:39:33] VERBOSE[16445] res_musiconhold.c: Destroying musiconhold processes
[2016-03-03 15:39:33] VERBOSE[16445] manager.c: Manager unregistered action DBGet
[2016-03-03 15:39:33] VERBOSE[16445] manager.c: Manager unregistered action DBPut
[2016-03-03 15:39:33] VERBOSE[16445] manager.c: Manager unregistered action DBDel
[2016-03-03 15:39:33] VERBOSE[16445] manager.c: Manager unregistered action DBDelTree
[2016-03-03 16:05:10] Asterisk 13.6.0 built by root @ myhost.com on a x86_64 running Linux on 2015-11-17 17:38:39 UTC
 

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,149
Reaction score
1,238
service asterisk status
asterisk dead but subsys locked
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,207
Reaction score
5,234
Their networking can be wonky. Have you tried hard-coding your DNS entries??
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
My synagogue pbx died sometime yesterday and i had them reboot it to no avail. I will have to go over and check it out. DNS should be fine as everything else there is working
 

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,149
Reaction score
1,238
I've written a script that automatically checks if asterisk has died, and if it has, it starts it back up and shoots out an e-mail.

I'd rather have this issue of why safe_asterisk doesn't kick it back up automatically. If you'd like the script, let me know and I'll be glad to provide it.
 

Uncle Robin

New Member
Joined
Mar 23, 2016
Messages
13
Reaction score
4
Curious ... is your instance in NY, Dallas, or Seattle
Dallas.

I am using only one trunk on this server; IAX, at voip.ms. I replaced the server name with the IP address to see what happens.

This is a test server, basically evaluating Wable. It's not doing so well :)
 

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,149
Reaction score
1,238
I'm doing the same - I've got 9 servers there to test - mine that has that issue is also in Dallas. The kick script that I've made makes things work, but that's to the point to build any serious infrastructure on. I've just placed a copy of one with an issue in Dallas on NY to see what happens.

I like their speed, backups, and pricing, but it needs to be up without issues - still evaluating.
 

Uncle Robin

New Member
Joined
Mar 23, 2016
Messages
13
Reaction score
4
Considering the price ($8.00/mo), I didn't set my expectations very high.;) Besides the asterisk randomly stopping, Wable seems pretty good.

UR
 

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,149
Reaction score
1,238
Is Digital Ocean solid enough to run business class VoIP server from?
 

Uncle Robin

New Member
Joined
Mar 23, 2016
Messages
13
Reaction score
4
I looked at Digital Ocean and liked what I saw. I passed on them this round because I wanted a data center preferably in the midwest (I'm near St. Louis).
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,207
Reaction score
5,234
Is Digital Ocean solid enough to run business class VoIP server from?

We've never had a problem. And their snapshot capability is awesome for (free) backups. Also makes it easy to scale up.
 

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,149
Reaction score
1,238
We've never had a problem. And their snapshot capability is awesome for (free) backups. Also makes it easy to scale up.

Scale up is one of the reasons I was looking at Wable. I figure I've got a Prox at colo for backup failover, and then wanted a scalable cloud based VPS and was thinking Wable would work. I guess I'll do an install at Digital Ocean and put them through the paces.
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
two items...

1. false alarm...seems HVAC guy was around yesterday and the PBX was powered off!
2. Digital Ocean - works very well. my friend and I are using it (He more for business). He's in a SFO instance and I'm in a NYC instance. He's located in Australia till July and also has folks in the Philippines using it. Their support has been pretty good too.
Price is right and the connectivity excellent. 1ms hop to Voip.MS in NYC from NYC D.O instance which means probably in the same data center.

Leon
 

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,149
Reaction score
1,238
For anyone wanting the script to make sure asterisk is running and kick it back up if its not:

astcheck (place in /etc ... or wherever you like called from crontab)
Code:
#!/bin/bash

# WARNING::If working on server, set value = 1 to deactivate check service
deactivate=0

service=asterisk

# Should we skip the check?
if [ $deactivate -eq 0 ];
then
  ERRCD=$(ps cax | grep $service | wc -l)
else
  ERRCD=2
fi

# Run the Check
if [ "$ERRCD" -lt 2 ];
then

#       echo "[$service] is crippled running at $(ps -ef | grep -v grep | grep $service | wc -l)"
#       ERRMSG="[$service] is crippled running at $(ps -ef | grep -v grep | $service | wc -l)"
        ERRMSG="[$service] is crippled with run count [$ERRCD]of[2]"

        #/etc/init.d/$service restart
        #/usr/local/sbin/amportal restart
        RESTARTMSG=$(amportal restart)

        # $Company & $SITE variables are for populating the alert e-mail
        EMAIL='[email protected]'
        DATE=`date "+%m-%d-%Y %H:%M"`
        HOST=`hostname`

        # Message Formating
        MSG="[$DATE] Asterisk has stopped prematurely which resulted in a failure on host [$HOST].\n"
  MSG="$MSG Error=[$ERRMSG] .... ATTEMPTING RESTART!\n$RESTARTMSG"

  # log
        echo "---------------------------------">> /var/log/asterisk/asteriskfailure.log
        echo -e "$MSG" >> /var/log/asterisk/asteriskfailure.log

        # Send an email
        echo -e "$MSG" | mail -r 'urgent<[email protected]>' -s " ASTERISK DIED - on host [$HOST] ... RESTARTING" "$EMAIL"

# =========================================================================
fi

Of course, add the script to /etc/crontab

Code:
# Check if asterisk is running
* * * * * root /etc/astcheck

This runs the script astcheck every minute to make sure its working properly. If it isn't, it restarts it and sends you an e-mail.
 

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,149
Reaction score
1,238
Uncle Robin and I have been working with Wable, and I'm hoping we get a resolution soon, but right now, I am squarely placing the blame on them - and probably just their Dallas Node. Both of us are experiencing asterisk failure at the same minute. If anyone else has a Dallas Node PBX with Wable, let us know.

Meanwhile, I'm trying out DO as recommended and so far, so good.
 

Members online

No members online now.

Forum statistics

Threads
25,827
Messages
167,875
Members
19,254
Latest member
hezbay
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top