2008-05-08 10:42:20 -04:00
<profile name= "external" >
2012-05-27 01:44:14 -04:00
<!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files -->
2007-12-10 12:11:31 -05:00
<!-- This profile is only for outbound registrations to providers -->
<gateways >
2008-05-08 17:32:19 -04:00
<X-PRE-PROCESS cmd= "include" data= "external/*.xml" />
2007-12-10 12:11:31 -05:00
</gateways>
2008-05-08 10:40:34 -04:00
<aliases >
2012-05-27 01:44:14 -04:00
<!--
<alias name= "outbound" />
<alias name= "nat" />
2009-06-04 17:39:49 -04:00
-->
2008-05-08 10:40:34 -04:00
</aliases>
2007-12-10 12:11:31 -05:00
<domains >
2008-09-28 20:49:34 -04:00
<domain name= "all" alias= "false" parse= "true" />
2007-12-10 12:11:31 -05:00
</domains>
<settings >
2007-12-11 15:58:39 -05:00
<param name= "debug" value= "0" />
2012-05-27 01:44:14 -04:00
<!-- If you want FreeSWITCH to shutdown if this profile fails to load, uncomment the next line. -->
<!-- <param name="shutdown - on - fail" value="true"/> -->
2007-12-12 23:37:25 -05:00
<param name= "sip-trace" value= "no" />
2012-05-27 01:44:14 -04:00
<param name= "sip-capture" value= "no" />
2007-12-10 12:11:31 -05:00
<param name= "rfc2833-pt" value= "101" />
2011-12-16 15:33:22 -05:00
<!-- RFC 5626 : Send reg - id and sip.instance -->
<!-- <param name="enable - rfc - 5626" value="true"/> -->
2008-10-09 12:19:37 -04:00
<param name= "sip-port" value= "$${external_sip_port}" />
2007-12-10 12:11:31 -05:00
<param name= "dialplan" value= "XML" />
<param name= "context" value= "public" />
2010-03-03 17:12:35 -05:00
<param name= "dtmf-duration" value= "2000" />
2009-11-24 13:52:57 -05:00
<param name= "inbound-codec-prefs" value= "$${global_codec_prefs}" />
<param name= "outbound-codec-prefs" value= "$${outbound_codec_prefs}" />
2008-04-22 10:19:47 -04:00
<param name= "hold-music" value= "$${hold_music}" />
2007-12-10 12:11:31 -05:00
<param name= "rtp-timer-name" value= "soft" />
2008-11-12 08:03:08 -05:00
<!-- <param name="enable - 100rel" value="true"/> -->
2012-05-27 01:44:14 -04:00
<!-- <param name="disable - srv503" value="true"/> -->
2008-09-17 20:11:01 -04:00
<!-- This could be set to "passive" -->
2009-06-04 17:39:49 -04:00
<param name= "local-network-acl" value= "localnet.auto" />
2007-12-30 18:18:56 -05:00
<param name= "manage-presence" value= "false" />
2008-09-17 20:11:01 -04:00
2012-05-27 01:44:14 -04:00
<!-- used to share presence info across sofia profiles
manage-presence needs to be set to passive on this profile
if you want it to behave as if it were the internal profile
for presence.
2008-09-17 20:11:01 -04:00
-->
<!-- Name of the db to use for this profile -->
<!-- <param name="dbname" value="share_presence"/> -->
<!-- <param name="presence - hosts" value="$${domain}"/> -->
<!-- <param name="force - register - domain" value="$${domain}"/> -->
2008-12-01 14:52:22 -05:00
<!-- all inbound reg will stored in the db using this domain -->
<!-- <param name="force - register - db - domain" value="$${domain}"/> -->
2008-09-17 20:11:01 -04:00
<!-- ************************************************* -->
2008-09-05 14:35:40 -04:00
<!-- <param name="aggressive - nat - detection" value="true"/> -->
2007-12-10 12:11:31 -05:00
<param name= "inbound-codec-negotiation" value= "generous" />
<param name= "nonce-ttl" value= "60" />
<param name= "auth-calls" value= "false" />
2012-05-27 01:50:47 -04:00
<param name= "inbound-late-negotiation" value= "true" />
2012-06-01 17:25:55 -04:00
<param name= "inbound-zrtp-passthru" value= "true" /> <!-- (also enables late negotiation) -->
2008-10-03 14:30:04 -04:00
<!--
2012-05-27 01:44:14 -04:00
DO NOT USE HOSTNAMES, ONLY IP ADDRESSES IN THESE SETTINGS!
2008-10-03 14:30:04 -04:00
-->
2007-12-10 12:11:31 -05:00
<param name= "rtp-ip" value= "$${local_ip_v4}" />
<param name= "sip-ip" value= "$${local_ip_v4}" />
2009-06-04 17:39:49 -04:00
<param name= "ext-rtp-ip" value= "auto-nat" />
<param name= "ext-sip-ip" value= "auto-nat" />
2008-02-02 16:43:23 -05:00
<param name= "rtp-timeout-sec" value= "300" />
<param name= "rtp-hold-timeout-sec" value= "1800" />
2008-05-29 16:02:06 -04:00
<!-- <param name="enable - 3pcc" value="true"/> -->
2008-08-30 14:25:53 -04:00
<!-- TLS: disabled by default, set to "true" to enable -->
2008-10-08 21:13:40 -04:00
<param name= "tls" value= "$${external_ssl_enable}" />
2011-12-18 11:37:04 -05:00
<!-- Set to true to not bind on the normal sip - port but only on the TLS port -->
<param name= "tls-only" value= "false" />
2008-08-30 14:25:53 -04:00
<!-- additional bind parameters for TLS -->
<param name= "tls-bind-params" value= "transport=tls" />
2008-10-09 12:19:37 -04:00
<!-- Port to listen on for TLS requests. (5081 will be used if unspecified) -->
<param name= "tls-sip-port" value= "$${external_tls_port}" />
2008-08-30 14:25:53 -04:00
<!-- Location of the agent.pem and cafile.pem ssl certificates (needed for TLS server) -->
2013-02-26 12:49:41 -05:00
<!-- <param name="tls - cert - dir" value=""/> -->
2011-12-18 11:54:38 -05:00
<!-- Optionally set the passphrase password used by openSSL to encrypt/decrypt TLS private key files -->
<param name= "tls-passphrase" value= "" />
2011-12-18 12:08:17 -05:00
<!-- Verify the date on TLS certificates -->
<param name= "tls-verify-date" value= "true" />
2011-12-18 11:37:04 -05:00
<!-- TLS verify policy, when registering/inviting gateways with other servers (outbound) or handling inbound registration/invite requests how should we verify their certificate -->
2011-12-18 11:54:38 -05:00
<!-- 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 -->
2011-12-18 11:37:04 -05:00
<param name= "tls-verify-policy" value= "none" />
<!-- Certificate max verify depth to use for validating peer TLS certificates when the verify policy is not none -->
<param name= "tls-verify-depth" value= "2" />
2011-12-18 11:54:38 -05:00
<!-- 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 -->
<param name= "tls-verify-in-subjects" value= "" />
2008-08-30 14:25:53 -04:00
<!-- TLS version ("sslv23" (default), "tlsv1"). NOTE: Phones may not work with TLSv1 -->
2008-10-08 21:13:40 -04:00
<param name= "tls-version" value= "$${sip_tls_version}" />
2007-12-10 12:11:31 -05:00
</settings>
</profile>