Update app_rpt?

Is it possible to update the app_rpt in ACID? When I dial the *82 it tells me the version is 0.174 and I'd like to have 0.183 or later for the cop,48 feature. If it's possible, how would I go about doing this?

Thanks,
Jeff

This might be what you're looking for:

http://app-rpt.qrvc.com/node/74

looks like in /root/acid there should be a script called astupd.sh

Jim, K6JWN

···

On Jul 30, 2009, at 10:13 AM, Eagle Link Customer Service wrote:

Is it possible to update the app_rpt in ACID? When I dial the *82 it tells
me the version is 0.174 and I'd like to have 0.183 or later for the cop,48
feature. If it's possible, how would I go about doing this?

Thanks,
Jeff

_______________________________________________
App_rpt-users mailing list
App_rpt-users@qrvc.com
http://qrvc.com/mailman/listinfo/app_rpt-users

I asked a question and then answered it myself, once again. Although there is no documentation in the Knowledge Base that I could find, if you click on Developers on app-rpt.qrvc.com it will help with updating the app-rpt module. For anyone else running ACID, here's the steps I tool.

/root/acid/astdn.sh (Make sure asterisk is stopped)
cd /usr/src/asterisk/apps
mv app_rpt.c app_rpt.c.original (or some other name, just back it up incase something goes wrong)
svn export svn://qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk/asterisk/apps/app_rpt.c
cd ..
make
make install
/root/acid/astup.sh (Start asterisk again)

Perhaps someone could put this into a script for updating. I would not know exactly how to do that because you would have to somehow make sure the "make" command went well bebfore doing "make install". That's beyond me right now.

Jeff

···

----- Original Message ----- From: "James Nessen" <nessenj@jimsoffice.org>
To: "Eagle Link Customer Service" <services@eaglelink.net>
Cc: <app_rpt-users@qrvc.com>
Sent: Thursday, July 30, 2009 1:33 PM
Subject: Re: [App_rpt-users] Update app_rpt?

This might be what you're looking for:

http://app-rpt.qrvc.com/node/74

looks like in /root/acid there should be a script called astupd.sh

Jim, K6JWN

On Jul 30, 2009, at 10:13 AM, Eagle Link Customer Service wrote:

Is it possible to update the app_rpt in ACID? When I dial the *82 it tells
me the version is 0.174 and I'd like to have 0.183 or later for the cop,48
feature. If it's possible, how would I go about doing this?

Thanks,
Jeff

_______________________________________________
App_rpt-users mailing list
App_rpt-users@qrvc.com
http://qrvc.com/mailman/listinfo/app_rpt-users

I love scripts, and I just so happened to be sitting here working on
my own, so good timing lol:

#!/bin/bash
# script to update to latest app_rpt.c file from SVN repository

# let's stop asterisk first
/root/acid/astdn.sh

cd /usr/src/asterisk/apps
mv app_rpt.c app_rpt.c.original
svn export
svn://qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk/asterisk/apps/app_rpt.c
cd ..

# let's compile and if it fails notify me
make
if [ $? -gt 0 ]
then
  echo "Failure: Unable to compile app_rpt.c!"
  exit 255
fi
make install

# restart asterisk
/root/acid/astup.sh

I don't have an ACID install to test this on (I use Debian), and this
was quick and dirty based on what you listed below, so if you try and
it breaks you get to keep both pieces :smiley:

On another note, I finally got around to updating my scripts for
installing app_rpt under Debian Lenny (it's been on my to do list
since Lenny was released, yea I know :P):

http://www.k1lnx.net/debapprpt.tar.gz

This will build a fully functioning app_rpt system from the latest SVN
sources at QRVC.

73
Stephen
K1LNX

···

--
**********************************
Stephen Brown - ARS K1LNX
Johnson City, TN EM86
http://www.k1lnx.net
google voice: 423-665-9367
**********************************

