From hwstar at rodgers.sdcoxmail.com Sun Mar 29 18:27:22 2009 From: hwstar at rodgers.sdcoxmail.com (Stephen Rodgers) Date: Sun, 29 Mar 2009 11:27:22 -0700 Subject: [App_rpt-users] First post Message-ID: <49CFBD8A.5000200@rodgers.sdcoxmail.com> This is the first post From g4rky at yahoo.co.uk Sun Mar 29 22:19:02 2009 From: g4rky at yahoo.co.uk (Matt Beasant) Date: Sun, 29 Mar 2009 23:19:02 +0100 Subject: [App_rpt-users] Replacing an IRLP node with App-rpt node Message-ID: HI all and welcome to the new list! Thanks to those involved in setting it all up. My App-rpt node has replaced an IRLP node and is working great, but I used to have certain facilities on the IRLP node that I am attempting to replicate on my app-rpt node and I'm struggling! 1, I had a script that unlocked the controller at a set time every day and set the time using DTMF - now I know that ap-rpt cant generate DTMF (yet) but I could use WAV files as the digits will always be the same and the time the script gets called will always be the same. So my first question is, how do you call an external shell script from within app_rpt? Perhaps from the scheduler available in rpt.conf or some other method of calling a script at a set time, maybe from a cron somewhere? Can it be done in the dialplan by dialling a specific extension or some other cunning means? 2, I used to have the popular "playnews" package running on the IRLP node, which downloaded certain news files and played them out at pre-set time. I use these scripts to play out the GB2RS news files through my repeater every week. I have tried to replicate how this was done on the IRLP node but am having difficulty automating this process. I have used the Asterisk command line invoked "playback" command which works but I'm not happy with the audio quality and I had to manually trigger the playback from the CLI. So next I tried the WAVPLAY program that seems to be used to play out IRLP node announcements and the quality was great but I kept getting node timeouts from the IRLP software ( I guess ) as my APP-RPT node has no timeout. I thought about mpg123 as used in the IRLP playnews scripts but cannot find a way of keying up the repeater - I'm not sure if the audio from mpg123 would come out of the USB radio interface! Any ideas, suggestions or solutions would be most gratefully received as I have currently run out of talent!! Thanks, Matt G4RKY Node 2250 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ramesh at va3uv.com Mon Mar 30 12:33:44 2009 From: Ramesh at va3uv.com (Ramesh Dhami (VA3UV)) Date: Mon, 30 Mar 2009 08:33:44 -0400 Subject: [App_rpt-users] Replacing an IRLP node with App-rpt node In-Reply-To: References: Message-ID: <49D0BC28.8030704@va3uv.com> Hi Matt; Haven't heard from you in a while! - see my response below... Cheers, Ramesh. Matt Beasant wrote: > 1, I had a script that unlocked the controller at a set time every day > and set the time using DTMF - now I know that ap-rpt cant generate DTMF > (yet) but I could use WAV files as the digits will always be the same > and the time the script gets called will always be the same. > > So my first question is, how do you call an external shell script from > within app_rpt? Perhaps from the scheduler available in rpt.conf or some > other method of calling a script at a set time, maybe from a cron > somewhere? <-- You can simply add a cron entry into root's crons (crontab -e will get you into edit mode, add a new cron entry, which you can then play out your pre-recorded DTMF file; note that the file must be a ulaw file. This is probably the easiest method. I have used this to play out an ID announcement - very simple and effective. FYI, you can also call a script from the dialplan as follows: exten => 96,n,System(/scripts/name_of_script) [Credit to Don, W9DRR for showing me this some time back]. This example requires your script to be in the /etc/asterisk/scripts folder - but you can specify any path as appropriate. > 2, I used to have the popular "playnews" package running on the IRLP > node, which downloaded certain news files and played them out > at pre-set time. I use these scripts to play out the GB2RS news files > through my repeater every week. > > I have tried to replicate how this was done on the IRLP node but am > having difficulty automating this process. I have used the Asterisk > command line invoked "playback" command which works but I'm not happy > with the audio quality and I had to manually trigger the playback from > the CLI. <-- As above, the file needs to be in ulaw format... not sure what format you're using. I use Cepstral to build a ulaw audio file from a WX text file, then play the ulaw file from the dialplan, the audio quality is great! You could try using sox to convert your (possibly) non-ulaw file to ulaw. > > So next I tried the WAVPLAY program that seems to be used to play out > IRLP node announcements and the quality was great but I kept getting > node timeouts from the IRLP software ( I guess ) as my APP-RPT node has > no timeout. <-- Sounds like the file is indeed a wav file - try using sox to convert it to a ulaw file and try using rpt's localplay function. FYI, man sox will provide you with the info on sox. From w7aor at narri.org Mon Mar 30 18:05:12 2009 From: w7aor at narri.org (W7AOR Kent) Date: Mon, 30 Mar 2009 11:05:12 -0700 Subject: [App_rpt-users] test Message-ID: <003e01c9b162$121aafe0$36500fa0$@org> test -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: multipart/alternative Size: 1 bytes Desc: not available URL: -------------- next part -------------- No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.11.32/2030 - Release Date: 03/30/09 08:40:00 From hwstar at rodgers.sdcoxmail.com Mon Mar 30 19:43:17 2009 From: hwstar at rodgers.sdcoxmail.com (hwstar at rodgers.sdcoxmail.com) Date: Mon, 30 Mar 2009 12:43:17 -0700 Subject: [App_rpt-users] test Message-ID: <20090330194317.UZXA6352.dukecmfep06.coxmail.com@dukecmimpo03.coxmail.com> It works! Steve WA6ZFT > > From: "W7AOR Kent" > Date: 2009/03/30 Mon AM 11:05:12 PDT > To: > Subject: [App_rpt-users] test > > test > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: multipart/alternative Size: 2 bytes Desc: not available URL: -------------- next part -------------- No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.11.32/2030 - Release Date: 03/30/09 08:40:00 -------------- next part -------------- _______________________________________________ App_rpt-users mailing list App_rpt-users at qrvc.com http://qrvc.com/mailman/listinfo/app_rpt-users -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: reply URL: From g4rky at yahoo.co.uk Mon Mar 30 21:43:14 2009 From: g4rky at yahoo.co.uk (Matt Beasant) Date: Mon, 30 Mar 2009 22:43:14 +0100 Subject: [App_rpt-users] Fwd: Replacing an IRLP node with App-rpt node In-Reply-To: References: <49D0BC28.8030704@va3uv.com> Message-ID: ---------- Forwarded message ---------- From: Matt Beasant Date: 2009/3/30 Subject: Re: [App_rpt-users] Replacing an IRLP node with App-rpt node To: "Ramesh Dhami (VA3UV)" Cc: App_Rpt Mailing List Hi there Ramesh and thanks for the reply. 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! Thanks for all the info in your email - I'm still a little unsure of a couple of things so please bear with me .... 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? 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? 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? 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! Cheers and hope to speak soon. Matt G4RKY 2009/3/30 Ramesh Dhami (VA3UV) Hi Matt; > > Haven't heard from you in a while! - see my response below... > > Cheers, > > Ramesh. > > Matt Beasant wrote: > > > 1, I had a script that unlocked the controller at a set time every day > > and set the time using DTMF - now I know that ap-rpt cant generate DTMF > > (yet) but I could use WAV files as the digits will always be the same > > and the time the script gets called will always be the same. > > > > So my first question is, how do you call an external shell script from > > within app_rpt? Perhaps from the scheduler available in rpt.conf or some > > other method of calling a script at a set time, maybe from a cron > > somewhere? > > <-- You can simply add a cron entry into root's crons (crontab -e will > get you into edit mode, add a new cron entry, which you can then play > out your pre-recorded DTMF file; note that the file must be a ulaw file. > This is probably the easiest method. I have used this to play out an > ID announcement - very simple and effective. > > FYI, you can also call a script from the dialplan as follows: > > exten => 96,n,System(/scripts/name_of_script) > > [Credit to Don, W9DRR for showing me this some time back]. This example > requires your script to be in the /etc/asterisk/scripts folder - but you > can specify any path as appropriate. > > > > 2, I used to have the popular "playnews" package running on the IRLP > > node, which downloaded certain news files and played them out > > at pre-set time. I use these scripts to play out the GB2RS news files > > through my repeater every week. > > > > I have tried to replicate how this was done on the IRLP node but am > > having difficulty automating this process. I have used the Asterisk > > command line invoked "playback" command which works but I'm not happy > > with the audio quality and I had to manually trigger the playback from > > the CLI. > > <-- As above, the file needs to be in ulaw format... not sure what > format you're using. I use Cepstral to build a ulaw audio file from a > WX text file, then play the ulaw file from the dialplan, the audio > quality is great! > > You could try using sox to convert your (possibly) non-ulaw file to ulaw. > > > > > So next I tried the WAVPLAY program that seems to be used to play out > > IRLP node announcements and the quality was great but I kept getting > > node timeouts from the IRLP software ( I guess ) as my APP-RPT node has > > no timeout. > > <-- Sounds like the file is indeed a wav file - try using sox to convert > it to a ulaw file and try using rpt's localplay function. FYI, man sox > will provide you with the info on sox. > > > > _______________________________________________ > App_rpt-users mailing list > App_rpt-users at qrvc.com > http://qrvc.com/mailman/listinfo/app_rpt-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ramesh at va3uv.com Tue Mar 31 00:32:09 2009 From: Ramesh at va3uv.com (Ramesh Dhami (VA3UV)) Date: Mon, 30 Mar 2009 20:32:09 -0400 Subject: [App_rpt-users] Replacing an IRLP node with App-rpt node] Message-ID: <49D16489.20406@va3uv.com> Matt Beasant wrote: > Hi there Ramesh and thanks for the reply. > > 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! <-- No worries, our FY ends tomorrow (March 31st!). > > Thanks for all the info in your email - I'm still a little unsure of a > couple of things so please bear with me .... > > 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? <-- Yes, root's crontab; here's an example of how I played out my ID file at 15 and 45 mins past the hour: 15,45 * * * * /usr/sbin/asterisk -rx "rpt localplay 2182 /path/file_name" Note (once again) file must be in .ulaw format > > 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? <-- Sorry, I think I slipped up earlier, just add (for example) the following to rpt.conf - in the functions stanza: 96=localplay,rpt/current_wx (Note that in the above example, my current_wx file is located in /var/lib/asterisk/sounds/rpt/) - you can obviously specify your own path to suit. > > 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? <-- See above... > > 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! <-- No problem Matt; I'm just passing on some stuff that I've acquired from the guys here who have been willing to share and mentor... so I'm giving something back ;).