I am using Asterisk 16 on an Ubuntu 16.04 machine.
In the pjsip_wizard, you have the possibility to provision phones.
But is it possible to provision multiple phones with one extension ?
Example :
This is my config now
[303](CONTEXT)
hint_exten = 303
endpoint/callerid = John Doe <303>
inbound_auth/username = 303
inbound_auth/password = NotARealPassword
has_phoneprov = yes
phoneprov/LABEL = John - 303
phoneprov/MAC = AXXNOTAREALMAC
phoneprov/LINE = 1
The address of record is the URI that the device uses to register, or the URI used to access a remote device. The primary extension is the number that appears after exten => in extensions .conf, for the the extension that is the most specific one for that device. In some caes it may not exist at all, e.g. if you are smulating an analogue plan 1 arrangement where all the phones are wired in parallel.
Best practice for local deivces is to tbase the address of record on the MAC address.
With pjsip, there are possibly two translations: extension to address of record and adress fo record to device indentity. Actually, strictly speaking that is also true for chan_sip, but hte second one is always one to one, at any given point in time.
Leaving phoneprov aside, the easiest way to do this is to allow more than 1 device to register to the same endpoint/aor. With the pjsip config wizard, you’d do something like…
aor/max_contacts = 2
This will allow 2 devices to register.
The problem is phoneprov though. Currently there’s no way to tell it to use the same config for more than 1 mac address.