internal.xml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <!--
  2. This is a sofia sip profile/user agent. This will service exactly one ip and port.
  3. In FreeSWITCH you can run multiple sip user agents on their own ip and port.
  4. When you hear someone say "sofia profile" this is what they are talking about.
  5. -->
  6. <!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files -->
  7. <profile name="internal">
  8. <!--aliases are other names that will work as a valid profile name for this profile-->
  9. <aliases>
  10. <alias name="local"/>
  11. </aliases>
  12. <!-- Outbound Registrations -->
  13. <gateways>
  14. <X-PRE-PROCESS cmd="include" data="internal/*.xml"/>
  15. </gateways>
  16. <domains>
  17. <!-- indicator to parse the directory for domains with parse="true" to get gateways-->
  18. <!--<domain name="$${domain}" parse="true"/>-->
  19. <!-- indicator to parse the directory for domains with parse="true" to get gateways and alias every domain to this profile -->
  20. <!--<domain name="all" alias="true" parse="true"/>-->
  21. <domain name="all" alias="true" parse="false"/>
  22. </domains>
  23. <settings>
  24. <!--
  25. When calls are in no media this will bring them back to media
  26. when you press the hold button.
  27. -->
  28. <!--<param name="media-option" value="resume-media-on-hold"/> -->
  29. <!--
  30. This will allow a call after an attended transfer go back to
  31. bypass media after an attended transfer.
  32. -->
  33. <!--<param name="media-option" value="bypass-media-after-att-xfer"/>-->
  34. <!-- Can be set to "_undef_" to remove the User-Agent header -->
  35. <!-- <param name="user-agent-string" value="FreeSWITCH Rocks!"/> -->
  36. <param name="debug" value="0"/>
  37. <param name="sip-trace" value="no"/>
  38. <param name="context" value="public"/>
  39. <param name="rfc2833-pt" value="101"/>
  40. <!-- port to bind to for sip traffic -->
  41. <param name="sip-port" value="$${internal_sip_port}"/>
  42. <param name="dialplan" value="enum,XML,lcr"/>
  43. <param name="dtmf-duration" value="100"/>
  44. <param name="codec-prefs" value="$${global_codec_prefs}"/>
  45. <param name="use-rtp-timer" value="true"/>
  46. <param name="rtp-timer-name" value="soft"/>
  47. <!-- ip address to use for rtp, DO NOT USE HOSTNAMES ONLY IP ADDRESSES -->
  48. <param name="rtp-ip" value="$${internal_ip_v4}"/>
  49. <!-- ip address to bind to, DO NOT USE HOSTNAMES ONLY IP ADDRESSES -->
  50. <param name="sip-ip" value="$${internal_ip_v4}"/>
  51. <param name="hold-music" value="$${hold_music}"/>
  52. <!--<param name="apply-nat-acl" value="rfc1918"/>-->
  53. <!--<param name="aggressive-nat-detection" value="true"/>-->
  54. <!--<param name="enable-timer" value="false"/>-->
  55. <!--<param name="enable-100rel" value="true"/>-->
  56. <!--<param name="minimum-session-expires" value="120"/>-->
  57. <param name="apply-inbound-acl" value="domains"/>
  58. <!--<param name="apply-register-acl" value="domains"/>-->
  59. <!--<param name="dtmf-type" value="info"/>-->
  60. <param name="record-template" value="$${base_dir}/recordings/${caller_id_number}.${target_domain}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
  61. <!-- This setting is for AAL2 bitpacking on G726 -->
  62. <!-- <param name="bitpacking" value="aal2"/> -->
  63. <!--max number of open dialogs in proceeding -->
  64. <!--<param name="max-proceeding" value="1000"/>-->
  65. <!--session timers for all call to expire after the specified seconds -->
  66. <!--<param name="session-timeout" value="120"/>-->
  67. <!-- Can be 'true' or 'contact' -->
  68. <!--<param name="multiple-registrations" value="contact"/>-->
  69. <!--set to 'greedy' if you want your codec list to take precedence -->
  70. <param name="inbound-codec-negotiation" value="generous"/>
  71. <!-- if you want to send any special bind params of your own -->
  72. <!--<param name="bind-params" value="transport=udp"/>-->
  73. <!--<param name="unregister-on-options-fail" value="true"/>-->
  74. <!-- TLS: disabled by default, set to "true" to enable -->
  75. <param name="tls" value="$${internal_ssl_enable}"/>
  76. <!-- additional bind parameters for TLS -->
  77. <param name="tls-bind-params" value="transport=tls"/>
  78. <!-- Port to listen on for TLS requests. (5061 will be used if unspecified) -->
  79. <param name="tls-sip-port" value="$${internal_tls_port}"/>
  80. <!-- Location of the agent.pem and cafile.pem ssl certificates (needed for TLS server) -->
  81. <param name="tls-cert-dir" value="$${internal_ssl_dir}"/>
  82. <!-- TLS version ("sslv23" (default), "tlsv1"). NOTE: Phones may not work with TLSv1 -->
  83. <param name="tls-version" value="$${sip_tls_version}"/>
  84. <!--If you don't want to pass through timestamps from 1 RTP call to another (on a per call basis with rtp_rewrite_timestamps chanvar)-->
  85. <!--<param name="rtp-rewrite-timestamps" value="true"/>-->
  86. <!--<param name="pass-rfc2833" value="true"/>-->
  87. <!--If you have ODBC support and a working dsn you can use it instead of SQLite-->
  88. <!--<param name="odbc-dsn" value="dsn:user:pass"/>-->
  89. <!--Uncomment to set all inbound calls to no media mode-->
  90. <!--<param name="inbound-bypass-media" value="true"/>-->
  91. <!--Uncomment to set all inbound calls to proxy media mode-->
  92. <!--<param name="inbound-proxy-media" value="true"/>-->
  93. <!-- Let calls hit the dialplan before selecting codec for the a-leg -->
  94. <param name="inbound-late-negotiation" value="true"/>
  95. <!-- this lets anything register -->
  96. <!-- comment the next line and uncomment one or both of the other 2 lines for call authentication -->
  97. <!-- <param name="accept-blind-reg" value="true"/> -->
  98. <!-- accept any authentication without actually checking (not a good feature for most people) -->
  99. <!-- <param name="accept-blind-auth" value="true"/> -->
  100. <!-- suppress CNG on this profile or per call with the 'suppress_cng' variable -->
  101. <!-- <param name="suppress-cng" value="true"/> -->
  102. <!--TTL for nonce in sip auth-->
  103. <param name="nonce-ttl" value="60"/>
  104. <!--Uncomment if you want to force the outbound leg of a bridge to only offer the codec
  105. that the originator is using-->
  106. <!--<param name="disable-transcoding" value="true"/>-->
  107. <!-- Used for when phones respond to a challenged ACK with method INVITE in the hash -->
  108. <!--<param name="NDLB-broken-auth-hash" value="true"/>-->
  109. <!-- add a ;received="<ip>:<port>" to the contact when replying to register for nat handling -->
  110. <!--<param name="NDLB-received-in-nat-reg-contact" value="true"/>-->
  111. <param name="auth-calls" value="$${internal_auth_calls}"/>
  112. <!-- Force subscription requests to require authentication -->
  113. <param name="auth-subscriptions" value="true"/>
  114. <!-- Force the user and auth-user to match. -->
  115. <param name="inbound-reg-force-matching-username" value="true"/>
  116. <!-- on authed calls, authenticate *all* the packets not just invite -->
  117. <param name="auth-all-packets" value="false"/>
  118. <!-- <param name="ext-rtp-ip" value="$${external_rtp_ip}"/> -->
  119. <!-- <param name="ext-sip-ip" value="$${external_sip_ip}"/> -->
  120. <!-- rtp inactivity timeout -->
  121. <param name="rtp-timeout-sec" value="300"/>
  122. <param name="rtp-hold-timeout-sec" value="1800"/>
  123. <!-- VAD choose one (out is a good choice); -->
  124. <!-- <param name="vad" value="in"/> -->
  125. <!-- <param name="vad" value="out"/> -->
  126. <!-- <param name="vad" value="both"/> -->
  127. <!--<param name="alias" value="sip:10.0.1.251:5555"/>-->
  128. <!--all inbound reg will look in this domain for the users -->
  129. <param name="force-register-domain" value="$${domain}"/>
  130. <!--all inbound reg will stored in the db using this domain -->
  131. <param name="force-register-db-domain" value="$${domain}"/>
  132. <!--enable to use presence -->
  133. <param name="manage-presence" value="true"/>
  134. <!-- used to share presence info across sofia profiles -->
  135. <!-- Name of the db to use for this profile -->
  136. <param name="dbname" value="$${domain}"/>
  137. <param name="presence-hosts" value="$${domain}"/>
  138. <!-- ************************************************* -->
  139. <!--force suscription expires to a lower value than requested-->
  140. <!--<param name="force-subscription-expires" value="60"/>-->
  141. <!-- disable register and transfer which may be undesirable in a public switch -->
  142. <!--<param name="disable-transfer" value="true"/>-->
  143. <!--<param name="disable-register" value="true"/>-->
  144. <!-- enable-3pcc can be set to either 'true' or 'proxy', true accepts the call right away, proxy waits until the call has been answered then sends accepts -->
  145. <!--<param name="enable-3pcc" value="true"/>-->
  146. <!-- use at your own risk or if you know what this does.-->
  147. <!--<param name="NDLB-force-rport" value="true"/>-->
  148. <!--
  149. Choose the realm challenge key. Default is auto_to if not set.
  150. auto_from - uses the from field as the value for the sip realm.
  151. auto_to - uses the to field as the value for the sip realm.
  152. <anyvalue> - you can input any value to use for the sip realm.
  153. If you want URL dialing to work you'll want to set this to auto_from.
  154. If you use any other value besides auto_to or auto_from you'll loose
  155. the ability to do multiple domains.
  156. Note: comment out to restore the behavior before 2008-09-29
  157. -->
  158. <param name="challenge-realm" value="auto_from"/>
  159. <!--<param name="disable-rtp-auto-adjust" value="true"/>-->
  160. <!-- on inbound calls make the uuid of the session equal to the sip call id of that call -->
  161. <!--<param name="inbound-use-callid-as-uuid" value="true"/>-->
  162. <!-- on outbound calls set the callid to match the uuid of the session -->
  163. <!--<param name="outbound-use-uuid-as-callid" value="true"/>-->
  164. </settings>
  165. </profile>