Page 115 - Asterisk™: The Future of Telephony
P. 115

# groupadd PlcmSpIp
                   # useradd PlcmSpIp -g PlcmSpIp -p PlcmSpIp
                   # passwd PlcmSpIp
               Set the password to PlcmSpIp (the default FTP password for Polycom sets). This can
               be changed, but will then require manual configuration from each set in order to advise
               them of their nonstandard credentials. ‡
               For added security, let’s make sure the FTP server keeps that account in a chroot jail:

                   # echo PlcmSpIp >> /etc/vsftpd/vsftpd.chroot_list
               That pretty much does it as far as preparing the operating system to provide the required
               services to the phones.
               In the next few sections we have provided instructions for various popular SIP tele-
               phones. Choose the section that applies best to the phone that you are planning to use
               (whether a hard- or soft-phone). You will note that we have given all of these phones
               the exact same unique identifier. If you plan on installing more than one of them, you
               will need to ensure that they have unique names, and be sure to update your sip.conf
               file to include those device definitions.

               CounterPath’s X-Lite Softphone

               CounterPath’s X-Lite softphone has become very popular with the Asterisk commun-
               ity. It is simple, functional, easy on the eyes, and—most importantly—free.
               In this section we will be configuring the X-Lite softphone to connect to Asterisk.
               The IP address of the phone is 192.168.1.250, and Asterisk is located at 192.168.1.100.
               The X-Lite is available for Microsoft Windows, Mac, and Linux. You can obtain a copy
               of X-Lite from http://www.counterpath.com/index.php?menu=download.
               Now let’s configure our softphone for connecting to our Asterisk box. To configure X-
               Lite, click on the Settings button, as circled in Figure 4-2.
               Select System Settings → SIP Proxy → [Default], which will display the default configu-
               ration for the softphone. Configure the screen as shown in Figure 4-3.
               If you have not already started Asterisk, then start it now (see Chapter 3 for help in-
               stalling  and  starting  Asterisk).  If  Asterisk  is  running  in  the  background,  you  can
               reconnect to the CLI by running the following command:
                   # asterisk -rvvv





               ‡ You can get into assigning complex and unguessable passwords for the phones to use, but unless you are
                 going to input the passwords into each phone manually, you’ll have to pass them their FTP username and
                 password from the DHCP server. Any device that can get on the voice network can get the same information
                 from the DHCP server. We’re not telling you to ignore security; just don’t assume that creating separate
                 passwords for each phone is going to improve security.

                                                                   Configuring SIP Telephones | 87
   110   111   112   113   114   115   116   117   118   119   120