Mor retrieve peers

From Kolmisoft Wiki
Revision as of 11:03, 5 April 2014 by Ricardass (talk | contribs) (Created page with '== MOR Retrieve Peers == Script mor_retrieve_peers is responsible for updating device status, server_id and Asterisk version (shown in GUI). Every minute script is executed by c…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

MOR Retrieve Peers

Script mor_retrieve_peers is responsible for updating device status, server_id and Asterisk version (shown in GUI). Every minute script is executed by cron.

In case of proxy configuration, device status is updated by another script 'opensips_device_status'.

Useful information

How to upadate script

 svn update /usr/src/mor/ami
 /usr/src/mor/ami/install.sh

Where to check logs

 tail -n 50 /var/log/mor/ami_debug.log

How to execute script manually

 /usr/local/mor/mor_retrieve_peers

This will not generate output to console, only to log file.

Troubleshooting

GUI device status is not updating

  • 1. Execute script manually and check if device status is updated
  • 2. If not, then check log file (/var/log/mor/ami_debug.log). If you see messages like "Received an error from asterisk: unable to retrieve entire response from server", then Asterisk recompile should fix this issue.

Script mor_retrieve_peers is crashing

  • 1. Check if mor_retrieve_peers is most recent version
 svn update /usr/src/mor/ami

if mor_retrieve_peers.c file was updated, then it needs to be recompiled (see 'How to update script')

  • 2. Try to execute script manually
  • 3. If script is crashing when executed manually, use command ulimit -c unlimited to enabled core dumps and execute script again. Now when script is executed and crashes, core dump is created in /usr/local/mor or current working directory. Core dump is usually named 'core.xxxx'. You can debug core dumps with GDB gdb /usr/local/mor/mor_retrieve_peers core.xxxx. GDB should display a line where script crashed.
  • 4. Check /var/log/messages for anything related to "mor_retrieve_peers"
  • 5. Report this issue to support/developers