Skip to content

Commit

Permalink
Removed start-restcomm script, will modify and use the default one th…
Browse files Browse the repository at this point in the history
…at comes with Restcomm
  • Loading branch information
gvagenas committed Jul 3, 2015
1 parent 1a55cc5 commit 7acee45
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 181 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ EXPOSE 65000-65535/udp
RUN mkdir /etc/service/restcomm
ADD ./restcomm_service.sh /etc/service/restcomm/run

RUN rm /opt/Mobicents-Restcomm-JBoss-AS7/bin/restcomm/start-restcomm.sh
ADD ./start-restcomm.sh /opt/Mobicents-Restcomm-JBoss-AS7/bin/restcomm/start-restcomm.sh
#RUN rm /opt/Mobicents-Restcomm-JBoss-AS7/bin/restcomm/start-restcomm.sh
#ADD ./start-restcomm.sh /opt/Mobicents-Restcomm-JBoss-AS7/bin/restcomm/start-restcomm.sh
10 changes: 10 additions & 0 deletions restcomm_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,19 @@ fi
if [ -n "$MEDIASERVER_LOWEST_PORT" ]; then
echo "MEDIASERVER_LOWEST_PORT $MEDIASERVER_LOWEST_PORT"
sed -i "s/MEDIASERVER_LOWEST_PORT=.*/MEDIASERVER_LOWEST_PORT=$MEDIASERVER_LOWEST_PORT/" $BASEDIR/bin/restcomm/restcomm.conf
else
MEDIASERVER_LOWEST_PORT='65000'
echo "MEDIASERVER_LOWEST_PORT $MEDIASERVER_LOWEST_PORT"
sed -i "s/MEDIASERVER_LOWEST_PORT=.*/MEDIASERVER_LOWEST_PORT=$MEDIASERVER_LOWEST_PORT/" $BASEDIR/bin/restcomm/restcomm.conf
fi

if [ -n "$MEDIASERVER_HIGHEST_PORT" ]; then
echo "MEDIASERVER_HIGHEST_PORT $MEDIASERVER_HIGHEST_PORT"
sed -i "s/MEDIASERVER_HIGHEST_PORT=.*/MEDIASERVER_HIGHEST_PORT=$MEDIASERVER_HIGHEST_PORT/" $BASEDIR/bin/restcomm/restcomm.conf
else
MEDIASERVER_HIGHEST_PORT='65535'
echo "MEDIASERVER_HIGHEST_PORT $MEDIASERVER_HIGHEST_PORT"
sed -i "s/MEDIASERVER_HIGHEST_PORT=.*/MEDIASERVER_HIGHEST_PORT=$MEDIASERVER_HIGHEST_PORT/" $BASEDIR/bin/restcomm/restcomm.conf
fi

if [ -n "$PROVISION_PROVIDER" ]; then
Expand Down Expand Up @@ -100,4 +108,6 @@ if [ -n "$ACAPELA_PASSWORD" ]; then
sed -i "s/ACAPELA_PASSWORD=.*/ACAPELA_PASSWORD=$ACAPELA_PASSWORD/" $BASEDIR/bin/restcomm/restcomm.conf
fi

export RUN_DOCKER=true

exec $BASEDIR/bin/restcomm/start-restcomm.sh
179 changes: 0 additions & 179 deletions start-restcomm.sh

This file was deleted.

0 comments on commit 7acee45

Please sign in to comment.