wanrouter service on Vicibox 7.0.4

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

wanrouter service on Vicibox 7.0.4

Postby covarrubiasgg » Wed Nov 08, 2017 4:03 pm

Hello there,

I have this Vicidial cluster running, it was all installed with Vicibox 7.0.4 (we made a try with Vicibox 8 and everything burned but that is for another story)

We are using Sangoma E1 Cards which are working properly, the problem i am having is that every time we reboot the server, we need to manually start wanrouter service, restart dahdi and restart asterisk, which is why we try not to reboot those servers and over time leads to some random problems that doesn't happen with the servers that reboots everyday using the cron.

Anyway, i want to ask you if there is any easy and painfree solution to get wanrouter starting after reboots.

I'm working o a systemd service script, but i am not very experienced anyway i will give it a try, but if you have a better idea i would love to hear about it.

This is an isolated cluster which i can't reach from my network so I don't have access right now to Vicidial server specs or vicidial versions and builds, but i hope is not necessary because this is not related with Vicidial but Vicibox

BTW when i say start wanrouter manually i mean

Code: Select all
wanrouter start
covarrubiasgg
 
Posts: 420
Joined: Thu Jun 10, 2010 10:20 am
Location: Tijuana, Mexico

Re: wanrouter service on Vicibox 7.0.4

Postby Kumba » Fri Nov 10, 2017 2:12 pm

the /etc/init.d/vicidial script should be starting wanrouter for you in the proper sequence. I believe I made a bug post about fixing the init script because it wasn't finding the config files properly.

But you should look at that and see why it's not starting wanrouter for you.

Also, wanrouter is broken in ViciBox v.8 so if that's a requirement for you then I wouldn't suggest upgrading. The Sangoma drivers for T1/E1/PRI cards are a nightmare to get working right on OBS.
Kumba
 
Posts: 939
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida

Re: wanrouter service on Vicibox 7.0.4

Postby covarrubiasgg » Sun Nov 12, 2017 5:13 pm

Hey Kumba, the patch you made was for 7.0.3, so 7.0.4 was already patched... but the patch has a typo

I know 7.0.4 is old news now, but if this is the lastest working iso for builds with sangoma cards, maybe it worth to fix it

Here is your patch and in red the typo, i have already test it on my prod servers

--- vicidial.old 2016-05-19 14:45:49.592071488 -0700
+++ vicidial 2016-05-19 14:37:07.445305911 -0700
@@ -151,7 +151,7 @@
if [[ "$(/sbin/lsmod | /usr/bin/grep dahdi)" ]]; then
echo " DAHDI already loaded, skipping."
else
- if [ -x $WAN_BIN -a -f "/etc/wanpipe/wanpipe"* ]; then
+ if [ -x $WAN_BIN -a "$(find /etc/wanpipe -maxdepth 1 -name 'wanpipea*.conf' -print -quit)" ]; then
echo -n " Sangoma wanrouter config found, loading... "
$WAN_BIN start 2>>/var/log/vicidial.log 1>&2
if [ ! /sbin/lsmod | /usr/bin/grep wanpipe ]; then
covarrubiasgg
 
Posts: 420
Joined: Thu Jun 10, 2010 10:20 am
Location: Tijuana, Mexico

Re: wanrouter service on Vicibox 7.0.4

Postby covarrubiasgg » Sun Nov 12, 2017 5:14 pm

By the way, same typo present in 8.0.1
covarrubiasgg
 
Posts: 420
Joined: Thu Jun 10, 2010 10:20 am
Location: Tijuana, Mexico

Re: wanrouter service on Vicibox 7.0.4

Postby Kumba » Mon Nov 13, 2017 12:33 pm

I'll fix it in 8.0.2, and maybe some day Wanpipe will be working again.
Kumba
 
Posts: 939
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 57 guests