diff --git a/resources/templates/provision/fanvil/x3u/{$mac}.cfg b/resources/templates/provision/fanvil/x3u/{$mac}.cfg index e420591dd0..c5c50cd106 100644 --- a/resources/templates/provision/fanvil/x3u/{$mac}.cfg +++ b/resources/templates/provision/fanvil/x3u/{$mac}.cfg @@ -512,8 +512,6 @@ *67 *67 - - OPUS,PCMU,PCMA,G726-32,G729,iLBC,G722 @@ -877,26 +875,26 @@ 5000 - - + {$account.6.user_id} + {$account.6.display_name} - - 5060 - - - 3600 + {$account.6.server_address} + {$account.6.sip_port} + {$account.6.auth_id} + {$account.6.password} + {$account.6.register_expires} 5060 0 3600 - 0 - - 5060 - - - - 5060 - 1 + {if isset($account.6.password)}1{else}0{/if} + {$account.6.outbound_proxy_primary} + {$account.6.sip_port} + {$account.6.auth_id} + {$account.6.password} + {$account.6.outbound_proxy_secondary} + {$account.6.sip_port} + {if isset($account.6.outbound_proxy_secondary)}1{else}0{/if} 1800 0 3 @@ -920,7 +918,7 @@ - default + {if isset($fanvil_ringtone_line6)}{$fanvil_ringtone_line6}{else}default{/if} 2 30 0 @@ -935,7 +933,7 @@ 0 1 0 - 3600 + {$account.6.register_expires} 0 0 1 @@ -951,15 +949,17 @@ 1 0 5060 - 0 + {if $account.6.sip_transport == 'udp'}0{/if} + {if $account.6.sip_transport == 'tcp'}1{/if} + {if $account.6.sip_transport == 'tls'}2{/if} 0 0 - 0 + 1 1 0 - + *97 @@ -970,23 +970,23 @@ 5 1 - 0 - - - - - - - - + 1 + *78 + *79 + *72 + *73 + *72 + *73 + *72 + *73 - - + *67 + *67 - PCMU,PCMA,G726-32,G729,iLBC,G722 - + OPUS,PCMU,PCMA,G726-32,G729,iLBC,G722 + {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if} 0 @@ -1245,16 +1245,18 @@ - 1 - 0.pool.ntp.org - time.nist.gov - 32 - UTC+8 + {if isset($fanvil_enable_sntp)}{$fanvil_enable_sntp}{else}1{/if} + {$ntp_server_primary} + {$ntp_server_secondary} + {$fanvil_time_zone} + {$fanvil_time_zone_name} + {$fanvil_enable_dst} + {if isset($fanvil_dst_fixed_type)}{$fanvil_dst_fixed_type}{else}0{/if} 60 - 0 - 0 + 1 + {if isset($fanvil_location)}{$fanvil_location}{else}4{/if} 0 - 60 + {if isset($fanvil_dst_minute_offset)}{$fanvil_dst_minute_offset}{else}60{/if} 3 5 0 @@ -1673,84 +1675,21 @@ - - 2 - SIP1 - - Green - - - 2 - SIP2 - - Green - - - 2 - SIP3 - - Green - - - 0 - - - Green - - - 0 - - - Green - - - 0 - - - Green - - - 0 - - - Green - - - 0 - - - Green - - - 0 - - - Green - - - 0 - - - Green - - - 0 - - - Green - - - 0 - - - Green - - - 0 - - - Green - + {foreach $keys["line"] as $row} + + {if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if} + {if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if} + {$row.device_key_label} + {$row.device_key_icon} + + {/foreach} + {foreach $keys["programmable"] as $row} + + {if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if} + {if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if} + {$row.device_key_label} + + {/foreach} 0