Advertisement
nikoladsp

external.xml

Mar 31st, 2020
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.98 KB | None | 0 0
  1. <profile name="external">
  2.   <!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files -->
  3.   <!-- This profile is only for outbound registrations to providers -->
  4.   <gateways>
  5.     <X-PRE-PROCESS cmd="include" data="external/*.xml"/>
  6.   </gateways>
  7.  
  8.   <aliases>
  9.     <!--
  10.        <alias name="outbound"/>
  11.        <alias name="nat"/>
  12.    -->
  13.   </aliases>
  14.  
  15.   <domains>
  16.     <domain name="all" alias="false" parse="true"/>
  17.   </domains>
  18.  
  19.   <settings>
  20.     <param name="debug" value="0"/>
  21.     <!-- If you want FreeSWITCH to shutdown if this profile fails to load, uncomment the next line. -->
  22.     <!-- <param name="shutdown-on-fail" value="true"/> -->
  23.     <param name="sip-trace" value="no"/>
  24.     <param name="sip-capture" value="no"/>
  25.     <param name="rfc2833-pt" value="101"/>
  26.     <!-- RFC 5626 : Send reg-id and sip.instance -->
  27.     <!--<param name="enable-rfc-5626" value="true"/> -->
  28.     <param name="sip-port" value="$${external_sip_port}"/>
  29.     <param name="dialplan" value="XML"/>
  30.     <param name="context" value="public"/>
  31.     <param name="dtmf-duration" value="2000"/>
  32.     <param name="inbound-codec-prefs" value="$${global_codec_prefs}"/>
  33.     <param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/>
  34.     <param name="hold-music" value="$${hold_music}"/>
  35.     <param name="rtp-timer-name" value="soft"/>
  36.     <!--<param name="enable-100rel" value="true"/>-->
  37.     <!--<param name="disable-srv503" value="true"/>-->
  38.     <!-- This could be set to "passive" -->
  39.     <param name="local-network-acl" value="localnet.auto"/>
  40.     <param name="manage-presence" value="false"/>
  41.  
  42.  
  43.     <!-- Added for Microsoft Edge browser -->
  44.     <param name="apply-candidate-acl" value="localnet.auto"/>
  45.     <param name="apply-candidate-acl" value="wan_v4.auto"/>
  46.     <param name="apply-candidate-acl" value="rfc1918.auto"/>
  47.     <param name="apply-candidate-acl" value="any_v4.auto"/>
  48.  
  49.     <!-- used to share presence info across sofia profiles
  50.         manage-presence needs to be set to passive on this profile
  51.         if you want it to behave as if it were the internal profile
  52.         for presence.
  53.    -->
  54.     <!-- Name of the db to use for this profile -->
  55.     <!--<param name="dbname" value="share_presence"/>-->
  56.     <!--<param name="presence-hosts" value="$${domain}"/>-->
  57.     <!--<param name="force-register-domain" value="$${domain}"/>-->
  58.     <!--all inbound reg will stored in the db using this domain -->
  59.     <!--<param name="force-register-db-domain" value="$${domain}"/>-->
  60.     <!-- ************************************************* -->
  61.  
  62.     <!--<param name="aggressive-nat-detection" value="true"/>-->
  63.     <param name="inbound-codec-negotiation" value="generous"/>
  64.     <param name="nonce-ttl" value="60"/>
  65.     <param name="auth-calls" value="false"/>
  66.     <param name="inbound-late-negotiation" value="true"/>
  67.     <param name="inbound-zrtp-passthru" value="true"/> <!-- (also enables late negotiation) -->
  68.     <!--
  69.        DO NOT USE HOSTNAMES, ONLY IP ADDRESSES IN THESE SETTINGS!
  70.    <param name="rtp-ip" value="$${local_ip_v4}"/>
  71.    <param name="sip-ip" value="$${local_ip_v4}"/>
  72.    <param name="ext-rtp-ip" value="auto-nat"/>
  73.    <param name="ext-sip-ip" value="auto-nat"/>
  74.    -->
  75.  
  76.     <param name="rtp-ip" value="$${local_ip_v4}"/>
  77.     <param name="sip-ip" value="$${local_ip_v4}"/>
  78.     <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
  79.     <param name="ext-sip-ip" value="$${external_sip_ip}"/>
  80.  
  81.     <param name="rtp-timeout-sec" value="300"/>
  82.     <param name="rtp-hold-timeout-sec" value="1800"/>
  83.     <param name="enable-3pcc" value="proxy"/>
  84.  
  85.     <!-- TLS: disabled by default, set to "true" to enable -->
  86.     <param name="tls" value="$${external_ssl_enable}"/>
  87.     <!-- Set to true to not bind on the normal sip-port but only on the TLS port -->
  88.     <param name="tls-only" value="false"/>
  89.     <!-- additional bind parameters for TLS -->
  90.     <param name="tls-bind-params" value="transport=tls"/>
  91.     <!-- Port to listen on for TLS requests. (5081 will be used if unspecified) -->
  92.     <param name="tls-sip-port" value="$${external_tls_port}"/>
  93.     <!-- Location of the agent.pem and cafile.pem ssl certificates (needed for TLS server) -->
  94.     <!--<param name="tls-cert-dir" value=""/>-->
  95.     <!-- Optionally set the passphrase password used by openSSL to encrypt/decrypt TLS private key files -->
  96.     <param name="tls-passphrase" value=""/>
  97.     <!-- Verify the date on TLS certificates -->
  98.     <param name="tls-verify-date" value="true"/>
  99.     <!-- TLS verify policy, when registering/inviting gateways with other servers (outbound) or handling inbound registration/invite requests how should we verify their certificate -->
  100.     <!-- set to 'in' to only verify incoming connections, 'out' to only verify outgoing connections, 'all' to verify all connections, also 'in_subjects', 'out_subjects' and 'all_subjects' for subject validation. Multiple policies can be split with a '|' pipe -->
  101.     <param name="tls-verify-policy" value="none"/>
  102.     <!-- Certificate max verify depth to use for validating peer TLS certificates when the verify policy is not none -->
  103.     <param name="tls-verify-depth" value="2"/>
  104.     <!-- If the tls-verify-policy is set to subjects_all or subjects_in this sets which subjects are allowed, multiple subjects can be split with a '|' pipe -->
  105.     <param name="tls-verify-in-subjects" value=""/>
  106.     <!-- TLS version ("sslv23" (default), "tlsv1"). NOTE: Phones may not work with TLSv1 -->
  107.     <param name="tls-version" value="$${sip_tls_version}"/>
  108.     <param name="ws-binding"  value=":5066"/>
  109.     <param name="wss-binding"  value=":7443"/>
  110.  
  111.     <!-- enable rtcp on every channel also can be done per leg basis with rtcp_audio_interval_msec variable set to passthru to pass it across a call-->
  112.     <param name="rtcp-audio-interval-msec" value="5000"/>
  113.     <param name="rtcp-video-interval-msec" value="5000"/>
  114.  
  115.     <!-- Cut down in the join time -->
  116.     <param name="dtmf-type" value="info"/>
  117.     <param name="liberal-dtmf" value="true"/>
  118.   </settings>
  119. </profile>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement