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
Last revisionBoth sides next revision
kb:audio-services [2021/08/25 15:38] k1wizkb:audio-services [2022/07/08 14:51] – Minor Edit kg6baj
Line 30: Line 30:
 In the above example, you would use your own stream URL. Once entered, leave "Optional Format" clear and click SAVE. Now go create your call queue, set the new MOH class you just defined, and then create an INBOUND route to send matched calls from your 7xxx number to go straight to your new queue. In the above example, you would use your own stream URL. Once entered, leave "Optional Format" clear and click SAVE. Now go create your call queue, set the new MOH class you just defined, and then create an INBOUND route to send matched calls from your 7xxx number to go straight to your new queue.
  
-At this point, your audio feed is ready to be live on HH.+At this point, your audio feed is ready to be live on HH as soon as HHOPS assigns your 7xxx number.
  
-==== Instructions for the HHOPS Team ====+==== Periodic Audio Reboot Cron ====
  
-To create an audio services assignment, we don't actually create a full blown extension. All that is necessary is to ensure that the requester has done the above steps and then "route" the call to their 7xxx assignment to their existing PBX on the networkYou should not be creating new full-blown extensions as this is unnecessary and wasteful of resources. Follow these steps to create a new 7XXX assignment:+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.
  
-  * Logon to the HH peer that the requester is already provisioned on. +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
-  * Go to the "extensions" module + 
-  * Click "Add Extension" then "Add IAX2 Extension" +The procedure is to create a shell script called <html><font size=4.5em; color=#87cefa>reload.sh</font></html>  
-  * Fill out the form with the new 7XXX number and at the bottom, make sure "Link to a default user" is set to NONE+ 
-  * Click the "Advanced" tab +Save this file in the <html><font size=4.5em; color=#87cefa>/root</font></html> directory. 
-  * scroll down to DIAL and enter the dial string (like we do for RF Links) like this+ 
 +Place the following code into the shell script file.
  
 <code> <code>
-IAX2/my.pbx.hostname.net/7xxx+#!/bin/bash
  
 +export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin"
 +
 +fwconsole reload
 </code> </code>
  
-(where the 7xxx number is the actual assigned number)+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>&
 +</code>
  
-  * Click SAVE +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
-  * Respond to the ticket and let the user know the assignment is provisioned. IT IS NOT NECESSARY TO SEND THEM THE ASSIGNMENT PASSWORD as they will only route the calls. Their existing connection to HH is all they need, in addition to the inbound route on their PBX.+
  
 +The last part of the cron command: <html><font size=4.5em; color=#87cefa>>/dev/null 2>&1</font></html> 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