wiki:Deployments/SAMBRO/FAQs

Version 30 (modified by Biplov Bhandari, 4 years ago) ( diff )

--

Frequently Asked Questions

SAMBRO specific FAQs

Why do I need a SMS Gateway?

Here is an example of a SMS gateway: http://www.smsglobal.com/rest-api/ .Notice the menu below the banner - it has a set of API types, like REST API, SMPP API, HTTP API, etc. We would prefer the REST API. Typically, when you acquire a bulk of SMS from MPT, for example, they would provide you with a script. MPT will provide you a user name and password as well. Then we can add the script, username, and password into SAMBRO for you to begin sending/receiving SMS.

You need the SMS gateway for three reasons:

1. Alerting first responders

SMS would be one channel to be used as a wake function with targeted groups, also know as Closed User Groups of focal points. For example, when you are not in office or traveling, you would receive the SMS alerts. It serves as an attention getter directing you to the complete message. This is what we also call as a wake up function.

2. Alert approval process

Issuing an alert is a 2 step process. First someone will author (or edit) the message. Then it must be approved, usually by a Supervisor. The Supervisor may be at a meeting or not in the premises. They will receive an SMS requesting to approve the alert. The SMS will contain a URL to the approval page. When they click the approval URL and authenticate, it is only then that the alerts would be disseminated.

3. Acknowledge alert receipt

It is a best-practice that first-responders and focal points acknowledge the receipt of the alert message. This way you are guaranteed to know they have received and read the message. Otherwise, the phone can be charging in the kitchen while you are watching TV and don't hear receiving the alert. Therefore, the person must acknowledge. For this we have incorporated a special SMS text that they can send, simply type ACK and message id and send SMS. At the central server we can then see who has acknowledged. Hence, the SMS gateway should be able to receive alerts as well.

Unicode Display Problem

See http://unicode.org/help/display_problems.html

How do I Evaluate an Implementation

Simulation and Evaluation Methodology for ensuring your system performs to your requirements before going live. Implementers are encourage to conduct simulations and evaluate the system periodically, at least, once every year.

What can different users in SAMBRO do?

There are six types of users in SAMBRO as of 2016-10-11

  1. ANONYMOUS -> The public users(having no login account)
  2. AUTHENTICATED -> Users having login account with minimal permissions. All other users except anonymous are authenticated plus the designated role.
  3. MAP_ADMIN -> This role is mostly given to the GIS technical personnel in the office.
  4. ALERT_EDITOR -> They can create, edit the alert and submit the alert for approval.
  5. ALERT_APPROVER -> Besides Authorizing Message to disseminate (publish), they can also act as CAP Editor.
  6. ADMIN -> They are the superuser. They are granted with all the permissions.

The detailed list of different roles with permissions are listed here.

Can approved alerts be edited?

No the approved alerts cannot be edited, or deleted. Usually in the CAP world, if there is a mistake, error or have to cancel the previous alert,
you need to create another alert that reference this alert. In SAMBRO, this can be achieved simply via a click a button. More details here

Why is my Alert Hub not fetching messages?

There can be several reasons why your alert hub is not fetching the alerts from external system. There may be some potential bug due to some unforeseen condition which may cause breaking. This should be addressed by the experience developer as may lead to data loss and other issues. Other reasons can be solved through UI. Note that both the described problem may exist in the system.

1. Message Polling Timeout/ Error etc.

  1. Login as admin.
  2. Go to raw database table. From UI: Administration -> Database or from URL: /eden/appadmin/index
  3. Search for msg_rss_channel. Click on it and open up.
  4. Look for the RSS Channel which is not fetching up the messages. Note the channel_id for the same channel.
  5. Go back to raw database tables.
  6. Go to scheduler_task table.
  7. In the query, you can search for message polling as: db.scheduler_task.args =='["msg_rss_channel", channel_id]'. The channel_id is the one we got from step d.
  8. This will bring up the required channel. Check the scheduler_task.status. This should be QUEUED. If this is TIMEOUT or STOPPED or EXPIRED or FAILED, turn this to QUEUED and set the next run time.
  9. This should solve the problem. Check Problem Number 2 as well for confirmation.

2. Message Parsing Timeout/ Error etc.

  1. Login as admin.
  2. Go to raw database table. From UI: Administration -> Database or from URL: /eden/appadmin/index
  3. Search for msg_rss_channel. Click on it and open up.
  4. Look for the RSS Channel which is not fetching up the messages. Note the channel_id for the same channel.
  5. Go back to raw database tables.
  6. Go to scheduler_task table.
  7. In the query, you can search for message polling as: db.scheduler_task.args == '[channel_id, "parse_rss_2_cap"]'. The channel_id is the one we got from step d.
  8. This will bring up the required channel. Check the scheduler_task.status. This should be QUEUED. If this is TIMEOUT or STOPPED or EXPIRED or FAILED, turn this to QUEUED and set the next run time.
  9. This should solve the problem.


NB: If it didn't run after you try to solve the problem by following above steps, give it one/two more try. If the problem persists, then its best to contact the Service Providers to look at the problem.

Why am I not receiving Email/SMS?

SAMBRO uses the scheduler tasks to queue the Email and SMS every 5 minutes. The Eden scheduler is the wrapper to web2py scheduler. There can be several reasons why you are receiving Email/SMS. There may be some potential bug due to some unforeseen condition which may cause breaking. This should be addressed by the experienced developer as may lead to data loss and other issues. Other reasons can be solved through UI.

  1. Login as admin.
  2. Go to raw database table. From UI: Administration -> Database or from URL: /eden/appadmin/index
  3. Search for scheduler_task. Click on it and open up.
  4. In the query, you can search as: db.scheduler_task.vars == '{"contact_method": "EMAIL"}' . Open up the row that comes up.
  5. Check if the STATUS is QUEUED. If not, change it to QUEUED. Change Next Run Time to sometime future that will run.
  6. Repeat the same for SMS. In the query, you can search as: db.scheduler_task.vars == '{"contact_method": "SMS"}' .
  7. Repeat the same process as for Email.
  8. You can change the Period to change the time to run scheduler. But be very very careful about it.


NB: If it didn't run after you try to solve the problem by following above steps, give it one/two more try. If the problem persists, then its best to contact the Service Providers to look at the problem.

Simulation and Evaluation Methodology for ensuring your system performs to your requirements before going live. Implementers are encourage to conduct simulations and evaluate the system periodically, at least, once every year. Simulation and Evaluation Methodology for ensuring your system performs to your requirements before going live. Implementers are encourage to conduct simulations and evaluate the system periodically, at least, once every year. Simulation and Evaluation Methodology for ensuring your system performs to your requirements before going live. Implementers are encourage to conduct simulations and evaluate the system periodically, at least, once every year. Simulation and Evaluation Methodology for ensuring your system performs to your requirements before going live. Implementers are encourage to conduct simulations and evaluate the system periodically, at least, once every year. Simulation and Evaluation Methodology for ensuring your system performs to your requirements before going live. Implementers are encourage to conduct simulations and evaluate the system periodically, at least, once every year.

Note: See TracWiki for help on using the wiki.