<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Matt Beasant</b> <span dir="ltr"><<a href="mailto:g4rky@yahoo.co.uk">g4rky@yahoo.co.uk</a>></span><br>Date: 2009/3/30<br>
Subject: Re: [App_rpt-users] Replacing an IRLP node with App-rpt node<br>To: "Ramesh Dhami (VA3UV)" <<a href="mailto:Ramesh@va3uv.com">Ramesh@va3uv.com</a>><br>Cc: App_Rpt Mailing List <<a href="mailto:App-rpt@qrvc.com">App-rpt@qrvc.com</a>><br>
<br><br>Hi there Ramesh and thanks for the reply.<div><br></div><div>Yes, been a bit busy here - the financial year ends here on 5th April and so its panic time to try and get all the sites on the air!</div><div><br></div>
<div>Thanks for all the info in your email - I'm still a little unsure of a couple of things so please bear with me ....</div>
<div><br></div><div>I can edit the crontab as you suggest but how do I control App_rpt from the crontab? What do I put as the command line to make Asterisk play out the file? I assume I have to use root's crontab?</div>
<div><br></div><div>In your dialplan example, I see the extension referred to is 96 - is that the DTMF code I dial to activate that script or do I need to put something in rpt.conf to call to the dialplan?</div><div><br>
</div>
<div>You say you can call the playback command from the cron and / or the dialplan - how does one do this and what DTMF code or other trigger can be used to call the playback command?</div><div><br></div><div>Thanks again for your help Ramesh and sorry for the (still) noob questions! Still trying to get my head around how app_rpt and Asterisk stitch together!</div>
<div><br></div><div>Cheers and hope to speak soon.</div><div><br></div><div>Matt</div><div>G4RKY</div><div><br><div class="gmail_quote">2009/3/30 Ramesh Dhami (VA3UV) <span dir="ltr"><<a href="mailto:Ramesh@va3uv.com" target="_blank">Ramesh@va3uv.com</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Matt;<br>
<br>
Haven't heard from you in a while! - see my response below...<br>
<br>
Cheers,<br>
<br>
Ramesh.<br>
<div><br>
Matt Beasant wrote:<br>
<br>
> 1, I had a script that unlocked the controller at a set time every day<br>
> and set the time using DTMF - now I know that ap-rpt cant generate DTMF<br>
> (yet) but I could use WAV files as the digits will always be the same<br>
> and the time the script gets called will always be the same.<br>
><br>
> So my first question is, how do you call an external shell script from<br>
> within app_rpt? Perhaps from the scheduler available in rpt.conf or some<br>
> other method of calling a script at a set time, maybe from a cron<br>
> somewhere?<br>
<br>
</div><-- You can simply add a cron entry into root's crons (crontab -e will<br>
get you into edit mode, add a new cron entry, which you can then play<br>
out your pre-recorded DTMF file; note that the file must be a ulaw file.<br>
This is probably the easiest method. I have used this to play out an<br>
ID announcement - very simple and effective.<br>
<br>
FYI, you can also call a script from the dialplan as follows:<br>
<br>
exten => 96,n,System(/scripts/name_of_script)<br>
<br>
[Credit to Don, W9DRR for showing me this some time back]. This example<br>
requires your script to be in the /etc/asterisk/scripts folder - but you<br>
can specify any path as appropriate.<br>
<div><br>
<br>
> 2, I used to have the popular "playnews" package running on the IRLP<br>
> node, which downloaded certain news files and played them out<br>
> at pre-set time. I use these scripts to play out the GB2RS news files<br>
> through my repeater every week.<br>
><br>
> I have tried to replicate how this was done on the IRLP node but am<br>
> having difficulty automating this process. I have used the Asterisk<br>
> command line invoked "playback" command which works but I'm not happy<br>
> with the audio quality and I had to manually trigger the playback from<br>
> the CLI.<br>
<br>
</div><-- As above, the file needs to be in ulaw format... not sure what<br>
format you're using. I use Cepstral to build a ulaw audio file from a<br>
WX text file, then play the ulaw file from the dialplan, the audio<br>
quality is great!<br>
<br>
You could try using sox to convert your (possibly) non-ulaw file to ulaw.<br>
<div><br>
><br>
> So next I tried the WAVPLAY program that seems to be used to play out<br>
> IRLP node announcements and the quality was great but I kept getting<br>
> node timeouts from the IRLP software ( I guess ) as my APP-RPT node has<br>
> no timeout.<br>
<br>
</div><-- Sounds like the file is indeed a wav file - try using sox to convert<br>
it to a ulaw file and try using rpt's localplay function. FYI, man sox<br>
will provide you with the info on sox.<br>
<br>
<br>
<br>
_______________________________________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@qrvc.com" target="_blank">App_rpt-users@qrvc.com</a><br>
<a href="http://qrvc.com/mailman/listinfo/app_rpt-users" target="_blank">http://qrvc.com/mailman/listinfo/app_rpt-users</a><br>
</blockquote></div></div></div><br></div>
</div><br>