Update {$mac}.cfg

This commit is contained in:
FusionPBX 2018-09-13 01:30:34 -06:00 committed by GitHub
parent 8f815c6127
commit aaa866142c
1 changed files with 21 additions and 2 deletions

View File

@ -17,7 +17,11 @@ account.1.label = {$account.1.display_name}
account.1.display_name = {$account.1.display_name}
account.1.auth_name = {$account.1.auth_id}
account.1.password = {$account.1.password}
account.1.user_name = {$account.1.account.1.user_id}
{if isset($account.1.server.1.address)}
account.1.user_name = {$account.1.user_id}@{$account.1.server_address}
{else}
account.1.user_name = {$account.1.user_id}
{/if}
account.1.sip_server_host = {$account.1.server_address}
account.1.sip_server_port = {$account.1.sip_port}
account.1.outbound_host = {$account.1.outbound_proxy}
@ -60,14 +64,29 @@ account.1.fallback.redundancy_type = 0
account.1.fallback.timeout = {$yealink_outbound_proxy_fallback_interval}
account.1.sip_server.1.address = {$account.1.server.1.address}
account.1.sip_server.1.port = {$account.1.sip_port}
#Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS-NAPTR;
{if $account.1.sip_transport == 'udp'}account.1.sip_server.1.transport_type = 0{/if}
{if $account.1.sip_transport == 'tcp'}account.1.sip_server.1.transport_type = 1{/if}
{if $account.1.sip_transport == 'tls'}account.1.sip_server.1.transport_type = 2{/if}
{if $account.1.sip_transport == 'dns srv'}account.1.sip_server.1.transport_type = 3{/if}
account.X.sip_server.Y.transport_type
#Configure the register expiry time (in seconds), the default value is 3600.
account.1.sip_server.1.expires = {$register_expires_1}
account.1.sip_server.1.expires = {$account.1.register_expires}
account.1.sip_server.1.retry_counts = 3
account.1.sip_server.1.failback_mode = 0
account.1.sip_server.1.failback_timeout = 3600
account.1.sip_server.1.register_on_enable = 0
account.1.sip_server.2.address = {$account.1.server.2.address}
account.1.sip_server.2.port = {$account.1.sip_port}
#Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS-NAPTR;
{if $account.1.sip_transport == 'udp'}account.1.sip_server.2.transport_type = 0{/if}
{if $account.1.sip_transport == 'tcp'}account.1.sip_server.2.transport_type = 1{/if}
{if $account.1.sip_transport == 'tls'}account.1.sip_server.2.transport_type = 2{/if}
{if $account.1.sip_transport == 'dns srv'}account.1.sip_server.2.transport_type = 3{/if}
account.1.sip_server.2.expires = {$account.1.register_expires}
account.1.sip_server.2.retry_counts = 3
account.1.sip_server.2.failback_mode = 0