Fix for ip_relay relay_control on other linux distros

git-svn-id: svn://192.168.202.10@2476 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2016-01-28 22:53:59 +00:00
parent 6679a207d1
commit 78a313ab42
2 changed files with 14 additions and 10 deletions
+2
View File
@@ -65,6 +65,8 @@ MLINAT - Multi-Lead auto-alt-dial lead set to inactive
MAXCAL - Max Calls drop from in-group MAXCAL - Max Calls drop from in-group
LRERR - Outbound Local Channel Resolution Error LRERR - Outbound Local Channel Resolution Error
QCFAIL - QC_FAIL_CALLBK QCFAIL - QC_FAIL_CALLBK
QCCANC - QC cancel
QCPASS - QC passed
LSMERG - Agent lead search old lead merge LSMERG - Agent lead search old lead merge
DISMX - Dispo Call Max Status DISMX - Dispo Call Max Status
INBND - first status of a newly created lead going into the inbound queueing process INBND - first status of a newly created lead going into the inbound queueing process
+12 -10
View File
@@ -2,7 +2,7 @@
# #
# relay_control ip_relay startup/shutdown script # relay_control ip_relay startup/shutdown script
# #
# Version: 1.1 ip_relay/relay_control started: 2003-02-07 modified: 2016-01-01 # Version: 1.1 ip_relay/relay_control started: 2003-02-07 modified: 2016-01-28
# #
# vicidial@gmail.com # vicidial@gmail.com
# #
@@ -16,22 +16,24 @@
# 140619-0954 - Added new port 42569 for playback loops # 140619-0954 - Added new port 42569 for playback loops
# 160101-0912 - Added check for installed ip_relay binary # 160101-0912 - Added check for installed ip_relay binary
# 160105-2336 - Fix for packaged ip_relay # 160105-2336 - Fix for packaged ip_relay
# 160128-1733 - Fix for some linux distros
# #
IPRELAY_BIN="/usr/bin/ip_relay"
if [ ! -x $IPRELAY_BIN ]; then
IPRELAY_BIN="/usr/local/bin/ip_relay"
fi
case "$1" in case "$1" in
start) start)
echo "starting up ip_relay services at $IPRELAY_BIN" echo "starting up ip_relay services at $IPRELAY_BIN"
# Change directory to OS specific ip_relay, or user generic vicidial one
if [ -x "/usr/bin/ip_relay" ]; then
cd /usr/bin/
else
cd /usr/local/bin/
fi
exec -a ip_relay $IPRELAY_BIN 40569 127.0.0.1 4569 9999999 & ip_relay 40569 127.0.0.1 4569 9999999 &
exec -a ip_relay $IPRELAY_BIN 41569 127.0.0.1 4569 9999999 & ip_relay 41569 127.0.0.1 4569 9999999 &
exec -a ip_relay $IPRELAY_BIN 42569 127.0.0.1 4569 9999999 & ip_relay 42569 127.0.0.1 4569 9999999 &
echo "done " echo "done "
echo echo