From 9a4e0fc873df13087238f63ab5cb0aee6d7c38ee Mon Sep 17 00:00:00 2001 From: Killsudo Date: Fri, 12 Oct 2018 15:30:14 -0500 Subject: [PATCH] Setup Grandstream GXP2100 Template and Phonebook (#3631) * Setup Grandstream GXP2100 Template and Phonebook for working provisioning --- .../grandstream/gxp2100/phonebook.xml | 30 + .../provision/grandstream/gxp2100/{$mac}.xml | 4122 +++++++++++++++++ 2 files changed, 4152 insertions(+) create mode 100644 resources/templates/provision/grandstream/gxp2100/phonebook.xml create mode 100644 resources/templates/provision/grandstream/gxp2100/{$mac}.xml diff --git a/resources/templates/provision/grandstream/gxp2100/phonebook.xml b/resources/templates/provision/grandstream/gxp2100/phonebook.xml new file mode 100644 index 0000000000..c6b5d9b2cc --- /dev/null +++ b/resources/templates/provision/grandstream/gxp2100/phonebook.xml @@ -0,0 +1,30 @@ +{strip} +{* Phonebook has been setup for business use using the 'work' phone label in the Contacts app. --*} +{* You can add additional contacts by adding new contact blocks and updating the 'contact_type' and 'phone_label'. --*} +{/strip} + + +1 +{foreach $contacts as $row} +{if $row.contact_type == 'user' && $row.phone_label == 'work' && $row.phone_number != ''} + +{if $row.contact_name_family != ''} + {$row.contact_name_family} +{/if} +{if $row.contact_name_given != ''} + {$row.contact_name_given} +{/if} +{if $row.contact_category != ''} + {$row.contact_category} +{/if} + + {$row.phone_number} + 0 + + + 2 + + +{/if} +{/foreach} + diff --git a/resources/templates/provision/grandstream/gxp2100/{$mac}.xml b/resources/templates/provision/grandstream/gxp2100/{$mac}.xml new file mode 100644 index 0000000000..79d356cf02 --- /dev/null +++ b/resources/templates/provision/grandstream/gxp2100/{$mac}.xml @@ -0,0 +1,4122 @@ + + + + + + + + + + + + + + + + + 1 + + + + {$display_name_1} + + + + {$server_address_1} + + + + + + + + + + + + + + + + {$display_name_1} + + + + {$auth_id_1} + + + + {$user_password_1} + + + + {$display_name_1} + + + + {$voicemail_number} + + + + + + + + +{if isset($grandstream_dns_mode)} + {$grandstream_dns_mode} +{else} + 0 +{/if} + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 60 + + + + + 0 + + + + + 0 + + + + + 30 + + + + + 3 + + + + + 5060 + + + + + 20 + + + + + + 50 + + + + + + 400 + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + 0 + + + + + + 0 + + + + + 0 + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 15 + + + + + + + + + + + + + + + + 0 + + + + + ** + + + + + 0 + + + + + + 100 + + + + + + + + 180 + + + + + 90 + + + + + 0 + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 1 + + + + + + 0 + + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 101 + + + + + + + 0 + + + + + 8 + + + + + 4 + + + + + 18 + + + + + 9 + + + + + 98 + + + + + 2 + + + + + 0 + + + + + 0 + + + + + +{if isset($grandstream_srtp)} + {$grandstream_srtp} +{else} + 0 +{/if} + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 2 + + + + + 1 + + + + + 0 + + + + + 1 + + + + + 97 + + + + + 1 + + + + + + 2 + + + + + + + + 0 + + + + + + + + + +{if isset($grandstream_dial_plan)} + {$grandstream_dial_plan} +{else} +{literal} + {x+|*x+|*xx*x+} +{/literal} +{/if} + + + + + 20 + + + + + 1 + + + + + 0 + + + + + 0 + + + + + + + + + + 0 + + + + + + + + + + 0 + + + + + + + + + + 0 + + + + + 60 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 4 + + + + + 1 + + + + + 0 + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($grandstream_dns_mode)} + {$grandstream_dns_mode} +{else} + 0 +{/if} + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 60 + + + + + 0 + + + + + 5062 + + + + + 0 + + + + + 30 + + + + + 3 + + + + + 20 + + + + + + 50 + + + + + + 400 + + + + + +{if $sip_transport_1 == 'udp'}P448 = 0{/if} +{if $sip_transport_1 == 'tcp'}P448 = 1{/if} +{if $sip_transport_1 == 'tls'}P448 = 2{/if} +{if $sip_transport_1 == 'dns srv'}P448 = 1{/if} + + + + + 1 + + + + + 0 + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 15 + + + + + + + + + + + + + + + + 0 + + + + + ** + + + + + 0 + + + + + 100 + + + + + + + + 180 + + + + + 90 + + + + + 0 + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 1 + + + + + + 0 + + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 101 + + + + + + + 0 + + + + + 8 + + + + + 4 + + + + + 18 + + + + + 9 + + + + + 98 + + + + + 2 + + + + + 0 + + + + + 0 + + + + + + +{if isset($grandstream_srtp)} + {$grandstream_srtp} +{else} + 0 +{/if} + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 2 + + + + + 1 + + + + + 0 + + + + + 1 + + + + + 97 + + + + + 1 + + + + + + 2 + + + + + + + + 0 + + + + + + + + + +{if isset($grandstream_dial_plan)} + {$grandstream_dial_plan} +{else} +{literal} + {x+|*x+|*xx*x+} +{/literal} +{/if} + + + + + 20 + + + + + 1 + + + + + 0 + + + + + 0 + + + + + + + + + + 0 + + + + + + + + + + 0 + + + + + + + + + + 0 + + + + + 60 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 4 + + + + + 1 + + + + + 0 + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($grandstream_dns_mode)} + {$grandstream_dns_mode} +{else} + 0 +{/if} + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 60 + + + + + 0 + + + + + 5064 + + + + + 0 + + + + + 30 + + + + + 3 + + + + + 20 + + + + + + 50 + + + + + + 400 + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + 0 + + + + + + 0 + + + + + + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 15 + + + + + + + + + + + + + + + + 0 + + + + + ** + + + + + 0 + + + + + 100 + + + + + + + + 180 + + + + + 90 + + + + + 0 + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 1 + + + + + 0 + + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 101 + + + + + + + 0 + + + + + 8 + + + + + 4 + + + + + 18 + + + + + 9 + + + + + 98 + + + + + 2 + + + + + 0 + + + + + 0 + + + + + + +{if isset($grandstream_srtp)} + {$grandstream_srtp} +{else} + 0 +{/if} + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 2 + + + + + 1 + + + + + 0 + + + + + 1 + + + + + 97 + + + + + 1 + + + + + 2 + + + + + + + + 0 + + + + + + + + + +{if isset($grandstream_dial_plan)} + {$grandstream_dial_plan} +{else} +{literal} + {x+|*x+|*xx*x+} +{/literal} +{/if} + + + + + 20 + + + + + 1 + + + + + 0 + + + + + 0 + + + + + + + + + + 0 + + + + + + + + + + 0 + + + + + + + + + + 0 + + + + + 60 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 4 + + + + + 1 + + + + + 0 + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($grandstream_dns_mode)} + {$grandstream_dns_mode} +{else} + 0 +{/if} + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 60 + + + + + 0 + + + + + 5066 + + + + + 0 + + + + + 30 + + + + + 3 + + + + + 20 + + + + + + 50 + + + + + + 400 + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + 0 + + + + + + 0 + + + + + 0 + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 15 + + + + + + + + + + + + + + + + 0 + + + + + ** + + + + + 0 + + + + + 100 + + + + + + + + 180 + + + + + 90 + + + + + 0 + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 1 + + + + + + 0 + + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + + + 0 + + + + + 1 + + + + + 0 + + + + + 101 + + + + + + 0 + + + + 8 + + + + 4 + + + + 18 + + + + 9 + + + + 98 + + + + 2 + + + + + 0 + + + + + 0 + + + + + + +{if isset($grandstream_srtp)} + {$grandstream_srtp} +{else} + 0 +{/if} + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 2 + + + + + 1 + + + + + 0 + + + + + 1 + + + + + 97 + + + + + 1 + + + + + + 2 + + + + + + + + 0 + + + + + + + + + +{if isset($grandstream_dial_plan)} + {$grandstream_dial_plan} +{else} +{literal} + {x+|*x+|*xx*x+} +{/literal} +{/if} + + + + + 20 + + + + + 1 + + + + + 0 + + + + + 0 + + + + + + + + + + 0 + + + + + + + + + + 0 + + + + + + + + + + 0 + + + + + 60 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 4 + + + + + 1 + + + + + 0 + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 192 + + + 168 + + + 0 + + + 160 + + + + 255 + + + 255 + + + 0 + + + 0 + + + + 0 + + + 0 + + + 0 + + + 0 + + + + 0 + + + 0 + + + 0 + + + 0 + + + + 0 + + + 0 + + + 0 + + + 0 + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + 12 + + + + + +{if isset($grandstream_lan_port_vlan)} + {$grandstream_lan_port_vlan} +{else} + 0 +{/if} + + + + + +{if isset($grandstream_qos_rtp)} + {$grandstream_qos_rtp} +{else} + 0 +{/if} + + + + + 0 + + + + + +{if isset($grandstream_pc_port_vlan)} + {$grandstream_pc_port_vlan} +{else} + 0 +{/if} + + + + + 0 + + + + + 1 + + + + + + + + + + + + admin + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + 0 + + + + + 2 + + + + +{if isset($grandstream_firmware_path)} + {$grandstream_firmware_path} +{else} + fm.grandstream.com/gs +{/if} + + + + +{if isset($grandstream_config_server_path)} + {$grandstream_config_server_path} +{else} + fm.grandstream.com/gs +{/if} + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + 0 + + + + + 1 + + + + + + + + + + 1 + + + + + 10080 + + + + 1 + + + + 1 + + + + 0 + + + + + 0 + + + + + + + + +{if isset($grandstream_syslog_server)} + {$grandstream_syslog_server} +{else} + +{/if} + + + + + +{if isset($grandstream_syslog_level)} + {$grandstream_syslog_level} +{else} + 0 +{/if} + + + + + +{if isset($grandstream_send_sip_log)} + {$grandstream_send_sip_log} +{else} + 0 +{/if} + + + + + 1 + + + + + + + + + + + + + + + + + + auto + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + 86400 + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + 0 + + + + + 1 + + + + + + + + + + + + + + + + + + + + + 0 + + + + 0 + + + + + + + + + 3 + + + + + + +{* Bind the phone mac to the phonebook url so we can build unique phonebooks per phone using groups in the contacts app. --*} +{if isset($grandstream_phonebook_xml_server_path)} + {$grandstream_phonebook_xml_server_path}{$mac} +{else} + +{/if} + + + + + + 0 +{if isset($grandstream_phonebook_download_interval)} + {$grandstream_phonebook_download_interval} +{else} + 0 +{/if} + + + + + 1 + + + + + 0 + + + + + 0 + + + + + + + + + + + + 389 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + 50 + + + + + + 30 + + + + + 0 + + + + 0 + + + 0 + + + + + + + + + + + + 5004 + + + + + 0 + + + + + 20 + + + + + + + + +{if isset($grandstream_stun_server)} + {$grandstream_stun_server} +{else} + +{/if} + + + + + 0 + + + + + 0 + + + + + + + + + + + + 30 + + + + + 0 + + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + 300 + + + + + 200 + + + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + f1=440,f2=480,c=200/400; + + + + + f1=350,f2=440; + + + + + f1=350,f2=440; + + + + + f1=350,f2=440,c=10/10; + + + + + f1=440,f2=480,c=200/400; + + + + + f1=440,f2=440,c=25/525; + + + + + 0 + + + + + f1=480,f2=620,c=50/50; + + + + + f1=480,f2=620,c=25/25; + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + + + 6 + + + + + 2 + + + + + 7 + + + + + 0 + + + + + + + +{if isset($ntp_server_primary)} + {$ntp_server_primary} +{else} + us.pool.ntp.org +{/if} + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($grandstream_gxp_time_zone)} + {$grandstream_gxp_time_zone} +{else} + auto +{/if} + + + + + + + 1 + + + + + MTZ+6MDT+5,M4.1.0,M11.1.0 + + + + + + + + + + 0 + + + + + 0 + + + + + + + + + + 1 + + + + + + 1 + + + + +{if isset($grandstream_city_code)} + {$grandstream_city_code} +{else} + +{/if} + + + + + 15 + + + + + +{if isset($grandstream_temp_unit)} + {$grandstream_temp_unit} +{else} + auto +{/if} + + + + + + 1 + + + + + EUR/USD;GBP/USD;CAD/USD;AUD/USD;CNY/USD;JPY/USD + + + + + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($line_key_type_1)} + {$line_key_type_1} + {$line_key_line_1} + {$line_key_label_1} + {$line_key_value_1} +{else} + 0 + 0 + + +{/if} + + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($line_key_type_2)} + {$line_key_type_2} + {$line_key_line_2} + {$line_key_label_2} + {$line_key_value_2} +{else} + 0 + 0 + + +{/if} + + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($line_key_type_3)} + {$line_key_type_3} + {$line_key_line_3} + {$line_key_label_3} + {$line_key_value_3} +{else} + 0 + 0 + + +{/if} + + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($line_key_type_4)} + {$line_key_type_4} + {$line_key_line_4} + {$line_key_label_4} + {$line_key_value_4} +{else} + 0 + 0 + + +{/if} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($memory_key_type_1)} + {$memory_key_type_1} + {$memory_key_line_1} + {$memory_key_label_1} + {$memory_key_value_1} +{else} + 0 + 0 + + +{/if} + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($memory_key_type_2)} + {$memory_key_type_2} + {$memory_key_line_2} + {$memory_key_label_2} + {$memory_key_value_2} +{else} + 0 + 0 + + +{/if} + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($memory_key_type_3)} + {$memory_key_type_3} + {$memory_key_line_3} + {$memory_key_label_3} + {$memory_key_value_3} +{else} + 0 + 0 + + +{/if} + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($memory_key_type_4)} + {$memory_key_type_4} + {$memory_key_line_4} + {$memory_key_label_4} + {$memory_key_value_4} +{else} + 0 + 0 + + +{/if} + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($memory_key_type_5)} + {$memory_key_type_5} + {$memory_key_line_5} + {$memory_key_label_5} + {$memory_key_value_5} +{else} + 0 + 0 + + +{/if} + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($memory_key_type_6)} + {$memory_key_type_6} + {$memory_key_line_6} + {$memory_key_label_6} + {$memory_key_value_6} +{else} + 0 + 0 + + +{/if} + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($memory_key_type_7)} + {$memory_key_type_7} + {$memory_key_line_7} + {$memory_key_label_7} + {$memory_key_value_7} +{else} + 0 + 0 + + +{/if} + +