external.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <profile name="external">
  2. <!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files -->
  3. <!-- This profile is only for outbound registrations to providers -->
  4. <gateways>
  5. <X-PRE-PROCESS cmd="include" data="external/*.xml"/>
  6. </gateways>
  7. <aliases>
  8. <!--
  9. <alias name="outbound"/>
  10. <alias name="nat"/>
  11. -->
  12. </aliases>
  13. <domains>
  14. <domain name="all" alias="false" parse="true"/>
  15. </domains>
  16. <settings>
  17. <param name="debug" value="0"/>
  18. <!-- If you want FreeSWITCH to shutdown if this profile fails to load, uncomment the next line. -->
  19. <!-- <param name="shutdown-on-fail" value="true"/> -->
  20. <param name="sip-trace" value="no"/>
  21. <param name="sip-capture" value="no"/>
  22. <param name="rfc2833-pt" value="101"/>
  23. <!-- RFC 5626 : Send reg-id and sip.instance -->
  24. <!--<param name="enable-rfc-5626" value="true"/> -->
  25. <param name="sip-port" value="$${external_sip_port}"/>
  26. <param name="dialplan" value="XML"/>
  27. <param name="context" value="public"/>
  28. <param name="dtmf-duration" value="2000"/>
  29. <param name="inbound-codec-prefs" value="$${global_codec_prefs}"/>
  30. <param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/>
  31. <param name="hold-music" value="$${hold_music}"/>
  32. <param name="rtp-timer-name" value="soft"/>
  33. <!--<param name="enable-100rel" value="true"/>-->
  34. <!--<param name="disable-srv503" value="true"/>-->
  35. <!-- This could be set to "passive" -->
  36. <param name="local-network-acl" value="localnet.auto"/>
  37. <param name="manage-presence" value="false"/>
  38. <!-- used to share presence info across sofia profiles
  39. manage-presence needs to be set to passive on this profile
  40. if you want it to behave as if it were the internal profile
  41. for presence.
  42. -->
  43. <!-- Name of the db to use for this profile -->
  44. <!--<param name="dbname" value="share_presence"/>-->
  45. <!--<param name="presence-hosts" value="$${domain}"/>-->
  46. <!--<param name="force-register-domain" value="$${domain}"/>-->
  47. <!--all inbound reg will stored in the db using this domain -->
  48. <!--<param name="force-register-db-domain" value="$${domain}"/>-->
  49. <!-- ************************************************* -->
  50. <!--<param name="aggressive-nat-detection" value="true"/>-->
  51. <param name="inbound-codec-negotiation" value="generous"/>
  52. <param name="nonce-ttl" value="60"/>
  53. <param name="auth-calls" value="false"/>
  54. <param name="inbound-late-negotiation" value="true"/>
  55. <param name="inbound-zrtp-passthru" value="true"/> <!-- (also enables late negotiation) -->
  56. <!--
  57. DO NOT USE HOSTNAMES, ONLY IP ADDRESSES IN THESE SETTINGS!
  58. -->
  59. <param name="rtp-ip" value="$${local_ip_v4}"/>
  60. <param name="sip-ip" value="$${local_ip_v4}"/>
  61. <param name="ext-rtp-ip" value="auto-nat"/>
  62. <param name="ext-sip-ip" value="auto-nat"/>
  63. <param name="rtp-timeout-sec" value="300"/>
  64. <param name="rtp-hold-timeout-sec" value="1800"/>
  65. <!--<param name="enable-3pcc" value="true"/>-->
  66. <!-- TLS: disabled by default, set to "true" to enable -->
  67. <param name="tls" value="$${external_ssl_enable}"/>
  68. <!-- Set to true to not bind on the normal sip-port but only on the TLS port -->
  69. <param name="tls-only" value="false"/>
  70. <!-- additional bind parameters for TLS -->
  71. <param name="tls-bind-params" value="transport=tls"/>
  72. <!-- Port to listen on for TLS requests. (5081 will be used if unspecified) -->
  73. <param name="tls-sip-port" value="$${external_tls_port}"/>
  74. <!-- Location of the agent.pem and cafile.pem ssl certificates (needed for TLS server) -->
  75. <!--<param name="tls-cert-dir" value=""/>-->
  76. <!-- Optionally set the passphrase password used by openSSL to encrypt/decrypt TLS private key files -->
  77. <param name="tls-passphrase" value=""/>
  78. <!-- Verify the date on TLS certificates -->
  79. <param name="tls-verify-date" value="true"/>
  80. <!-- TLS verify policy, when registering/inviting gateways with other servers (outbound) or handling inbound registration/invite requests how should we verify their certificate -->
  81. <!-- set to 'in' to only verify incoming connections, 'out' to only verify outgoing connections, 'all' to verify all connections, also 'in_subjects', 'out_subjects' and 'all_subjects' for subject validation. Multiple policies can be split with a '|' pipe -->
  82. <param name="tls-verify-policy" value="none"/>
  83. <!-- Certificate max verify depth to use for validating peer TLS certificates when the verify policy is not none -->
  84. <param name="tls-verify-depth" value="2"/>
  85. <!-- If the tls-verify-policy is set to subjects_all or subjects_in this sets which subjects are allowed, multiple subjects can be split with a '|' pipe -->
  86. <param name="tls-verify-in-subjects" value=""/>
  87. <!-- TLS version ("sslv23" (default), "tlsv1"). NOTE: Phones may not work with TLSv1 -->
  88. <param name="tls-version" value="$${sip_tls_version}"/>
  89. </settings>
  90. </profile>