2
0

internal.xml 9.3 KB

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