fusionpbx/resources/templates/provision/grandstream/ht802/{mac}.xml

72 lines
3.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<gs_provision version="1">
<config version="1">
<P2>{$admin_password}</P2> <!-- Admin password for web interface -->
<P212>1</P212> <!-- Firmware and provisioning protocol 0 - TFTP, 1 - HTTP, 2 - HTTPS -->
{if isset($grandstream_firmware_path) && isset($firmware_version)} <!-- Firmware Server Path -->
<P192>{$grandstream_firmware_path}/ht802/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/ht802</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<P237>{$domain_name}{$project_path}/app/provision</P237> <!-- Config Server Path -->
<P234></P234> <!-- config file prefix -->
{if isset($grandstream_qos_sip)} <!-- Layer 2 QoS 802.1p Priority Value for SIP signaling, Number: 0 to 7 -->
<P5038>{$grandstream_qos_sip}</P5038>
{else}
<P5038>0</P5038>
{/if}
{if isset($grandstream_qos_rtp)} <!-- Layer 2 QoS 802.1p Priority Value for RTP media, Number: 0 to 7 -->
<P5042>{$grandstream_qos_rtp}</P5042>
{else}
<P5042>0</P5042>
{/if}
<!-- Account 1 -->
<P47>{$account.1.server_address}</P47> <!-- SIP Server -->
<P48>{$account.1.outbound_proxy}</P48> <!-- Outbound Proxy -->
<P35>{$account.1.user_id}</P35> <!-- SIP User ID -->
<P36>{$account.1.user_id}</P36> <!-- Authenticate ID -->
<P34>{$account.1.password}</P34> <!-- Authenticate Password -->
<P3>{$account.1.display_name}</P3> <!-- Display Name -->
<P52>2</P52> <!-- NAT Traversal (STUN) 0 - No, 2 - No but send keep-alive, 1 - Yes, 3 - UPnP -->
<P84>20</P84> <!-- Keep-alive interval (in seconds. default 20 seconds, number: 10 to 160) -->
<P81>1</P81> <!-- Unregister On Reboot. 0 - No, 1 - Yes -->
<P32>{$account.1.register_expires}</P32> <!-- Register Expiration (in minutes. default 1 hour, max 45 days) -->
<P2330>90</P2330> <!-- Reregister before Expiration (in seconds. Default 0 second, number: 1 to 64800) -->
<P228>1</P228> <!-- FAX Mode. 0 - T.38 (Auto Detect), 1 - Pass Through -->
<P4367>0</P4367> <!-- Send Re-INVITE After Fax. 0 - No, 1 - Yes -->
<P4416>0</P4416> <!-- Re-INVITE After Fax Tone Detected. 0 - Disabled, 1 - Enabled. -->
<P133>1</P133> <!-- Jitter buffer type. 0 - Fixed, 1 - Adaptive -->
<P132>0</P132> <!-- Jitter buffer length. 0 - Low, 1 - Medium, 2 - High -->
<!-- SIP transport -->
{if $account.1.sip_transport == 'udp'}<P130>0</P130>{/if}
{if $account.1.sip_transport == 'tcp'}<P130>1</P130>{/if}
{if $account.1.sip_transport == 'tls'}<P130>2</P130>{/if}
{if $account.1.sip_transport == 'dns srv'}<P130>1</P130>{/if}
<!-- Account 2 -->
<!-- {if isset($user_id_2)} -->
<P747>{$account.2.server_address}</P747>
<P748>{$account.2.outbound_proxy}</P748> <!-- Outbound Proxy -->
<P735>{$account.2.user_id}</P735> <!-- SIP User ID -->
<P736>{$account.2.user_id}</P736> <!-- Authenticate ID -->
<P734>{$account.2.password}</P734> <!-- Authenticate Password -->
<P703>{$account.2.display_name}</P703> <!-- Display Name -->
<P710>1</P710> <!-- FAX Mode. 0 - T.38 (Auto Detect), 1 - Pass Through -->
<P4417>0</P4417> <!-- Re-INVITE After Fax Tone Detected. 0 - Disabled, 1 - Enabled. -->
<P832>0</P832> <!-- Jitter buffer length. 0 - Low, 1 - Medium, 2 - High -->
<P732>{$account.2.register_expires}</P732> <!-- Register Expiration (in minutes. default 1 hour, max 45 days, number: 1 to 64800) -->
<P752>1</P752> <!-- Unregister On Reboot. 0 - No, 1 - Yes -->
<P2430>0</P2430> <!-- Reregister before Expiration (in seconds. Default 0 second) -->
<!-- SIP transport -->
{if $account.2.sip_transport == 'udp'}<P830>0</P830>{/if}
{if $account.2.sip_transport == 'tcp'}<P830>1</P830>{/if}
{if $account.2.sip_transport == 'tls'}<P830>2</P830>{/if}
{if $account.2.sip_transport == 'dns srv'}<P830>1</P830>{/if}
<!-- {/if} -->
</config>
</gs_provision>