Advertisement
Guest User

Untitled

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