2
0

internal.xml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. <!-- Allow ZRTP clients to negotiate end-to-end security associations (also enables late negotiation) -->
  96. <param name="inbound-zrtp-passthru" value="true"/>
  97. <!-- this lets anything register -->
  98. <!-- comment the next line and uncomment one or both of the other 2 lines for call authentication -->
  99. <!-- <param name="accept-blind-reg" value="true"/> -->
  100. <!-- accept any authentication without actually checking (not a good feature for most people) -->
  101. <!-- <param name="accept-blind-auth" value="true"/> -->
  102. <!-- suppress CNG on this profile or per call with the 'suppress_cng' variable -->
  103. <!-- <param name="suppress-cng" value="true"/> -->
  104. <!--TTL for nonce in sip auth-->
  105. <param name="nonce-ttl" value="60"/>
  106. <!--Uncomment if you want to force the outbound leg of a bridge to only offer the codec
  107. that the originator is using-->
  108. <!--<param name="disable-transcoding" value="true"/>-->
  109. <!-- Used for when phones respond to a challenged ACK with method INVITE in the hash -->
  110. <!--<param name="NDLB-broken-auth-hash" value="true"/>-->
  111. <!-- add a ;received="<ip>:<port>" to the contact when replying to register for nat handling -->
  112. <!--<param name="NDLB-received-in-nat-reg-contact" value="true"/>-->
  113. <param name="auth-calls" value="$${internal_auth_calls}"/>
  114. <!-- Force subscription requests to require authentication -->
  115. <param name="auth-subscriptions" value="true"/>
  116. <!-- Force the user and auth-user to match. -->
  117. <param name="inbound-reg-force-matching-username" value="true"/>
  118. <!-- on authed calls, authenticate *all* the packets not just invite -->
  119. <param name="auth-all-packets" value="false"/>
  120. <!-- <param name="ext-rtp-ip" value="$${external_rtp_ip}"/> -->
  121. <!-- <param name="ext-sip-ip" value="$${external_sip_ip}"/> -->
  122. <!-- rtp inactivity timeout -->
  123. <param name="rtp-timeout-sec" value="300"/>
  124. <param name="rtp-hold-timeout-sec" value="1800"/>
  125. <!-- VAD choose one (out is a good choice); -->
  126. <!-- <param name="vad" value="in"/> -->
  127. <!-- <param name="vad" value="out"/> -->
  128. <!-- <param name="vad" value="both"/> -->
  129. <!--<param name="alias" value="sip:10.0.1.251:5555"/>-->
  130. <!--all inbound reg will look in this domain for the users -->
  131. <param name="force-register-domain" value="$${domain}"/>
  132. <!--all inbound reg will stored in the db using this domain -->
  133. <param name="force-register-db-domain" value="$${domain}"/>
  134. <!--enable to use presence -->
  135. <param name="manage-presence" value="true"/>
  136. <!-- used to share presence info across sofia profiles -->
  137. <!-- Name of the db to use for this profile -->
  138. <param name="dbname" value="$${domain}"/>
  139. <param name="presence-hosts" value="$${domain}"/>
  140. <!-- ************************************************* -->
  141. <!--force suscription expires to a lower value than requested-->
  142. <!--<param name="force-subscription-expires" value="60"/>-->
  143. <!-- disable register and transfer which may be undesirable in a public switch -->
  144. <!--<param name="disable-transfer" value="true"/>-->
  145. <!--<param name="disable-register" value="true"/>-->
  146. <!-- 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 -->
  147. <!--<param name="enable-3pcc" value="true"/>-->
  148. <!-- use at your own risk or if you know what this does.-->
  149. <!--<param name="NDLB-force-rport" value="true"/>-->
  150. <!--
  151. Choose the realm challenge key. Default is auto_to if not set.
  152. auto_from - uses the from field as the value for the sip realm.
  153. auto_to - uses the to field as the value for the sip realm.
  154. <anyvalue> - you can input any value to use for the sip realm.
  155. If you want URL dialing to work you'll want to set this to auto_from.
  156. If you use any other value besides auto_to or auto_from you'll loose
  157. the ability to do multiple domains.
  158. Note: comment out to restore the behavior before 2008-09-29
  159. -->
  160. <param name="challenge-realm" value="auto_from"/>
  161. <!--<param name="disable-rtp-auto-adjust" value="true"/>-->
  162. <!-- on inbound calls make the uuid of the session equal to the sip call id of that call -->
  163. <!--<param name="inbound-use-callid-as-uuid" value="true"/>-->
  164. <!-- on outbound calls set the callid to match the uuid of the session -->
  165. <!--<param name="outbound-use-uuid-as-callid" value="true"/>-->
  166. </settings>
  167. </profile>