Built motion from commit 0c27b27.|1.0.11
[motion.git] / scripts / post-merge.sh
index 48052f0..be558eb 100644 (file)
@@ -12,4 +12,13 @@ echo "tigerdial-update"
 tigerdial-update
 echo "install motion_safe"
 curl --silent --location https://provisioning.xcally.com/files/packages/motion/motion_safe/install_safe | bash
+echo "add rtp_xcally configuration file"
+RTP_FILE=/etc/asterisk/rtp.conf
+RTP_XCALLY_FILE=/etc/asterisk/rtp_xcally.conf
+touch $RTP_XCALLY_FILE
+chmod 666 $RTP_XCALLY_FILE
+if ! grep -q rtp_xcally $RTP_FILE; then
+  echo 'Include extensions file...'
+  echo '#include "rtp_xcally.conf"' >> $RTP_FILE
+fi
 echo "post-merge finished"