Auto provisioning
Meow on Windows and Linux can set itself up from a file on your own server, the way a desk phone does. The file stays with you: it never passes through our servers. For the phone app, use a setup code instead.
How it works
- You serve a file for each person over https.
- They paste its link in the setup wizard or under Settings, Accounts, or IT sets it for them. A file used only once, such as 3CX's, can be imported instead; it is not checked again.
- Meow reads the file at startup and about every 4 hours, and applies what changed. A change waits while a call is up.
Meow uses the SIP server, port, transport, username, auth ID, password, display name, voicemail number and park extension of accounts 1 and 2, and a licence key. Everything else in a file is ignored. If a check fails, or a value is missing, what the app already has stays. An account taken out of the file also stays, so cut access on the PBX. While the link is in use, those fields cannot be edited in the app.
The template
Download meow-template.cfg. Make a copy per person and fill in the values. It uses Yealink's syntax, so a system that already generates Yealink files needs little change.
account.1.display_name = Front Desk account.1.user_name = 1001 account.1.auth_name = 1001 account.1.password = secret account.1.sip_server.1.address = pbx.example.com account.1.sip_server.1.port = 5061 account.1.sip_server.1.transport_type = 2 voice_mail.number.1 = *97 meow.account.1.park_extension = 70 meow.license_key = MEOW-...
The link
It must be https. It can carry a login before the host and a decryption key or password after the #, which browsers and Meow never send to the server:
https://pbx.example.com/prov/a7f3c91e.cfg https://user:[email protected]/prov/1001.cfg https://pbx.example.com/prov/1001.cfg#password=SECRET
The file holds a password, so each person needs their own address with a random part, or a login. Do not use one address with the username in it: anyone could change the name and read a colleague's password. The server's certificate must be one the computer already trusts; a self-signed certificate is refused.
Formats read
Meow works out the format from the file itself. There is nothing to choose.
| Format | Recognised by | Read |
|---|---|---|
| Meow template | Our own template, below | Everything, including the licence |
| Yealink | account.N.* keys | Account fields, voicemail, park code |
| Grandstream | <gs_provision> with P values | Account fields, voicemail |
| Cisco SPA and MPP | <flat-profile> | Account fields, voicemail, park code |
| Poly | <polycomConfig> with reg.N.* | Account fields, voicemail, park string |
| Snom | <settings> with user_* by idx | Account fields, mailbox |
| 3CX app file | <tconfig> | Extension, auth ID, SIP password, server, port, name, voicemail |
These were written from each vendor's documentation, and generated files vary. If yours is not read, tell us, with the passwords removed. In a generator that can add a line, an XML file carries the licence as <meow.license_key>.
Encrypted files
https already protects the file on its way. If you also encrypt it, Meow uses a key or password you hold.
| Encryption | Add to the link | Status |
|---|---|---|
| openssl enc -aes-256-cbc -k PASSWORD (Grandstream, Cisco) | #password=PASSWORD | Supported |
| Yealink 16-character AES key | #key=KEY | Supported, but not yet tried on a file from Yealink's own tool |
| Poly encrypted files | Not read: the file layout is not public. Serve it unencrypted over https | |
| A key built into a vendor's firmware, such as Yealink's .enc key files | Not supported, on purpose. Use a key or password of your own |
PBX notes
- FreePBX and Asterisk: the simplest route is the template above, served from a protected https path. Files that Endpoint Manager generates for the vendors listed should be readable too, when the link reaches them over https; we have not tested that yet.
- 3CX: Meow reads the provisioning file 3CX makes for its own app. In the 3CX admin, open the user and download the provisioning file, then in Meow choose Import File under Settings, Accounts. Meow does not use the 3CX tunnel, so for someone outside the office network, 3CX must allow plain SIP for that extension: Admin, Users, the user, Options, clear Block remote non-tunnel connections (Insecure!), then Save. 3CX marks that insecure for a reason: the file sets plain UDP, so the login and calls are not encrypted, and the extension can be reached from the internet. A VPN to the office avoids both. Tested on a hosted 3CX V20; we are asking 3CX about the tunnel and about becoming a supported phone.
Rolling out to many computers
Windows: install silently with meow-setup.exe /S, then set policy values through Group Policy, Intune or a script. A link set this way cannot be changed in the app.
reg add "HKLM\SOFTWARE\Policies\meow" /v LicenseKey /t REG_SZ /d "MEOW-..." /f reg add "HKCU\SOFTWARE\Policies\meow" /v ProvisioningUrl /t REG_SZ /d "https://..." /f
The link goes under HKCU because it is per person, and HKCU beats HKLM. Details are in the Windows reference.
Linux: put the same two values in /etc/meow/provisioning.conf, readable by the people who use that computer:
url=https://... license_key=MEOW-...
Licences
A key in the file or policy activates a computer that has no licence, and takes a seat as usual. A computer you remove from the licence does not take its seat back by itself: entering the key by hand brings it back. Anyone who can read the file can read the key, and could activate other computers while seats are free, so protect the file as you would the key.
Troubleshooting
The last result is shown under Settings, Accounts, with Check Now beside it. The log category is meow.provisioning; it never holds the link's login or key, or a password. On Linux see man meow-sip, and on Windows the reference.