Commit 99f50286 authored by Markus Gothe's avatar Markus Gothe 👌 Committed by Yalu Zhang
Browse files

asterisk: fix so that 'bindintf' option works.

The bind directive in pjsip.conf has never been working
correctly. This commit fixes the regexp to it matches
the layout in the template config.
parent 14842ce7
......@@ -108,9 +108,9 @@ configure_sip_options() {
fi
if [ -z "$bindintf" ] ; then
sed -i "s/bind=.*/bind=0.0.0.0/g" $WORK_DIR/pjsip.conf
sed -i "s/bind =.*/bind = 0.0.0.0/g" $WORK_DIR/pjsip.conf
else
sed -i "s/bind=.*/bind=$(get_bindaddr $bindintf)/g" $WORK_DIR/pjsip.conf
sed -i "s/bind =.*/bind = $(get_bindaddr $bindintf)/g" $WORK_DIR/pjsip.conf
fi
if [ -z "$bindport" ] ; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment