User Guide

203
4. In the User Extension box, type a number. For
example, 2001.
5. In the Display Name box, type the name of the
person who uses this extension.
6. In the secret box, type a password for this
extension.
7. Click Submit.
8. At the top of the page, click Apply Config.
To register a SIP device on your local network to this extension:
1. In the settings of your SIP phone or softphone,
create a new account.
2. In the username box, enter the extension number.
For example, 2001.
3. In the password box, enter the secret that you set in
the FreePBX configuration.
4. In the domain box, enter the IP address of your Pi.
5. Check that the phone connects to the server using
UDP port 5060.
It can be useful to create a second extension, for example 2002,
so that you can test the server. If the SIP device on extension
2001 dials 2002 then the second device should ring. If it does
not, check that both SIP devices are showing “registered”. This
indicates that they are communicating with the Raspberry Pi ok.
To see what is happening on the Pi:
1. Make an SSH connection or login to the terminal on
the Pi.
2. Type the following command and then press Enter:
asterisk -rvvvv
When the Asterisk CLI tool is running, you see all of the actions
that occur – including when SIP devices connect to the Pi, and
when they disconnect. This can be helpful in debugging.