check asterisk pid with loquendo variables

#!/bin/bash

if [ $CHECK -gt 1 ]
 then
 echo " Asterisk running..."
 exit 0
fi

if [ $CHECK -lt 2 ]
 then
 export LTTS7_DEFAULTSESSION=/opt/Loquendo/LTTS7/bin/default.session
 export LD_LIBRARY_PATH=/opt/Loquendo/LTTS7/bin
 /usr/sbin/safe_asterisk
 echo " Initiating Asterisk..."
 /usr/sbin/safe_asterisk
fi
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s