res_stun_monitor.conf.sample 1.3 KB

12345678910111213141516171819202122232425262728
  1. ;
  2. ; Configuration file for the res_stun_monitor module
  3. ;
  4. ; The res_stun_monitor module sends STUN requests to a configured STUN server
  5. ; periodically. If the monitor detects a change in the external IP address or port
  6. ; provided by the STUN server an event is sent out internally within Asterisk
  7. ; to alert all listeners to that event of the change.
  8. ; The current default listeners for the network change event include chan_sip
  9. ; and chan_iax. Both of these channel drivers by default react to this event
  10. ; by renewing all outbound registrations. This allows the endpoints Asterisk
  11. ; is registering with to become aware of the address change and know the new
  12. ; location.
  13. ;
  14. [general]
  15. ;
  16. ; ---- STUN Server configuration ---
  17. ; Setting the 'stunaddr' option to a valid address enables the STUN monitor.
  18. ;
  19. ;stunaddr = mystunserver.com ; Address of the STUN server to query.
  20. ; Valid form:
  21. ; [(hostname | IP-address) [':' port]]
  22. ; The port defaults to the standard STUN port (3478).
  23. ; Set to an empty value to disable STUN monitoring.
  24. ; Default is disabled.
  25. ;stunrefresh = 30 ; Number of seconds between STUN refreshes.
  26. ; Default is 30.