diff --git a/resources/templates/provision/fanvil/x210/{$mac}.cfg b/resources/templates/provision/fanvil/x210/{$mac}.cfg new file mode 100644 index 0000000000..09e144a75d --- /dev/null +++ b/resources/templates/provision/fanvil/x210/{$mac}.cfg @@ -0,0 +1,1890 @@ + + + 2.0000000000 + + 0 + + 255.255.255.0 + + + {if isset($dns_server_primary)}{$dns_server_primary}{else}8.8.8.8{/if} + {if isset($dns_server_secondary)}{$dns_server_secondary}{else}202.96.134.133{/if} + 1 + 1 + 1 + 1 + 0 + Fanvil X6 + 0 + user123 + password + 2 + + + + + + + 1 + 1 + 0 + 0 + Fanvil X210 + + {$fanvil_wifi_enable} + + + + 1 + 97 + 20 + 108 + 109 + 103 + 104 + 102 + 105 + 101 + 107 + 0 + 0 + 117 + 0 + 16384 + 16384 + 0 + + + {if isset($fanvil_country_toneset)}{$fanvil_country_toneset}{else}11{/if} + 1 + 350+440/0 + 440+480/2000,0/4000 + 480+620/500,0/500 + + 440/300,0/10000,440/300,0/10000,0/0 + + + + + 350+440/100,0/100,350+440/100,0/100,350+440/100,0/100,350+440/0 + + + 400/500,0/6000 + 1400/500,0/0 + 440/500,0/5000 + + + PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,opus,G722 + {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}H264{/if} + 25 + 2000000 + 4 + 2 + + + + {$sip_port} + {$fanvil_stun_server} + {$fanvil_stun_port} + 50 + 800 + + 32 + 0 + 0 + 0 + 0 + 1 + 1 + 0 + 1 + + {$account.1.user_id} + {$account.1.display_name} + + {$account.1.server_address} + {$account.1.sip_port} + {$account.1.auth_id} + {$account.1.password} + {$account.1.register_expires} + + 5060 + 0 + 3600 + {if isset($account.1.password)}1{else}0{/if} + {$account.1.outbound_proxy_primary} + {$account.1.sip_port} + {$account.1.auth_id} + {$account.1.password} + {$account.1.outbound_proxy_secondary} + {$account.1.sip_port} + {if isset($account.1.outbound_proxy_secondary)}1{else}0{/if} + 1800 + 0 + 3 + 0 + + 0 + + 0 + + 0 + 0 + 0 + + + + 5 + + 0 + 0 + + + + {if isset($fanvil_ringtone_line1)}{$fanvil_ringtone_line1}{else}default{/if} + 2 + 60 + 0 + + 0 + 0 + 0 + 0 + 0 + 3 + 0 + 0 + 1 + 0 + {$account.1.register_expires} + 0 + 0 + 1 + 0 + 0 + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 5060 + + + {if $account.1.sip_transport == 'udp'}0{/if} + {if $account.1.sip_transport == 'tcp'}1{/if} + {if $account.1.sip_transport == 'tls'}2{/if} + {if $account.1.sip_transport == 'dns srv'}1{/if} + {if $account.1.sip_transport == 'dns srv'}1{/if} + + 0 + + 0 + 1 + 1 + 0 + *97 + + + + 0 + 0 + 5 + 1 + 1 + *78 + *79 + *72 + *73 + *72 + *73 + *72 + *73 + + + *67 + *67 + + + opus,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB + + + + 0 + 0 + 4 + 0 + 1 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 35 + 0 + 0 + 1 + 0 + + 0 + + + 5060 + + 0 + + + 0 + 0 + Record:on + Record:off + + + {$account.2.user_id} + {$account.2.display_name} + + {$account.2.server_address} + {$account.2.sip_port} + {$account.2.auth_id} + {$account.2.password} + {$account.2.register_expires} + + 5060 + 0 + 3600 + {if isset($account.2.password)}1{else}0{/if} + {$account.2.outbound_proxy_primary} + {$account.2.sip_port} + {$account.2.auth_id} + {$account.2.password} + {$account.2.outbound_proxy_secondary} + {$account.1.sip_port} + {if isset($account.2.outbound_proxy_secondary)}1{else}0{/if} + 1800 + 0 + 3 + 0 + + 0 + + 0 + + 0 + 0 + 0 + + + + 5 + + 0 + 0 + + + + {if isset($fanvil_ringtone_line2)}{$fanvil_ringtone_line2}{else}default{/if} + 2 + 60 + 0 + + 0 + 0 + 0 + 0 + 0 + 3 + 0 + 0 + 1 + 0 + {$account.2.register_expires} + 0 + 0 + 1 + 0 + 0 + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 5060 + + + {if $account.2.sip_transport == 'udp'}0{/if} + {if $account.2.sip_transport == 'tcp'}1{/if} + {if $account.2.sip_transport == 'tls'}2{/if} + {if $account.2.sip_transport == 'dns srv'}1{/if} + {if $account.2.sip_transport == 'dns srv'}1{/if} + + 0 + + 0 + 1 + 1 + 0 + *97 + + + + 0 + 0 + 5 + 1 + 1 + *78 + *79 + *72 + *73 + *72 + *73 + *72 + *73 + + + *67 + *67 + + + opus,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB + {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if} + + + 0 + 0 + 4 + 0 + 1 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 35 + 0 + 0 + 1 + 0 + + 0 + + + 5060 + + 0 + + + 0 + 0 + Record:on + Record:off + + + {$account.3.user_id} + {$account.3.display_name} + + {$account.3.server_address} + {$account.3.sip_port} + {$account.3.auth_id} + {$account.3.password} + {$account.3.register_expires} + + 5060 + 0 + 3600 + {if isset($account.3.password)}1{else}0{/if} + {$account.3.outbound_proxy_primary} + {$account.3.sip_port} + {$account.3.auth_id} + {$account.3.password} + {$account.3.outbound_proxy_secondary} + {$account.3.sip_port} + {if isset($account.3.outbound_proxy_secondary)}1{else}0{/if} + 1800 + 0 + 3 + 0 + + 0 + + 0 + + 0 + 0 + 0 + + + + 5 + + 0 + 0 + + + + {if isset($fanvil_ringtone_line3)}{$fanvil_ringtone_line3}{else}default{/if} + 2 + 60 + 0 + + 0 + 0 + 0 + 0 + 0 + 3 + 0 + 0 + 1 + 0 + {$account.3.register_expires} + 0 + 0 + 1 + 0 + 0 + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 5060 + + + {if $account.3.sip_transport == 'udp'}0{/if} + {if $account.3.sip_transport == 'tcp'}1{/if} + {if $account.3.sip_transport == 'tls'}2{/if} + {if $account.1.sip_transport == 'dns srv'}1{/if} + {if $account.1.sip_transport == 'dns srv'}1{/if} + + 0 + + 0 + 1 + 1 + 0 + *97 + + + + 0 + 0 + 5 + 1 + 1 + *78 + *79 + *72 + *73 + *72 + *73 + *72 + *73 + + + *67 + *67 + + + + + opus,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB + {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if} + + + 0 + 0 + 4 + 0 + 1 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 35 + 0 + 0 + 1 + 0 + + 0 + + + 5060 + + 0 + + + 0 + 0 + Record:on + Record:off + + + {$account.4.user_id} + {$account.4.display_name} + + {$account.4.server_address} + {$account.4.sip_port} + {$account.4.auth_id} + {$account.4.password} + {$account.1.register_expires} + + 5060 + 0 + 3600 + {if isset($account.4.password)}1{else}0{/if} + {$account.4.outbound_proxy_primary} + {$account.4.sip_port} + {$account.4.auth_id} + {$account.4.password} + {$account.4.outbound_proxy_secondary} + {$account.4.sip_port} + {if isset($account.4.outbound_proxy_secondary)}1{else}0{/if} + 1800 + 0 + 3 + 0 + + 0 + + 0 + + 0 + 0 + 0 + + + + 5 + + 0 + 0 + + + + {if isset($fanvil_ringtone_line4)}{$fanvil_ringtone_line4}{else}default{/if} + 2 + 60 + 0 + + 0 + 0 + 0 + 0 + 0 + 3 + 0 + 0 + 1 + 0 + {$account.4.register_expires} + 0 + 0 + 1 + 0 + 0 + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 5060 + + {if $account.4.sip_transport == 'udp'}0{/if} + {if $account.4.sip_transport == 'tcp'}1{/if} + {if $account.4.sip_transport == 'dns srv'}1{/if} + {if $account.4.sip_transport == 'dns srv'}1{/if} + + 0 + + 0 + 1 + 1 + 0 + *97 + + + + 0 + 0 + 5 + 1 + 1 + *78 + *79 + *72 + *73 + *72 + *73 + *72 + *73 + + + *67 + *67 + + + opus,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB + {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if} + + + 0 + 0 + 4 + 0 + 1 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 35 + 0 + 0 + 1 + 0 + + 0 + + + 5060 + + 0 + + + 0 + 0 + Record:on + Record:off + + + {$account.5.user_id} + {$account.5.display_name} + + {$account.5.server_address} + {$account.5.sip_port} + {$account.5.auth_id} + {$account.5.password} + {$account.5.register_expires} + + 5060 + 0 + 3600 + {if isset($account.5.password)}1{else}0{/if} + {$account.5.outbound_proxy_primary} + {$account.5.sip_port} + {$account.5.auth_id} + {$account.5.password} + {$account.5.outbound_proxy_secondary} + {$account.5.sip_port} + {if isset($account.5.outbound_proxy_secondary)}1{else}0{/if} + 1800 + 0 + 3 + 0 + + 0 + + 0 + + 0 + 0 + 0 + + + + 5 + + 0 + 0 + + + + {if isset($fanvil_ringtone_line5)}{$fanvil_ringtone_line5}{else}default{/if} + 2 + 60 + 0 + + 0 + 0 + 0 + 0 + 0 + 3 + 0 + 0 + 1 + 0 + {$account.5.register_expires} + 0 + 0 + 1 + 0 + 0 + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 5060 + + + {if $account.5.sip_transport == 'udp'}0{/if} + {if $account.5.sip_transport == 'tcp'}1{/if} + {if $account.5.sip_transport == 'tls'}2{/if} + {if $account.5.sip_transport == 'dns srv'}1{/if} + {if $account.5.sip_transport == 'dns srv'}1{/if} + + 0 + + 0 + 1 + 1 + 0 + *97 + + + + 0 + 0 + 5 + 1 + 1 + *78 + *79 + *72 + *73 + *72 + *73 + *72 + *73 + + + *67 + *67 + + + opus,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB + {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if} + + + 0 + 0 + 4 + 0 + 1 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 35 + 0 + 0 + 1 + 0 + + 0 + + + 5060 + + 0 + + + 0 + 0 + Record:on + Record:off + + + {$account.6.user_id} + {$account.6.display_name} + + {$account.6.server_address} + {$account.6.sip_port} + {$aaccount.6.uth_id} + {$account.6.password} + {$account.6.register_expires} + + 5060 + 0 + 3600 + {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 + 0 + + 0 + + 0 + + 0 + 0 + 0 + + + + 5 + + 0 + 0 + + + + {if isset($fanvil_ringtone_line6)}{$fanvil_ringtone_line6}{else}default{/if} + 2 + 60 + 0 + + 0 + 0 + 0 + 0 + 0 + 3 + 0 + 0 + 1 + 0 + {$account.6.register_expires} + 0 + 0 + 1 + 0 + 0 + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 5060 + + + {if $account.6.sip_transport == 'udp'}0{/if} + {if $account.6.sip_transport == 'tcp'}1{/if} + {if $account.6.sip_transport == 'tls'}2{/if} + {if $account.6.sip_transport == 'dns srv'}1{/if} + {if $account.6.sip_transport == 'dns srv'}1{/if} + + 0 + + 0 + 1 + 1 + 0 + *97 + + + + 0 + 0 + 5 + 1 + 1 + *78 + *79 + *72 + *73 + *72 + *73 + *72 + *73 + + + *67 + *67 + + + opus,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB + {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if} + + + 0 + 0 + 4 + 0 + 1 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 35 + 0 + 0 + 1 + 0 + + 0 + + + 5060 + + 0 + + + 0 + 0 + Record:on + Record:off + + + + + 1 + 0 + 0 + . + 1 + 0 + 0 + 1500 + 1730 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 3 + 1 + 0 + 1 + 1 + 0 + 0 + 30 + 5 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + + 1 + 1 + 0 + 0 + 0 + {$fanvil_default_answer_mode} + {$fanvil_default_dial_mode} + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 480 + 486 + 603 + 0 + 0 + + + 0 + + + + + + + 1 + 0 + 0 + 0 + 0 + 0 + 11 + 1 + 10 + 0 + + + External + {if isset($fanvil_default_ringtone_ext)}{$fanvil_default_ringtone_ext}{else}Type 1{/if} + + + External2 + {if isset($fanvil_default_ringtone_ext2)}{$fanvil_default_ringtone_ext2}{else}Type 4{/if} + + + + Type 1 + + + + Type 1 + + + + Type 1 + + + + Type 1 + + + + Type 1 + + + + Type 1 + + + + Type 1 + + + + Type 1 + + + + {if isset($fanvil_menu_password)}{$fanvil_menu_password}{else}123{/if} + 123 + + 0 + 0 + 0 + 110 + + 0 + 0 + 0 + 0 + 0 + 1 + 1 + $name + 0 + 0 + 1 + 1 + 0 + + {$fanvil_greeting} + 5 + {if isset($fanvil_display_brightness_inactive)}{$fanvil_display_brightness_inactive}{else}4{/if} + {if isset($fanvil_display_brightness_active)}{$fanvil_display_brightness_active}{else}12{/if} + {if isset($fanvil_display_inactivity_time)}{$fanvil_display_inactivity_time}{else}45{/if} + 0 + + bcm911188sv + en + 0 + + + 0 + 3 + 0 + 2 + 0 + 0 + 3 + + + 5 + 3 + 5 + 3 + 5 + 8 + 3 + 4 + {if isset($fanvil_default_ringtone)}{$fanvil_default_ringtone}{else}Type 2{/if} + + + 1 + {$ntp_server_primary} + {$ntp_server_secondary} + {$fanvil_time_zone} + {$fanvil_time_zone_name} + 60 + {$fanvil_enable_dst} + 2 + 60 + 1 + {if isset($fanvil_location)}{$fanvil_location}{else}4{/if} + 0 + {if isset($fanvil_dst_minute_offset)}{$fanvil_dst_minute_offset}{else}60{/if} + 3 + 5 + 0 + 2 + 10 + 5 + 0 + 2 + 1 + 2 + + + 0 + {if isset($fanvil_time_display)}1{else}0{/if} + {if isset($fanvil_date_display)}{$fanvil_date_display}{else}6{/if} + {if isset($fanvil_date_separator)}{$fanvil_date_separator}{else}0{/if} + + + 0 + {if isset($fanvil_softkey_exit)}{$fanvil_softkey_exit}{else}1{/if} + {if isset($fanvil_softkey_desktopsoftkey)}{$fanvil_softkey_desktopsoftkey}{else}history;contact;dnd;menu;{/if} + {if isset($fanvil_softkey_talkingsoftkey)}{$fanvil_softkey_talkingsoftkey}{else}hold;xfer;conf;end;{/if} + {if isset($fanvil_softkey_ringingsoftkey)}{$fanvil_softkey_ringingsoftkey}{else}accept;none;forward;reject;{/if} + end;none;none;none; + end;none;none;none; + hold;none;split;end; + hold;xfer;conf;end; + repeat;none;none;end; + send;2aB;delete;exit; + repeat;2aB;delete;exit; + repeat;2aB;delete;exit; + repeat;2aB;delete;exit; + {if isset($fanvil_softkey_desktopclick)}{$fanvil_softkey_desktopclick}{else}history;status;none;none;none;{/if} + none;none;none;none;none; + none;none;voldown;volup;none; + status;none;none;none;reset; + 0 + contact;clogs;redial;video;cancel; + + + + + + 0 + 0 + + + + + + + + 0 + + + + + + + 0 + + + + + + + 0 + + + + + + + 0 + + + + + + + 0 + + + + + + + 0 + + + + + + + 0 + + + + + + + 0 + + + + + + + 0 + + + + + 389 + + 0 + 3 + 1 + 0 + 0 + 3 + + + telephoneNumber + mobile + other + cn sn ou + cn + cn + (|(telephoneNumber=%)(mobile=%)(other=%)) + (|(cn=%)(sn=%)) + 50 + + + + + 389 + + 0 + 3 + 1 + 0 + 0 + 3 + + + telephoneNumber + mobile + other + cn sn ou + cn + cn + (|(telephoneNumber=%)(mobile=%)(other=%)) + (|(cn=%)(sn=%)) + 50 + + + + + 389 + + 0 + 3 + 1 + 0 + 0 + 3 + + + telephoneNumber + mobile + other + cn sn ou + cn + cn + (|(telephoneNumber=%)(mobile=%)(other=%)) + (|(cn=%)(sn=%)) + 50 + + + + + 389 + + 0 + 3 + 1 + 0 + 0 + 3 + + + telephoneNumber + mobile + other + cn sn ou + cn + cn + (|(telephoneNumber=%)(mobile=%)(other=%)) + (|(cn=%)(sn=%)) + 50 + + + + + 389 + + 0 + 3 + 1 + 0 + 0 + 3 + + + telephoneNumber + mobile + other + cn sn ou + cn + cn + (|(telephoneNumber=%)(mobile=%)(other=%)) + (|(cn=%)(sn=%)) + 50 + + + + + + + 0 + + + + + + + 0 + + + + + + + 0 + + + + + + + 0 + + + + + + + 0 + + + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + 0 + 0 + + + + 120 + + + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + 0 + 0 + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + 0 + 80 + 443 + 1 + 0 + 0 + 0 + 23 + + 30 + + {if isset($admin_name)}{$admin_name}{else}admin{/if} + {if isset($admin_password)}{$admin_password}{else}admin{/if} + 10 + + + guest + guest + 5 + + + + 1 + + 1 + 0 + 0.0.0.0 + admin + admin + 0.0.0.0 + + + dps + dps + 3600 + 0 + 020 + 0 + {$fanvil_stun_server} + {$fanvil_stun_port} + 30000 + + + 0 + 1 + 0 + 224.0.2.0 + 16360 + SIP Hotspot + + 1 + + + 1 + + + 1 + + + 1 + + + 1 + + + 1 + + + + -1 + 0 + 0 + 0 + + + + 1 + + + + + + 0 + 0 + + + {$http_auth_username} + {$http_auth_password} + + + + 1 + 0 + 1 + https://{$domain_name}/app/provision + + 5 + 1 + 1 + 720 + 0 + + 1 + 224.0.1.75 + 5060 + 0 + 1 + + + 66 + 0 + 0 + + + + + + + + {if isset($fanvil_enable_auto_upgrade)}{$fanvil_enable_auto_upgrade}{else}0{/if} + {if isset($fanvil_firmware_upgrade_server_1)}{$fanvil_firmware_upgrade_server_1}{else}{/if} + {if isset($fanvil_firmware_upgrade_server_2)}{$fanvil_firmware_upgrade_server_2}{else}{/if} + {if isset($fanvil_firmware_upgrade_interval)}{$fanvil_firmware_upgrade_interval}{else}24{/if} + + + {if isset($fanvil_enable_vlan)}{$fanvil_enable_vlan}{else}0{/if} + {if isset($fanvil_lan_port_vlan)}{$fanvil_lan_port_vlan}{else}256{/if} + {if isset($fanvil_pc_port_vlan)}2{else}0{/if} + {if isset($fanvil_pc_port_vlan)}{$fanvil_pc_port_vlan}{else}254{/if} + {if isset($fanvil_qos_sip)}{$fanvil_qos_sip}{else}0{/if} + {if isset($fanvil_qos_rtp_voice)}{$fanvil_qos_rtp_voice}{else}0{/if} + {if isset($fanvil_qos_rtp_video)}{$fanvil_qos_rtp_video}{else}0{/if} + 0 + {if isset($fanvil_enable_diffserv)}{$fanvil_enable_diffserv}{else}0{/if} + {if isset($fanvil_dscp_sip)}{$fanvil_dscp_sip}{else}46{/if} + {if isset($fanvil_dscp_rtp_voice)}{$fanvil_dscp_rtp_voice}{else}46{/if} + {if isset($fanvil_dscp_rtp_video)}{$fanvil_dscp_rtp_video}{else}34{/if} + {if isset($fanvil_lldp_tx_enable)}{$fanvil_lldp_tx_enable}{else}0{/if} + {if isset($fanvil_lldp_refresh)}{$fanvil_lldp_refresh}{else}60{/if} + {if isset($fanvil_lldp_learn)}{$fanvil_lldp_learn}{else}0{/if} + 1 + 0 + 60 + 0 + + + INFO + + stdout{if $fanvil_syslog_enable == '1'},syslog{else}{/if} + platform.log + 512KB + platform + {if isset($fanvil_syslog_server)}{$fanvil_syslog_server}{else}0.0.0.0{/if} + {if isset($fanvil_syslog_server_port)}{$fanvil_syslog_server_port}{else}514{/if} + + + 1 + 0 + 0 + + + 1 + 1 + 60 + 40 + 25 + 150 + 200 + 1 + 1 + + + 0 + admin + admin + + 0 + 0 + 0 + 0 + + + + + 1 + G729 + 0 + 8 + 0.0.0.0 + 10000 + + + 0000000000000000 + + + + + + + + + + + + + + + + + + + + 0 + 3 + 5 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + + +{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} +{strip}{*-- Each Internal Index contains 32 keys --*}{/strip} + +{foreach $keys["memory"] as $row} +{if $row.device_key_id <= 32} + + {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} + +{/if} +{/foreach} + + +{foreach $keys["memory"] as $row} +{if $row.device_key_id > 32 && $row.device_key_id <= 64} + + {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} + +{/if} +{/foreach} + + +{foreach $keys["memory"] as $row} +{if $row.device_key_id > 64 && $row.device_key_id <= 96} + + {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} + +{/if} +{/foreach} + +{foreach $keys["programmable"] as $row} + + 1 + {$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type} + {$row.device_key_label} + +{/foreach} +{strip}{*-- Each External Index contains 20 keys --*}{/strip} + +{foreach $keys["expansion"] as $row} +{if $row.device_key_id < 20} + + 0 + {$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type} + {$row.device_key_label} + +{/if} +{/foreach} + + +{foreach $keys["expansion"] as $row} +{if $row.device_key_id > 19 && $row.device_key_id < 40} + + 0 + {$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type} + {$row.device_key_label} + +{/if} +{/foreach} + + +{foreach $keys["expansion"] as $row} +{if $row.device_key_id > 39 && $row.device_key_id < 60} + + 0 + {$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type} + {$row.device_key_label} + +{/if} +{/foreach} + + +{foreach $keys["expansion"] as $row} +{if $row.device_key_id > 59 && $row.device_key_id < 80} + + 0 + {$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type} + {$row.device_key_label} + +{/if} +{/foreach} + + +{foreach $keys["expansion"] as $row} +{if $row.device_key_id > 79 && $row.device_key_id < 100} + + 0 + {$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type} + {$row.device_key_label} + +{/if} +{/foreach} + + +