Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pcscf static route #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ims_base/starter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
exec opensips -D -f /etc/opensips/opensips.cfg