Adding a new modem

Revisi per 13 November 2014 17.48 oleh Angus (bicara | kontrib) (Adding a new modem)
(beda) ← Revisi sebelumnya | Revisi terkini (beda) | Revisi selanjutnya → (beda)

Adding a new modem

When a new modem is added to the system (either live or training), in order to activate it, follow these steps.

  1. Configure modem, connect cable, insert SIM, charge pulsa
    • Aloy / Ben to expand on this
  2. Configure the port on the Moxa and the firewall
    • Aloy / Ben to expand on this
  3. Configure the SMS server
    1. Edit /etc/smsd.conf on the correct server (messaging server or training server)
      • Add the modem name (SOV+port number) to the list of modems at the top
      • Add a new queue for the modem
      • Add a new modem block entry at the bottom, copying the previous entries, but updating the name, port, and regular run file names
    2. Add new queue directories in /var/spool/sms/queues, and set permissions
    3. Add new regular run scripts for pulsa checking
      • Copy on of the existing scripts and update the name to the new modem name
      • Edit the script to have the right telephone number
  4. Update the database
    • add entries in the modemstatus table with the modem name and telephone number
  5. Update the wiki
    • add the phone numbers to the list in the wiki for reference
  6. Restart smsd on the server
    • Very important. Check /var/log/smstools/smsd.log after the restart to check for errors. These are not reported on the command line so you need check the log to be sure that the changes are correct and that the server has restarted properly.