2
0

external.xml 3.1 KB

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