diff --git a/app/devices/app_config.php b/app/devices/app_config.php index 445240eaef..6da12c9e36 100644 --- a/app/devices/app_config.php +++ b/app/devices/app_config.php @@ -6,7 +6,7 @@ $apps[$x]['category'] = "Switch"; $apps[$x]['subcategory'] = ""; $apps[$x]['version'] = "1.0"; - $apps[$x]['license'] = "Mozilla Public License 1.1"; + $apps[$x]['license'] = "Mozilla Public License 1.1"; $apps[$x]['url'] = "http://www.fusionpbx.com"; $apps[$x]['description']['en-us'] = "Devices for provisioning."; $apps[$x]['description']['ar-eg'] = ""; @@ -641,7 +641,7 @@ $apps[$x]['db'][$y]['fields'][$z]['name'] = "device_key_icon"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "ICON Name."; - + $y++; $apps[$x]['db'][$y]['table']['name'] = "v_device_profiles"; $apps[$x]['db'][$y]['table']['parent'] = ""; @@ -2929,6 +2929,20 @@ $vendors[$y]['uuid'] = "9ec868f0-8c18-42f1-8eb0-8e80b10891c2"; $vendors[$y]['name'] = "digium"; $z=0; + $vendors[$y]['functions'][$z]['uuid'] = "279141ad-473f-48d2-b1f2-331565411dc4"; + $vendors[$y]['functions'][$z]['label'] = "label-speed_dial"; + $vendors[$y]['functions'][$z]['name'] = "speed_dial"; + $vendors[$y]['functions'][$z]['value'] = "speed_dial"; + $vendors[$y]['functions'][$z]['groups'][] = "superadmin"; + $vendors[$y]['functions'][$z]['groups'][] = "admin"; + $z++; + $vendors[$y]['functions'][$z]['uuid'] = "8a76f8d9-8fa6-445c-8b92-4dcfae09b54d"; + $vendors[$y]['functions'][$z]['label'] = "label-blf"; + $vendors[$y]['functions'][$z]['name'] = "blf"; + $vendors[$y]['functions'][$z]['value'] = "blf"; + $vendors[$y]['functions'][$z]['groups'][] = "superadmin"; + $vendors[$y]['functions'][$z]['groups'][] = "admin"; + $z++; //panasonic $y++; $vendors[$y]['uuid'] = "86cd5298-3599-4254-9ce5-ce84a31a3596"; diff --git a/resources/install/scripts/app/event_notify/index.lua b/resources/install/scripts/app/event_notify/index.lua index 54a6ed46f5..cde11fcf53 100644 --- a/resources/install/scripts/app/event_notify/index.lua +++ b/resources/install/scripts/app/event_notify/index.lua @@ -85,6 +85,16 @@ end end +--digium + if (vendor == "digium") then + if (command == "reboot") then + event:addHeader('event-string', 'check-sync'); + end + if (command == "check_sync") then + event:addHeader('event-string', 'check-sync'); + end + end + --fanvil if (vendor == "fanvil") then if (command == "reboot") then diff --git a/resources/templates/provision/digium/d40/{$mac}-contacts.cfg b/resources/templates/provision/digium/d40/{$mac}-contacts.cfg new file mode 100644 index 0000000000..ef18e96672 --- /dev/null +++ b/resources/templates/provision/digium/d40/{$mac}-contacts.cfg @@ -0,0 +1,47 @@ + + + {foreach $contacts as $row} + + + {if $row.phone_number != ""} + + + {else} + + {/if} + + + {/foreach} + {foreach $keys["line"] as $row} + + + + + + {/foreach} + + diff --git a/resources/templates/provision/digium/d40/{$mac}-smartblf.cfg b/resources/templates/provision/digium/d40/{$mac}-smartblf.cfg new file mode 100644 index 0000000000..8fa085bb64 --- /dev/null +++ b/resources/templates/provision/digium/d40/{$mac}-smartblf.cfg @@ -0,0 +1,20 @@ + + + + {foreach $keys["line"] as $row} + + + + + + + + + + + + + {/foreach} + + + diff --git a/resources/templates/provision/digium/d40/{$mac}.cfg b/resources/templates/provision/digium/d40/{$mac}.cfg new file mode 100644 index 0000000000..c5f03dbc34 --- /dev/null +++ b/resources/templates/provision/digium/d40/{$mac}.cfg @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {foreach $lines as $row} + + + + + + + {if $row@index eq 5}{break}{/if} + {/foreach} + + + + + + + + + + diff --git a/resources/templates/provision/digium/d50/${mac}.cfg b/resources/templates/provision/digium/d50/${mac}.cfg deleted file mode 100644 index bff83639c5..0000000000 --- a/resources/templates/provision/digium/d50/${mac}.cfg +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/resources/templates/provision/digium/d50/{$mac}-contacts.cfg b/resources/templates/provision/digium/d50/{$mac}-contacts.cfg new file mode 100644 index 0000000000..ef18e96672 --- /dev/null +++ b/resources/templates/provision/digium/d50/{$mac}-contacts.cfg @@ -0,0 +1,47 @@ + + + {foreach $contacts as $row} + + + {if $row.phone_number != ""} + + + {else} + + {/if} + + + {/foreach} + {foreach $keys["line"] as $row} + + + + + + {/foreach} + + diff --git a/resources/templates/provision/digium/d50/{$mac}-smartblf.cfg b/resources/templates/provision/digium/d50/{$mac}-smartblf.cfg new file mode 100644 index 0000000000..c0ec594622 --- /dev/null +++ b/resources/templates/provision/digium/d50/{$mac}-smartblf.cfg @@ -0,0 +1,20 @@ + + + + {foreach $keys["line"] as $row} + + + + + + + + + + + + + {/foreach} + + + diff --git a/resources/templates/provision/digium/d50/{$mac}.cfg b/resources/templates/provision/digium/d50/{$mac}.cfg new file mode 100644 index 0000000000..c0f4ec1b15 --- /dev/null +++ b/resources/templates/provision/digium/d50/{$mac}.cfg @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {foreach $lines as $row} + + + + + + + {if $row@index eq 5}{break}{/if} + {/foreach} + + + + + + + + + + diff --git a/resources/templates/provision/digium/d60/{$mac}-contacts.cfg b/resources/templates/provision/digium/d60/{$mac}-contacts.cfg new file mode 100644 index 0000000000..ef18e96672 --- /dev/null +++ b/resources/templates/provision/digium/d60/{$mac}-contacts.cfg @@ -0,0 +1,47 @@ + + + {foreach $contacts as $row} + + + {if $row.phone_number != ""} + + + {else} + + {/if} + + + {/foreach} + {foreach $keys["line"] as $row} + + + + + + {/foreach} + + diff --git a/resources/templates/provision/digium/d60/{$mac}-smartblf.cfg b/resources/templates/provision/digium/d60/{$mac}-smartblf.cfg new file mode 100644 index 0000000000..8fa085bb64 --- /dev/null +++ b/resources/templates/provision/digium/d60/{$mac}-smartblf.cfg @@ -0,0 +1,20 @@ + + + + {foreach $keys["line"] as $row} + + + + + + + + + + + + + {/foreach} + + + diff --git a/resources/templates/provision/digium/d60/{$mac}.cfg b/resources/templates/provision/digium/d60/{$mac}.cfg new file mode 100644 index 0000000000..7f31edf8a6 --- /dev/null +++ b/resources/templates/provision/digium/d60/{$mac}.cfg @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {foreach $lines as $row} + + + + + + + {if $row@index eq 5}{break}{/if} + {/foreach} + + + + + + + + + + diff --git a/resources/templates/provision/digium/d62/{$mac}-contacts.cfg b/resources/templates/provision/digium/d62/{$mac}-contacts.cfg new file mode 100644 index 0000000000..ef18e96672 --- /dev/null +++ b/resources/templates/provision/digium/d62/{$mac}-contacts.cfg @@ -0,0 +1,47 @@ + + + {foreach $contacts as $row} + + + {if $row.phone_number != ""} + + + {else} + + {/if} + + + {/foreach} + {foreach $keys["line"] as $row} + + + + + + {/foreach} + + diff --git a/resources/templates/provision/digium/d62/{$mac}-smartblf.cfg b/resources/templates/provision/digium/d62/{$mac}-smartblf.cfg new file mode 100644 index 0000000000..8fa085bb64 --- /dev/null +++ b/resources/templates/provision/digium/d62/{$mac}-smartblf.cfg @@ -0,0 +1,20 @@ + + + + {foreach $keys["line"] as $row} + + + + + + + + + + + + + {/foreach} + + + diff --git a/resources/templates/provision/digium/d62/{$mac}.cfg b/resources/templates/provision/digium/d62/{$mac}.cfg new file mode 100644 index 0000000000..7f31edf8a6 --- /dev/null +++ b/resources/templates/provision/digium/d62/{$mac}.cfg @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {foreach $lines as $row} + + + + + + + {if $row@index eq 5}{break}{/if} + {/foreach} + + + + + + + + + + diff --git a/resources/templates/provision/digium/d65/{$mac}-contacts.cfg b/resources/templates/provision/digium/d65/{$mac}-contacts.cfg new file mode 100644 index 0000000000..ef18e96672 --- /dev/null +++ b/resources/templates/provision/digium/d65/{$mac}-contacts.cfg @@ -0,0 +1,47 @@ + + + {foreach $contacts as $row} + + + {if $row.phone_number != ""} + + + {else} + + {/if} + + + {/foreach} + {foreach $keys["line"] as $row} + + + + + + {/foreach} + + diff --git a/resources/templates/provision/digium/d65/{$mac}-smartblf.cfg b/resources/templates/provision/digium/d65/{$mac}-smartblf.cfg new file mode 100644 index 0000000000..8fa085bb64 --- /dev/null +++ b/resources/templates/provision/digium/d65/{$mac}-smartblf.cfg @@ -0,0 +1,20 @@ + + + + {foreach $keys["line"] as $row} + + + + + + + + + + + + + {/foreach} + + + diff --git a/resources/templates/provision/digium/d65/{$mac}.cfg b/resources/templates/provision/digium/d65/{$mac}.cfg new file mode 100644 index 0000000000..5520439393 --- /dev/null +++ b/resources/templates/provision/digium/d65/{$mac}.cfg @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {foreach $lines as $row} + + + + + + + {if $row@index eq 5}{break}{/if} + {/foreach} + + + + + + + + + + diff --git a/resources/templates/provision/digium/d70/{$mac}-contacts.cfg b/resources/templates/provision/digium/d70/{$mac}-contacts.cfg new file mode 100644 index 0000000000..ef18e96672 --- /dev/null +++ b/resources/templates/provision/digium/d70/{$mac}-contacts.cfg @@ -0,0 +1,47 @@ + + + {foreach $contacts as $row} + + + {if $row.phone_number != ""} + + + {else} + + {/if} + + + {/foreach} + {foreach $keys["line"] as $row} + + + + + + {/foreach} + + diff --git a/resources/templates/provision/digium/d70/{$mac}-smartblf.cfg b/resources/templates/provision/digium/d70/{$mac}-smartblf.cfg new file mode 100644 index 0000000000..c0ec594622 --- /dev/null +++ b/resources/templates/provision/digium/d70/{$mac}-smartblf.cfg @@ -0,0 +1,20 @@ + + + + {foreach $keys["line"] as $row} + + + + + + + + + + + + + {/foreach} + + + diff --git a/resources/templates/provision/digium/d70/{$mac}.cfg b/resources/templates/provision/digium/d70/{$mac}.cfg new file mode 100644 index 0000000000..c0f4ec1b15 --- /dev/null +++ b/resources/templates/provision/digium/d70/{$mac}.cfg @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {foreach $lines as $row} + + + + + + + {if $row@index eq 5}{break}{/if} + {/foreach} + + + + + + + + + +