external.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. <!--
  48. DO NOT USE HOSTNAMES, ONLY IP ADDRESSES IN THESE SETTINGS!
  49. -->
  50. <param name="rtp-ip" value="$${local_ip_v4}"/>
  51. <param name="sip-ip" value="$${local_ip_v4}"/>
  52. <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
  53. <param name="ext-sip-ip" value="$${external_sip_ip}"/>
  54. <param name="rtp-timeout-sec" value="300"/>
  55. <param name="rtp-hold-timeout-sec" value="1800"/>
  56. <!--<param name="enable-3pcc" value="true"/>-->
  57. <!-- TLS: disabled by default, set to "true" to enable -->
  58. <param name="tls" value="$${external_ssl_enable}"/>
  59. <!-- additional bind parameters for TLS -->
  60. <param name="tls-bind-params" value="transport=tls"/>
  61. <!-- Port to listen on for TLS requests. (5081 will be used if unspecified) -->
  62. <param name="tls-sip-port" value="$${external_tls_port}"/>
  63. <!-- Location of the agent.pem and cafile.pem ssl certificates (needed for TLS server) -->
  64. <param name="tls-cert-dir" value="$${external_ssl_dir}"/>
  65. <!-- TLS version ("sslv23" (default), "tlsv1"). NOTE: Phones may not work with TLSv1 -->
  66. <param name="tls-version" value="$${sip_tls_version}"/>
  67. </settings>
  68. </profile>