|
@@ -10278,7 +10278,7 @@ function update_sipwitch_daemon {
|
10278
|
10278
|
echo 'EnvironmentFile=-/etc/sipwitch.conf' >> /etc/systemd/system/sipwitch.service
|
10279
|
10279
|
echo 'EnvironmentFile=-/etc/default/sipwitch' >> /etc/systemd/system/sipwitch.service
|
10280
|
10280
|
echo 'ExecStartPre=-/bin/rm -f /var/run/sipwitch/control' >> /etc/systemd/system/sipwitch.service
|
10281
|
|
- echo 'ExecStart=/usr/sbin/sipw -f $OPTIONS' >> /etc/systemd/system/sipwitch.service
|
|
10281
|
+ echo "ExecStart=/usr/sbin/sipw -f \$OPTIONS -P$SIP_PORT" >> /etc/systemd/system/sipwitch.service
|
10282
|
10282
|
echo 'Restart=always' >> /etc/systemd/system/sipwitch.service
|
10283
|
10283
|
echo 'NotifyAccess=main' >> /etc/systemd/system/sipwitch.service
|
10284
|
10284
|
echo '' >> /etc/systemd/system/sipwitch.service
|
|
@@ -10352,7 +10352,7 @@ function install_sip {
|
10352
|
10352
|
echo '</sipwitch>' >> /etc/sipwitch.conf
|
10353
|
10353
|
|
10354
|
10354
|
sed -i 's|#PLUGINS=|PLUGINS=|g' /etc/default/sipwitch
|
10355
|
|
- sed -i 's|PLUGINS=.*|PLUGINS="zeroconf subscriber forward"|g' /etc/default/sipwitch
|
|
10355
|
+ sed -i 's|PLUGINS=.*|PLUGINS="zeroconf subscriber forward"|g' /etc/default/sipwitch
|
10356
|
10356
|
groupadd sipwitch
|
10357
|
10357
|
usermod -aG sipwitch $MY_USERNAME
|
10358
|
10358
|
|