Adding a new modem

Revision as of 17:48, 13 November 2014 by Angus (talk | contribs) (Adding a new modem)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.