diff --git a/ims_base/starter.sh b/ims_base/starter.sh index ff22813..339684d 100755 --- a/ims_base/starter.sh +++ b/ims_base/starter.sh @@ -57,6 +57,10 @@ printYelwStar "Starting OPENSIPS-process: ..." #/sbin/opensips-m4cfg printYelwStar "setting up m4 configurations ..." m4 /etc/opensips/opensips.m4.template /etc/opensips/opensips_proxy.m4 > /etc/opensips/opensips.cfg -exec opensips -D -f /etc/opensips/opensips.cfg +if [ "$templateName" = "pcscf" ]; +then + printYelwStar "Adding route to ${UPF_IP}" + route add -net 192.168.101.0 netmask 255.255.255.0 gw ${UPF_IP} +fi -ip route add 192.168.101.0/24 via ${UPF_IP} \ No newline at end of file +exec opensips -D -f /etc/opensips/opensips.cfg