Grandstream provisioning
MonoPbx provisions the current Grandstream SIP range from one built-in template: desk phones, video phones, Wi-Fi phones, DECT bases and analog adapters. The general flow (device with a MAC, per-device URL, key layout) is on Desk phone provisioning.
Devices
| Family | Models | Accounts | Keys and modules |
|---|---|---|---|
| GXP16xx | GXP1610, GXP1615, GXP1620, GXP1625, GXP1628, GXP1630 | 1 to 3 | line keys; GXP1630 also BLF keys |
| GXP17xx | GXP1760, GXP1780, GXP1782 | 6 to 8 | line and BLF keys |
| GXP21xx | GXP2130, GXP2135, GXP2140, GXP2160, GXP2170 | 3 to 12 | line and multi-purpose keys; GXP2200EXT modules |
| GRP26xx | GRP2601, GRP2602, GRP2603, GRP2604, GRP2612, GRP2613, GRP2614, GRP2615, GRP2616, GRP2624, GRP2634, GRP2636, GRP2650, GRP2670 | 2 to 14 | virtual multi-purpose keys (VPK); GBX20 modules on the larger models |
| GXV33xx/34xx (Android video) | GXV3350, GXV3370, GXV3380, GXV3450, GXV3470, GXV3480 | 16 | SIP settings only |
| WP8xx (Wi-Fi) | WP810, WP820, WP822, WP825, WP826 | 2 to 6 | none |
| DECT | DP750 and DP752 bases with DP720, DP722, DP725 and DP730 handsets; the DP760 repeater needs nothing | 10 per base, up to 5 handsets | none |
| HT8xx (analog adapters) | HT801, HT802, HT812, HT814, HT818 | one per FXS port | none |
PoE and Wi-Fi variants (for example GRP2601P or GRP2602W) are treated as their base model. A model not in the list is handled by its family prefix; a Grandstream phone of unknown model gets the GXP21xx file.
How the phone finds MonoPbx
- Files. The phone asks for
cfg<mac>.xml, thencfg<mac>and sometimescfg<mac>.bin(MAC in lower or upper case, no separators). MonoPbx answers all three with the same XML file. The sharedcfg.xmlis not served: it would carry no account. - URL. Set
https://<host>/prov/<token>/as the configuration server path (withoutcfg<mac>.xml), through DHCP option 66, or through Grandstream's redirect service. - Model. The family comes from the model recorded on the device. When none is recorded, the
User-Agentof the download tells it apart, for exampleGrandstream Model HW GXP2135 V2.4A SW 1.0.11.16 DevId c074ad123456orGrandstream GRP2614 1.0.5.2. Record the model on the device to be sure.
What the file sets
| Item | Value |
|---|---|
| Account | Account 1: SIP server, user ID, authentication ID, password, display name and transport (UDP, TCP or TLS). SRTP is offered on TLS. |
| Voicemail | The voicemail number and the message-waiting subscription. |
| Codecs | The company codec order (G.722, G.711 mu-law, G.711 a-law). |
| Time | The company time zone as a self-defined rule with its daylight-saving dates (for example CET-1CEST,M3.5.0,M10.5.0/3 for Madrid, CST6 for Mexico City, which has no daylight saving time). The GXV video phones take the zone name (America/Bogota). DHCP is not allowed to override the time zone or the time server. |
| Time server | The company's time server, pool.ntp.org when none is set. |
| Language | The company's default language, when the phone has a screen. |
| Web page | The phone's own web login when one is set for the device (see Extensions and devices); without one, the admin and user passwords are set to the phone's SIP password, so the factory password never stays. |
| Phonebook | The company phonebook (XML download over HTTP or HTTPS), on phones with a screen. |
| Keys | GXP and GRP phones: BLF, speed dial and line keys, account 1. On a GXP21xx with a GXP2200EXT, keys past the phone's own continue on the module. |
| Firmware | The firmware URL of a released upgrade job for the phone. |
| Provisioning | The configuration server path and, when the profile uses one, the HTTP login for later downloads. |
The key settings follow the key layout of firmware 1.0.9 and later. Older GXP21xx firmware uses another layout: upgrade the phone first, or edit the template.
DECT bases (DP750, DP752)
Add the base under Device extras > DECT bases with vendor Grandstream and model DP750 or DP752, add its handsets (slots 1 to 5) and issue its URL. Enter the URL path as the base's configuration server path. Each handset slot becomes one SIP account of the base: account 1 rings and dials out on handset 1, account 2 on handset 2, and so on. Register the handsets on the base in slot order. The DP720, DP722, DP725 and DP730 handsets and the DP760 repeater need no file of their own.
Analog adapters (HT8xx)
Add the adapter under Device extras > SIP gateways with vendor Grandstream and its model (for example HT814), bind each FXS port to an extension and issue the configuration. MonoPbx returns cfg<mac>.xml, with one registration per port, the company time zone and time server, and the web page passwords set to port 1's SIP password. Upload it in the adapter's web page or place it on your own provisioning server. The file is shown once; issuing it again rotates the passwords.
Caveats
- The built-in template was written from Grandstream's public configuration templates. If a parameter does not suit your firmware, edit the Grandstream template under Desk phones > Templates; the next download uses it.
- GXV video phones and WP Wi-Fi phones get the account, time, language and phonebook settings; their own apps and keys stay as they are.
- An HT adapter's FXO port (HT813) is not written to the file.