That worked great except that the "svn export" and the "svn://....." were supposed to be on the same line. maybe my e-mail or the mailing list seperated it because it was too long. Once I joined them together, I caught it before trying it, it worked exactly as it should. Thanks for the help, perhaps you could get this into ACID permanantly. Or at least posted on the app_rpt web site.

Thanks,
Jeff

···

----- Original Message ----- From: "Stephen - K1LNX" <k1lnx@k1lnx.net>
To: "Eagle Link Customer Service" <services@eaglelink.net>
Cc: "James Nessen" <nessenj@jimsoffice.org>; <app_rpt-users@qrvc.com>
Sent: Thursday, July 30, 2009 7:55 PM
Subject: Re: [App_rpt-users] Update app_rpt?

I love scripts, and I just so happened to be sitting here working on
my own, so good timing lol:

#!/bin/bash
# script to update to latest app_rpt.c file from SVN repository

# let's stop asterisk first
/root/acid/astdn.sh

cd /usr/src/asterisk/apps
mv app_rpt.c app_rpt.c.original
svn export
svn://qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk/asterisk/apps/app_rpt.c
cd ..

# let's compile and if it fails notify me
make
if [ $? -gt 0 ]
then
echo "Failure: Unable to compile app_rpt.c!"
exit 255
fi
make install

# restart asterisk
/root/acid/astup.sh

I don't have an ACID install to test this on (I use Debian), and this
was quick and dirty based on what you listed below, so if you try and
it breaks you get to keep both pieces :smiley:

On another note, I finally got around to updating my scripts for
installing app_rpt under Debian Lenny (it's been on my to do list
since Lenny was released, yea I know :P):

http://www.k1lnx.net/debapprpt.tar.gz

This will build a fully functioning app_rpt system from the latest SVN
sources at QRVC.

73
Stephen
K1LNX

--
**********************************
Stephen Brown - ARS K1LNX
Johnson City, TN EM86
http://www.k1lnx.net
google voice: 423-665-9367
**********************************

Here's a challenge for the people who know the programming. I'm trying to figure out how to make the repeater play a sound file when enableing or disableing things. Right now it just says the letters one at a time, like RPTENA or TOTENA/TOTDIS. I would like it to be able to play a custom sound file (if it exists) in the sounds/rpt directory. I tried playing around with the source code a bit to make this happen for the last 3 hours, but I failed. Surprisingly I didn't run into many errors compiling (I did fix the ones I got), but I just couldn't get it to play anything. Any ideas?

Jeff

Eagle Link Customer Service wrote:

Here's a challenge for the people who know the programming. I'm trying to
figure out how to make the repeater play a sound file when enableing or
disableing things. Right now it just says the letters one at a time, like
RPTENA or TOTENA/TOTDIS. I would like it to be able to play a custom sound
file (if it exists) in the sounds/rpt directory. I tried playing around
with the source code a bit to make this happen for the last 3 hours, but I
failed. Surprisingly I didn't run into many errors compiling (I did fix the
ones I got), but I just couldn't get it to play anything. Any ideas?

Jeff

_______________________________________________
App_rpt-users mailing list
App_rpt-users@qrvc.com
http://qrvc.com/mailman/listinfo/app_rpt-users

Suggestions:

The sayfile() function is your friend.

How to cleanly implement: Look for a file stem in
/var/lib/asterisk/sounds/rpt/cop with the same name as the COP neumonic
and play that file if it exists. (eg rptena.ulaw, rptdis.gsm, etc).
There is already a piece of code you could steal which does just this
when announcing node names called saynode() which could be copied and
modified to do the a similar sort of thing with cop neumonics. This
saycop() function would attempt to look up a substitute sound file
and play the neumonic if one isn't found.

If you get it working, I'd like to have a look at your code and if it is
cleanly done, merge it in to the source repository. There are not enough
programmers on this project to support all the ideas and things everyone
wants.

Steve
WA6ZFT