User Tools

Site Tools


kb:audio-services

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kb:audio-services [2021/08/25 15:39] k1wizkb:audio-services [2023/12/01 17:31] (current) – Minor Edit kg6baj
Line 32: Line 32:
 At this point, your audio feed is ready to be live on HH as soon as HHOPS assigns your 7xxx number. At this point, your audio feed is ready to be live on HH as soon as HHOPS assigns your 7xxx number.
  
 +==== Periodic Audio Reboot Cron ====
 +
 +Some users have reported that from time-to-time their audio stream suddenly stops streaming for an unknown reason and the only way to get it to start again is to either reload the <font inherit/inherit;;#ffa500;inherit>fwconsole</font> or reboot their PBX.
 +
 +Users who experience this phenomenon can easily install a cron job to reload the <font inherit/inherit;;#ffa500;inherit>fwconsole</font> automatically on a timed basis.
 +
 +The procedure is to create a shell script called <fs 1.5em><font inherit/inherit;;#87cefa;inherit>reload.sh</font></fs> 
 +
 +Save this file in the <fs 1.5em><font inherit/inherit;;#87cefa;inherit>/root</font></fs> directory.
 +
 +Place the following code into the shell script file.
 +
 +<code>
 +#!/bin/bash
 +
 +export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin"
 +
 +fwconsole reload
 +</code>
 +
 +Now add a cron job schedule that will run however often you want the <font inherit/inherit;;#ffa500;inherit>fwconsole</font> to reload. For example, if you want to reload the <font inherit/inherit;;#ffa500;inherit>fwconsole</font> every morning at 2:30am on your PBX, then you would add the following to your cron job schedule:
 +
 +<code>
 +30  2  *  *  *  /root/reload.sh  >/dev/null 2>&1
 +</code>
 +
 +That will call up the script every day at 2:30 am on your PBX and cause the <font inherit/inherit;;#ffa500;inherit>fwconsole</font> to reload and restart any audio stream that might have stopped. 
 +
 +The last part of the cron command: <fs 1.5em><font inherit/inherit;;#87cefa;inherit> >/dev/null 2>&1</font></fs> tells linux to suppress any output to the screen or email system so you don't get notices every day that the script ran. If you do want those notices, then leave that last part off of your cron job.
  
kb/audio-services.txt · Last modified: 2023/12/01 17:31 by kg6baj