1 {$display_name_1} {$server_address_1} {$user_id_1} {$auth_id_1} {$user_password_1} {$display_name_1} *97 0 0 {if $sip_transport_1 == 'udp'}0 {elseif $sip_transport_1 == 'tcp'}1 {elseif $sip_transport_1 == 'tls'}2 {elseif $sip_transport_1 == 'dns srv'}1 {/if} ** { x+ | \+x+ | *x+ | *xx*x+ | \p\a\r\k\+*x+ } 0 0 0 0 0 1 1 {$display_name_2} {$server_address_2} {$user_id_2} {$user_id_2} {$user_password_2} {$display_name_2} *97 0 4 {if $sip_transport_2 == 'udp'}0{/if} {if $sip_transport_2 == 'tcp'}1{/if} {if $sip_transport_2 == 'tls'}2{/if} {if $sip_transport_2 == 'dns srv'}1{/if} ** { x+ | \+x+ | *x+ | *xx*x+ | \p\a\r\k\+*x+ } 0 0 0 0 0 1 1 {$display_name_3} {$server_address_3} {$user_id_3} {$user_id_3} {$user_password_3} {$display_name_3} *97 0 4 {if $sip_transport_3 == 'udp'}0{/if} {if $sip_transport_3 == 'tcp'}1{/if} {if $sip_transport_3 == 'tls'}2{/if} {if $sip_transport_3 == 'dns srv'}1{/if} ** { x+ | \+x+ | *x+ | *xx*x+ | \p\a\r\k\+*x+ } 0 0 0 0 0 1 1 {$display_name_4} {$server_address_4} {$user_id_4} {$user_id_4} {$user_password_4} {$display_name_4} *97 0 4 {if $sip_transport_4 == 'udp'}0{/if} {if $sip_transport_4 == 'tcp'}1{/if} {if $sip_transport_4 == 'tls'}2{/if} {if $sip_transport_4 == 'dns srv'}1{/if} ** { x+ | \+x+ | *x+ | *xx*x+ | \p\a\r\k\+*x+ } 0 0 0 0 0 1 1 {$display_name_5} {$server_address_5} {$user_id_5} {$user_id_5} {$user_password_5} {$display_name_5} *97 4 {if $sip_transport_5 == 'udp'}0{/if} {if $sip_transport_5 == 'tcp'}1{/if} {if $sip_transport_5 == 'tls'}2{/if} {if $sip_transport_5 == 'dns srv'}1{/if} ** { x+ | \+x+ | *x+ | *xx*x+ | \p\a\r\k\+*x+ } 0 0 0 0 0 60 1 {$display_name_6} {$server_address_6} {$user_id_6} {$user_id_6} {$user_password_6} {$display_name_6} *97 4 {if $sip_transport_6 == 'udp'}0{/if} {if $sip_transport_6 == 'tcp'}1{/if} {if $sip_transport_6 == 'tls'}2{/if} {if $sip_transport_6 == 'dns srv'}1{/if} ** { x+ | \+x+ | *x+ | *xx*x+ | \p\a\r\k\+*x+ } 0 0 0 0 0 60 0 0 phone-{$display_name_1} 0 {$user_password} {$admin_password} 0 {$http_auth_username} {$http_auth_password} 2 {$domain_name}{$project_path}/app/provision {$domain_name}{$project_path}/app/provision 0 0 0 10080 1 1 0 0 0 0 1 0 {if isset($public_mode) } {if $public_mode|strtolower == 'true'} 1 {elseif $public_mode|strtolower == 'yes'} 1 {elseif $public_mode == '1'} 1 {else} 0 {/if} {else} 0 {/if} 0 0 0 1 0 100 40 7 0 0 1 us.pool.ntp.org 1 {if isset($grandstream_timezone) } {$grandstream_timezone} {else} auto {/if} 1 a 1 15 auto 0 0 {foreach $keys["line"] as $row} {$key_id = $row.device_key_id - 1} {if $key_id < 4} {$start_id = 1363} {$type_id = $start_id + ($key_id * 2)} {$line_id = ($start_id + 1) + ($key_id * 2)} {$label_id = ($start_id + 102) + ($key_id * 2)} {$value_id = ($start_id + 103) + ($key_id * 2)} {if $row.device_key_type == "speed dial"} 10{/if} {if $row.device_key_type == "blf"} 11{/if} {if $row.device_key_type == "presence watcher"} 12{/if} {if $row.device_key_type == "eventlist blf"} 13{/if} {if $row.device_key_type == "speed dial active"} 14{/if} {if $row.device_key_type == "dial dtmf"} 15{/if} {if $row.device_key_type == "voicemail"} 16{/if} {if $row.device_key_type == "call return"} 17{/if} {if $row.device_key_type == "transfer"} 18{/if} {if $row.device_key_type == "call park"} 26{/if} {if $row.device_key_type == "intercom"} 20{/if} {if $row.device_key_type == "ldap search"} 21{/if} {$row.device_key_line} {$row.device_key_label} {$row.device_key_value} {elseif $key_id < 7} {$start_id = 1363} {$type_id = $start_id + ($key_id * 2)} {$line_id = ($start_id + 1) + ($key_id * 2)} {$label_id = ($start_id + 102) + ($key_id * 2)} {$value_id = ($start_id + 103) + ($key_id * 2)} {if $row.device_key_type == "speed dial"} 0{/if} {if $row.device_key_type == "blf"} 1{/if} {if $row.device_key_type == "presence watcher"} 2{/if} {if $row.device_key_type == "eventlist blf"} 3{/if} {if $row.device_key_type == "speed dial active"} 4{/if} {if $row.device_key_type == "dial dtmf"} 5{/if} {if $row.device_key_type == "voicemail"} 6{/if} {if $row.device_key_type == "call return"} 7{/if} {if $row.device_key_type == "transfer"} 8{/if} {if $row.device_key_type == "call park"} 16{/if} {if $row.device_key_type == "intercom"} 10{/if} {if $row.device_key_type == "ldap search"} 11{/if} {$row.device_key_line} {$row.device_key_label} {$row.device_key_value} {elseif $key_id < 24} {$start_id = 23824} {$type_id = $start_id + (($key_id - 12) * 4)} {$line_id = ($start_id + 1) + (($key_id - 12) * 4)} {$label_id = ($start_id + 2) + (($key_id - 12) * 4)} {$value_id = ($start_id + 3) + (($key_id - 12) * 4)} {if $row.device_key_type == "speed dial"} 0{/if} {if $row.device_key_type == "blf"} 1{/if} {if $row.device_key_type == "presence watcher"} 2{/if} {if $row.device_key_type == "eventlist blf"} 3{/if} {if $row.device_key_type == "speed dial active"} 4{/if} {if $row.device_key_type == "dial dtmf"} 5{/if} {if $row.device_key_type == "voicemail"} 6{/if} {if $row.device_key_type == "call return"} 7{/if} {if $row.device_key_type == "transfer"} 8{/if} {if $row.device_key_type == "call park"} 16{/if} {if $row.device_key_type == "intercom"} 10{/if} {if $row.device_key_type == "ldap search"} 11{/if} {$row.device_key_line} {$row.device_key_label} {$row.device_key_value} {/if} {/foreach} {$start_id = 23000} {foreach $keys["expansion"] as $row} {$key_id = $row.device_key_id - 1} {$type_id = $start_id + ($key_id * 5)} {$line_id = ($start_id + 1) + ($key_id * 5)} {$label_id = ($start_id + 2) + ($key_id * 5)} {$value_id = ($start_id + 3) + ($key_id * 5)} {if $row.device_key_type == "speed dial"} 0{/if} {if $row.device_key_type == "blf"} 1{/if} {if $row.device_key_type == "presence watcher"} 2{/if} {if $row.device_key_type == "eventlist blf"} 3{/if} {if $row.device_key_type == "speed dial active"} 4{/if} {if $row.device_key_type == "dial dtmf"} 5{/if} {if $row.device_key_type == "voicemail"} 6{/if} {if $row.device_key_type == "call return"} 7{/if} {if $row.device_key_type == "transfer"} 8{/if} {if $row.device_key_type == "call park"} 16{/if} {if $row.device_key_type == "intercom"} 10{/if} {if $row.device_key_type == "ldap search"} 11{/if} {$row.device_key_line} {$row.device_key_label} {$row.device_key_value} {/foreach}