summaryrefslogtreecommitdiff
path: root/configs/samples/res_stun_monitor.conf.sample
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2014-07-17 21:17:28 +0000
committerMatthew Jordan <mjordan@digium.com>2014-07-17 21:17:28 +0000
commitfc0fecb4768d696db3324bcf6dd03325bb4cd513 (patch)
tree12615f96e88382b2824d4901f6949571e41ea2e4 /configs/samples/res_stun_monitor.conf.sample
parent1ce23d4534994fdd8bfb8ad3b9ca1884194097be (diff)
configs: Move sample config files into a subdirectory of configs
This moves all samples configs from configs/ to configs/samples. This allows for additional sets of sample configuration files to be added in the future. Review: https://reviewboard.asterisk.org/r/3804/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs/samples/res_stun_monitor.conf.sample')
-rw-r--r--configs/samples/res_stun_monitor.conf.sample27
1 files changed, 27 insertions, 0 deletions
diff --git a/configs/samples/res_stun_monitor.conf.sample b/configs/samples/res_stun_monitor.conf.sample
new file mode 100644
index 000000000..12d32a4cd
--- /dev/null
+++ b/configs/samples/res_stun_monitor.conf.sample
@@ -0,0 +1,27 @@
+;
+; Configuration file for the res_stun_monitor module
+;
+; The res_stun_monitor module sends STUN requests to a configured STUN server
+; periodically. If the monitor detects a change in the external IP address or port
+; provided by the STUN server an event is sent out internally within Asterisk
+; to alert all listeners to that event of the change.
+
+; The current default listeners for the network change event include chan_sip
+; and chan_iax. Both of these channel drivers by default react to this event
+; by renewing all outbound registrations. This allows the endpoints Asterisk
+; is registering with to become aware of the address change and know the new
+; location.
+;
+[general]
+;
+; ---- STUN Server configuration ---
+; Setting the 'stunaddr' option to a valid address enables the STUN monitor.
+;
+;stunaddr = mystunserver.com ; Address of the STUN server to query.
+ ; Valid form:
+ ; [(hostname | IP-address) [':' port]]
+ ; The port defaults to the standard STUN port (3478).
+ ; Set to an empty value to disable STUN monitoring.
+ ; Default is disabled.
+;stunrefresh = 30 ; Number of seconds between STUN refreshes.
+ ; Default is 30.