aboutsummaryrefslogtreecommitdiffstats
path: root/testing/asterisk/asterisk.post-install
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-11-17 10:30:37 +0200
committerTimo Teräs <timo.teras@iki.fi>2011-11-17 10:30:37 +0200
commite21aa81e21e52fd618dc5d7cae48f5d788c8991f (patch)
tree527f9994d79df7c86fdd719c6ece68fe031696d3 /testing/asterisk/asterisk.post-install
parentaf8f7454a4f2858316a5fb832da2a91ae0b4f890 (diff)
downloadaports-e21aa81e21e52fd618dc5d7cae48f5d788c8991f.tar.bz2
aports-e21aa81e21e52fd618dc5d7cae48f5d788c8991f.tar.xz
testing/asterisk: copied from main with upgrade to 10.0.0-rc2
Diffstat (limited to 'testing/asterisk/asterisk.post-install')
-rw-r--r--testing/asterisk/asterisk.post-install11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/asterisk/asterisk.post-install b/testing/asterisk/asterisk.post-install
new file mode 100644
index 0000000000..fd51c7fa5d
--- /dev/null
+++ b/testing/asterisk/asterisk.post-install
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+chown -R asterisk:asterisk /var/*/asterisk
+chown -R asterisk:asterisk /etc/asterisk
+chmod -R u=rwX,g=rX,o= /etc/asterisk
+
+# set IP ToS
+# iptables -A OUTPUT -t mangle -p udp -m udp --dport 5060 -j DSCP --set-dscp 0x28
+#iptables -A OUTPUT -t mangle -p udp -m udp --sport 10000:20000 -j DSCP --set-dscp 0x28
+# more info: http://www.voip-info.org/wiki-Asterisk+non-root
+