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

  1. You serve a file for each person over https.
  2. 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.
  3. 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.

FormatRecognised byRead
Meow templateOur own template, belowEverything, including the licence
Yealinkaccount.N.* keysAccount fields, voicemail, park code
Grandstream<gs_provision> with P valuesAccount 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 idxAccount 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.

EncryptionAdd to the linkStatus
openssl enc -aes-256-cbc -k PASSWORD (Grandstream, Cisco)#password=PASSWORDSupported
Yealink 16-character AES key#key=KEYSupported, but not yet tried on a file from Yealink's own tool
Poly encrypted filesNot 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 filesNot supported, on purpose. Use a key or password of your own

PBX notes

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.