mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
* Add. Provision to Escene ES330/ES320 * Add. Look up Escene device by ext+domain. * Update Escene template. * Add. `provision` section in config. Found than ES330 some time hangup when it try get software/core and get error from fusion.
77 lines
3.0 KiB
XML
77 lines
3.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<all>
|
|
<hotlines>
|
|
{$is_first_line='true'}
|
|
{foreach $keys as $row}
|
|
{if $row.device_key_category=="programmable"}
|
|
{if $row.device_key_id!=""}
|
|
{if $row.device_key_line==""}
|
|
{$row.device_key_line="127"}
|
|
{/if}
|
|
<hotline {if $is_first_line=='true'}ExternID="0"{$is_first_line='false'}{/if} id="{$row.device_key_id-1}" SipAccounts="{$row.device_key_line}" ID="{$row.device_key_id-1}" Type="{$row.device_key_type}" HotlineNum="{$row.device_key_value}" Name="{$row.device_key_label}"/>
|
|
{/if}
|
|
{/if}
|
|
{/foreach}
|
|
</hotlines>
|
|
|
|
<Extensions>
|
|
{foreach $keys as $row}
|
|
{if $row.device_key_category=="expansion"}
|
|
{if $row.device_key_id le "32"}
|
|
<extension id="{$row.device_key_id-1}" HotlineNum="{$row.device_key_value}" SipAccounts="{$row.device_key_line}" ID="{$row.device_key_id-1}" Type="{$row.device_key_type}" Name="{$row.device_key_label}" />
|
|
{/if}
|
|
{/if}
|
|
{/foreach}
|
|
</Extensions>
|
|
|
|
<Extension2s>
|
|
{foreach $keys as $row}
|
|
{if $row.device_key_category=="expansion"}
|
|
{if ($row.device_key_id gt "32")&&($row.device_key_id le "64")}
|
|
<extension2 id="{$row.device_key_id-33}" HotlineNum="{$row.device_key_value}" SipAccounts="{$row.device_key_line}" ID="{$row.device_key_id-33}" Type="{$row.device_key_type}" Name="{$row.device_key_label}" />
|
|
{/if}
|
|
{/if}
|
|
{/foreach}
|
|
</Extension2s>
|
|
|
|
<Extension3s>
|
|
{foreach $keys as $row}
|
|
{if $row.device_key_category=="expansion"}
|
|
{if ($row.device_key_id gt "64")&&($row.device_key_id le "96")}
|
|
<extension3 id="{$row.device_key_id-65}" HotlineNum="{$row.device_key_value}" SipAccounts="{$row.device_key_line}" ID="{$row.device_key_id-65}" Type="{$row.device_key_type}" Name="{$row.device_key_label}" />
|
|
{/if}
|
|
{/if}
|
|
{/foreach}
|
|
</Extension3s>
|
|
|
|
<Extension4s>
|
|
{foreach $keys as $row}
|
|
{if $row.device_key_category=="expansion"}
|
|
{if ($row.device_key_id gt "96")&&($row.device_key_id le "128")}
|
|
<extension4 id="{$row.device_key_id-97}" HotlineNum="{$row.device_key_value}" SipAccounts="{$row.device_key_line}" ID="{$row.device_key_id-97}" Type="{$row.device_key_type}" Name="{$row.device_key_label}" />
|
|
{/if}
|
|
{/if}
|
|
{/foreach}
|
|
</Extension4s>
|
|
|
|
<Extension5s>
|
|
{foreach $keys as $row}
|
|
{if $row.device_key_category=="expansion"}
|
|
{if ($row.device_key_id gt "128")&&($row.device_key_id le "160")}
|
|
<extension5 id="{$row.device_key_id-129}" HotlineNum="{$row.device_key_value}" SipAccounts="{$row.device_key_line}" ID="{$row.device_key_id-129}" Type="{$row.device_key_type}" Name="{$row.device_key_label}" />
|
|
{/if}
|
|
{/if}
|
|
{/foreach}
|
|
</Extension5s>
|
|
|
|
<Extension6s>
|
|
{foreach $keys as $row}
|
|
{if $row.device_key_category=="expansion"}
|
|
{if ($row.device_key_id gt "160")&&($row.device_key_id le "192")}
|
|
<extension6 id="{$row.device_key_id-161}" HotlineNum="{$row.device_key_value}" SipAccounts="{$row.device_key_line}" ID="{$row.device_key_id-161}" Type="{$row.device_key_type}" Name="{$row.device_key_label}" />
|
|
{/if}
|
|
{/if}
|
|
{/foreach}
|
|
</Extension6s>
|
|
</all>
|