2
0

external.xml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files -->
  2. <profile name="external">
  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. <alias name="outbound"/>
  9. <alias name="nat"/> <!-- for backwards compatibility -->
  10. </aliases>
  11. <domains>
  12. <domain name="all" alias="false" parse="true"/>
  13. </domains>
  14. <settings>
  15. <param name="debug" value="0"/>
  16. <param name="sip-trace" value="no"/>
  17. <param name="rfc2833-pt" value="101"/>
  18. <param name="sip-port" value="$${external_sip_port}"/>
  19. <param name="dialplan" value="XML"/>
  20. <param name="context" value="public"/>
  21. <param name="dtmf-duration" value="100"/>
  22. <param name="codec-prefs" value="$${outbound_codec_prefs}"/>
  23. <param name="hold-music" value="$${hold_music}"/>
  24. <param name="use-rtp-timer" value="true"/>
  25. <param name="rtp-timer-name" value="soft"/>
  26. <!--<param name="enable-100rel" value="true"/>-->
  27. <!-- This could be set to "passive" -->
  28. <param name="manage-presence" value="false"/>
  29. <!-- used to share presence info across sofia profiles
  30. manage-presence needs to be set to passive on this profile
  31. if you want it to behave as if it were the internal profile
  32. for presence.
  33. -->
  34. <!-- Name of the db to use for this profile -->
  35. <!--<param name="dbname" value="share_presence"/>-->
  36. <!--<param name="presence-hosts" value="$${domain}"/>-->
  37. <!--<param name="force-register-domain" value="$${domain}"/>-->
  38. <!--all inbound reg will stored in the db using this domain -->
  39. <!--<param name="force-register-db-domain" value="$${domain}"/>-->
  40. <!-- ************************************************* -->
  41. <!--<param name="aggressive-nat-detection" value="true"/>-->
  42. <param name="inbound-codec-negotiation" value="generous"/>
  43. <param name="nonce-ttl" value="60"/>
  44. <param name="auth-calls" value="false"/>
  45. <param name="rtp-timeout-sec" value="1800"/>
  46. <param name="inbound-late-negotiation" value="true"/>
  47. <param name="inbound-zrtp-passthru" value="true"/> <!-- (also enables late negotiation) -->
  48. <!--
  49. DO NOT USE HOSTNAMES, ONLY IP ADDRESSES IN THESE SETTINGS!
  50. -->
  51. <param name="rtp-ip" value="$${local_ip_v4}"/>
  52. <param name="sip-ip" value="$${local_ip_v4}"/>
  53. <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
  54. <param name="ext-sip-ip" value="$${external_sip_ip}"/>
  55. <param name="rtp-timeout-sec" value="300"/>
  56. <param name="rtp-hold-timeout-sec" value="1800"/>
  57. <!--<param name="enable-3pcc" value="true"/>-->
  58. <!-- TLS: disabled by default, set to "true" to enable -->
  59. <param name="tls" value="$${external_ssl_enable}"/>
  60. <!-- additional bind parameters for TLS -->
  61. <param name="tls-bind-params" value="transport=tls"/>
  62. <!-- Port to listen on for TLS requests. (5081 will be used if unspecified) -->
  63. <param name="tls-sip-port" value="$${external_tls_port}"/>
  64. <!-- Location of the agent.pem and cafile.pem ssl certificates (needed for TLS server) -->
  65. <param name="tls-cert-dir" value="$${external_ssl_dir}"/>
  66. <!-- TLS version ("sslv23" (default), "tlsv1"). NOTE: Phones may not work with TLSv1 -->
  67. <param name="tls-version" value="$${sip_tls_version}"/>
  68. </settings>
  69. </profile>