Connpgm / disconpgm use

Hi all!

I’ve been following some discussions on the IRLP list about node owners setting up their nodes to send node status updates to Twitter.

I was wondering if I could do something similar with my app_rpt node? Has anyone already done this?

I’m guessing I’ll need to use the connpgm and disconpgm entries in rpt.conf.

How do I deal with the arguments that get passed out with those commands? What are they called?

The IRLP script uses curl to send info to twitter, would this work with App_rpt too?

Sorry for the dumb noob questions!

Thanks,

Matt

G4RKY

OK well that was a deafening silence! I guess I am in uncharted territory here…

I have managed to get a “tweet” for connect and disconnect states of my node using curl so, so far so good.

What I dont know and cant seem to work out from the source code, is the names of the variables that are passed as arguments. I tried using $name and $them as I thought that might work but no luck.

If anyone can help identify the variables that are available for use by an external script, that would be fantastic, so thanks in advance.

app_rpt is clearly nothing like IRLP when it comes to variables and stuff…

73,

Matt

···

On 12 February 2010 14:30, Matt Beasant g4rky@yahoo.co.uk wrote:

Hi all!

I’ve been following some discussions on the IRLP list about node owners setting up their nodes to send node status updates to Twitter.

I was wondering if I could do something similar with my app_rpt node? Has anyone already done this?

I’m guessing I’ll need to use the connpgm and disconpgm entries in rpt.conf.

How do I deal with the arguments that get passed out with those commands? What are they called?

The IRLP script uses curl to send info to twitter, would this work with App_rpt too?

Sorry for the dumb noob questions!

Thanks,

Matt

G4RKY

The following Mantis issues are now resolved:

22 – LiTZ mode
40 – Cannot go into carrier squelch mode without commenting out the rxctcssfreqs and txctcssfreqs options.
41 – Archivedir recording feature only records node TX audio and not Rx audio
49 – Function class to execute a command or shell script via DTMF

This requires upgrade to current apps/app_rpt.c (version 0.211),
channels/chan_usbradio.c and main/dsp.c.

Sorry that I have been out of it for a while, but I have been having some
significant health problems and have been doing the best I possibly can.

P.S.

Does anyone have a test system running IRLP that is loaded with the latest ACID
distribution so that I can look at and resolve one of the bugs easily?? Thanks.

JIM WB6NIL

Sure Jim, you’re welcome to use my node - I have Echolink and IRLP running on 2250.

Only too happy to help.

( Is this the jumping audio level on IRLP issue? Cos I still get that one )

Email me off list and I’ll give you the SSH details.

Matt

G4RKY

···

On 15 February 2010 19:03, Jim Duuuude telesistant@hotmail.com wrote:

The following Mantis issues are now resolved:

22 – LiTZ mode
40 – Cannot go into carrier squelch mode without commenting out the rxctcssfreqs and txctcssfreqs options.
41 – Archivedir recording feature only records node TX audio and not Rx audio

49 – Function class to execute a command or shell script via DTMF

This requires upgrade to current apps/app_rpt.c (version 0.211),
channels/chan_usbradio.c and main/dsp.c.

Sorry that I have been out of it for a while, but I have been having some

significant health problems and have been doing the best I possibly can.

P.S.

Does anyone have a test system running IRLP that is loaded with the latest ACID
distribution so that I can look at and resolve one of the bugs easily?? Thanks.

JIM WB6NIL


App_rpt-users mailing list

App_rpt-users@qrvc.com

http://qrvc.com/mailman/listinfo/app_rpt-users

Hi Jim, thanks for the reply.

Sorry about the duff info, I was merely basing my assumption on the info in the example rpt.conf which states that there are 2 arguments passed to the connpgm / disconpgm :

connpgm=/etc/connectprog ; . Execute a program you specify on connect.

				; passes 2 command line arguments to your program:

I was wondering how to use these arguments so I can include them in my tweet…

···

On 15 February 2010 18:51, Jim Duuuude telesistant@hotmail.com wrote:

there are no variables from app_rpt itself other then the node number

I implemented a couple more today:

42 –
Add the ability to use a COP command to enable and disable receive CTCSS
48 – TX CTCSS only on valid input
54 –
nighly rsync updates aren’t running

This requires upgrade to current apps/app_rpt.c (version 0.213),
channels/chan_usbradio.c, channels/xpmr/xpmr.c and channels/xpmr/xpmr.h.

JIM WB6NIL

···

From: telesistant@hotmail.com
To: app_rpt-users@qrvc.com
Date: Mon, 15 Feb 2010 11:03:31 -0800
Subject: [App_rpt-users] New features / bug fixes

The following Mantis issues are now resolved:

22 – LiTZ mode
40 – Cannot go into carrier squelch mode without commenting out the rxctcssfreqs and txctcssfreqs options.
41 – Archivedir recording feature only records node TX audio and not Rx audio
49 – Function class to execute a command or shell script via DTMF

This requires upgrade to current apps/app_rpt.c (version 0.211),
channels/chan_usbradio.c and main/dsp.c.

Sorry that I have been out of it for a while, but I have been having some
significant health problems and have been doing the best I possibly can.

P.S.

Does anyone have a test system running IRLP that is loaded with the latest ACID
distribution so that I can look at and resolve one of the bugs easily?? Thanks.

JIM WB6NIL

Note, the lines without '#' are the ones that are typed into the Linux
prompt:

cd /usr/src
#or whatever directory has the 'asterisk' directory which contains
#the asterisk, zaptel and libri sources are.

mv asterisk asterisk.old
#this saves the old source tree as 'asterisk.old'

svn co svn://qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk
#this downloads the new source tree from SVN

mv trunk asterisk
#this renames the newly downloaded source tree as 'asterisk'

cd asterisk
cd zaptel
make install
cd ../libpri
make install
cd ../asterisk
./configure
make install
#Re-builds and installs the whole thing

JIM

···

Date: Wed, 17 Feb 2010 10:28:35 -0600
Subject: Re: [App_rpt-users] New features / bug fixes
From: bbrown@byrg.net
To: telesistant@hotmail.com

hey man

i have had my head in sand ... how do i update from ver .210 to .213?

i did the: astupd.sh
and it says i have latest..... (.210)

am i missing a proceedure here?
--
Thanks in Advance

Bob Brown, WØNQX

Kansas City Metro Area

http://sm0kenet.net

http://byrg.net

http://kcdstar.byrg.net

Quis custodiet ipsos custodes?

On Mon, Feb 15, 2010 at 21:37, Jim Duuuude <telesistant@hotmail.com> wrote:

I implemented a couple more today:

42 -- Add the ability to use a COP command to enable and disable receive CTCSS
48 -- TX CTCSS only on valid input
54 -- nighly rsync updates aren't running

This requires upgrade to current apps/app_rpt.c (version 0.213),
channels/chan_usbradio.c, channels/xpmr/xpmr.c and channels/xpmr/xpmr.h.

JIM WB6NIL

From: telesistant@hotmail.com
To: app_rpt-users@qrvc.com
Date: Mon, 15 Feb 2010 11:03:31 -0800

Subject: [App_rpt-users] New features / bug fixes

The following Mantis issues are now resolved:

22 -- LiTZ mode
40 -- Cannot go into carrier squelch mode without commenting out the rxctcssfreqs and txctcssfreqs options.
41 -- Archivedir recording feature only records node TX audio and not Rx audio

49 -- Function class to execute a command or shell script via DTMF

This requires upgrade to current apps/app_rpt.c (version 0.211),
channels/chan_usbradio.c and main/dsp.c.

Sorry that I have been out of it for a while, but I have been having some

significant health problems and have been doing the best I possibly can.

P.S.

Does anyone have a test system running IRLP that is loaded with the latest ACID
distribution so that I can look at and resolve one of the bugs easily?? Thanks.

JIM WB6NIL

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

I had an issue compiling zaptel with kernel 2.6.30 (gentoo). ztdummy wouldn’t compile.

Known issue and there is a patch available. I attached the patch which should probably

be merged into the tree. I was going to put it in mantis but didn’t see the proper spot.

ztdpatch (1.14 KB)

···


Don Russell, CBRE
Director of IT/Chief Operator - Maverick Media
W9DRR - ARRL OES, Technical Specialist
Winnebago County AEC
http://www.socialengineer.us

On Wed, Feb 17, 2010 at 10:59, Jim Duuuude telesistant@hotmail.com wrote:

Note, the lines without ‘#’ are the ones that are typed into the Linux

prompt:

cd /usr/src

#or whatever directory has the ‘asterisk’ directory which contains

#the asterisk, zaptel and libri sources are.

mv asterisk asterisk.old

#this saves the old source tree as ‘asterisk.old’

svn co svn://[qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk

#this](http://qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk
#this) downloads the new source tree from SVN

mv trunk asterisk

#this renames the newly downloaded source tree as ‘asterisk’

cd asterisk

cd zaptel

make install

cd …/libpri

make install

cd …/asterisk

./configure

make install

#Re-builds and installs the whole thing

JIM

Date: Wed, 17 Feb 2010 10:28:35 -0600

Subject: Re: [App_rpt-users] New features / bug fixes

From: bbrown@byrg.net

To: telesistant@hotmail.com

hey man

i have had my head in sand … how do i update from ver .210 to .213?

i did the: astupd.sh

and it says i have latest… (.210)

am i missing a proceedure here?

Thanks in Advance

Bob Brown, WØNQX

Kansas City Metro Area

http://sm0kenet.net

http://byrg.net

http://kcdstar.byrg.net

Quis custodiet ipsos custodes?

On Mon, Feb 15, 2010 at 21:37, Jim Duuuude telesistant@hotmail.com wrote:

I implemented a couple more today:

42 – Add the ability to use a COP command to enable and disable receive CTCSS

48 – TX CTCSS only on valid input

54 – nighly rsync updates aren’t running

This requires upgrade to current apps/app_rpt.c (version 0.213),

channels/chan_usbradio.c, channels/xpmr/xpmr.c and channels/xpmr/xpmr.h.

JIM WB6NIL

From: telesistant@hotmail.com

To: app_rpt-users@qrvc.com

Date: Mon, 15 Feb 2010 11:03:31 -0800

Subject: [App_rpt-users] New features / bug fixes

The following Mantis issues are now resolved:

22 – LiTZ mode

40 – Cannot go into carrier squelch mode without commenting out the rxctcssfreqs and txctcssfreqs options.

41 – Archivedir recording feature only records node TX audio and not Rx audio

49 – Function class to execute a command or shell script via DTMF

This requires upgrade to current apps/app_rpt.c (version 0.211),

channels/chan_usbradio.c and main/dsp.c.

Sorry that I have been out of it for a while, but I have been having some

significant health problems and have been doing the best I possibly can.

P.S.

Does anyone have a test system running IRLP that is loaded with the latest ACID

distribution so that I can look at and resolve one of the bugs easily?? Thanks.

JIM WB6NIL


App_rpt-users mailing list

App_rpt-users@qrvc.com

http://qrvc.com/mailman/listinfo/app_rpt-users


App_rpt-users mailing list

App_rpt-users@qrvc.com

http://qrvc.com/mailman/listinfo/app_rpt-users

Were there any updates to zaptel or libpri? I only saw a few config files and Asterisk files come down from SVN against my existing tree. As a result, I only rebuilt Asterisk. It’s working fine, so should I assume that to be the case?

Stephen
K1LNX

···

On Wed, Feb 17, 2010 at 11:59 AM, Jim Duuuude telesistant@hotmail.com wrote:

Note, the lines without ‘#’ are the ones that are typed into the Linux

prompt:

cd /usr/src

#or whatever directory has the ‘asterisk’ directory which contains

#the asterisk, zaptel and libri sources are.

mv asterisk asterisk.old

#this saves the old source tree as ‘asterisk.old’

svn co svn://[qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk

#this](http://qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk #this) downloads the new source tree from SVN

mv trunk asterisk

#this renames the newly downloaded source tree as ‘asterisk’

cd asterisk

cd zaptel

make install

cd …/libpri

make install

cd …/asterisk

./configure

make install

#Re-builds and installs the whole thing

JIM

Date: Wed, 17 Feb 2010 10:28:35 -0600

Subject: Re: [App_rpt-users] New features / bug fixes

From: bbrown@byrg.net

To: telesistant@hotmail.com

hey man

i have had my head in sand … how do i update from ver .210 to .213?

i did the: astupd.sh

and it says i have latest… (.210)

am i missing a proceedure here?

Thanks in Advance

Bob Brown, WØNQX

Kansas City Metro Area

http://sm0kenet.net

http://byrg.net

http://kcdstar.byrg.net

Quis custodiet ipsos custodes?

On Mon, Feb 15, 2010 at 21:37, Jim Duuuude telesistant@hotmail.com wrote:

I implemented a couple more today:

42 – Add the ability to use a COP command to enable and disable receive CTCSS

48 – TX CTCSS only on valid input

54 – nighly rsync updates aren’t running

This requires upgrade to current apps/app_rpt.c (version 0.213),

channels/chan_usbradio.c, channels/xpmr/xpmr.c and channels/xpmr/xpmr.h.

JIM WB6NIL

From: telesistant@hotmail.com

To: app_rpt-users@qrvc.com

Date: Mon, 15 Feb 2010 11:03:31 -0800

Subject: [App_rpt-users] New features / bug fixes

The following Mantis issues are now resolved:

22 – LiTZ mode

40 – Cannot go into carrier squelch mode without commenting out the rxctcssfreqs and txctcssfreqs options.

41 – Archivedir recording feature only records node TX audio and not Rx audio

49 – Function class to execute a command or shell script via DTMF

This requires upgrade to current apps/app_rpt.c (version 0.211),

channels/chan_usbradio.c and main/dsp.c.

Sorry that I have been out of it for a while, but I have been having some

significant health problems and have been doing the best I possibly can.

P.S.

Does anyone have a test system running IRLP that is loaded with the latest ACID

distribution so that I can look at and resolve one of the bugs easily?? Thanks.

JIM WB6NIL


App_rpt-users mailing list

App_rpt-users@qrvc.com

http://qrvc.com/mailman/listinfo/app_rpt-users


App_rpt-users mailing list

App_rpt-users@qrvc.com

http://qrvc.com/mailman/listinfo/app_rpt-users


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

sip: sbrown@voip.stephennet.net


Is this essentially the same things as

astupd.sh

for those with the standard “ACID” installation?

Ken Jamrogowicz

···

On Wed, Feb 17, 2010 at 11:59 AM, Jim Duuuude telesistant@hotmail.com wrote:

Note, the lines without ‘#’ are the ones that are typed into the Linux

prompt:

cd /usr/src

#or whatever directory has the ‘asterisk’ directory which contains

#the asterisk, zaptel and libri sources are.

mv asterisk asterisk.old

#this saves the old source tree as ‘asterisk.old’

svn co svn://[qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk

#this](http://qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk #this) downloads the new source tree from SVN

mv trunk asterisk

#this renames the newly downloaded source tree as ‘asterisk’

cd asterisk

cd zaptel

make install

cd …/libpri

make install

cd …/asterisk

./configure

make install

#Re-builds and installs the whole thing

JIM

Ken wrote:

Is this essentially the same things as
?
astupd.sh

for those with the standard "ACID" installation?
?
Ken Jamrogowicz

Note, the lines without '#' are the ones that are typed into the Linux
prompt:

cd /usr/src
#or whatever directory has the 'asterisk' directory which contains
#the asterisk, zaptel and libri sources are.

mv asterisk asterisk.old
#this saves the old source tree as 'asterisk.old'

svn co svn://qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk
#this downloads the new source tree from SVN

mv trunk asterisk
#this renames the newly downloaded source tree as 'asterisk'

cd asterisk
cd zaptel
make install
cd ../libpri
make install
cd ../asterisk
./configure
make install
#Re-builds and installs the whole thing

JIM

------------------------------------------------------------------------

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

The changes are in the source tree. but not in the ACID tarball yet.

The astupd script will probably be removed in future releases as it really doesn't accomplish
what I hoped it would do. Any changes to ACID scripts force a version change of ACID and this prevents
astupd from downloading future code updates. Code updates should be done per the instructions on
app_rpt.qrvc.com in the developers section, or using Jim Dixon's method in a prior post.

Steve
WA6ZFT

···

On Wed, Feb 17, 2010 at 11:59 AM, Jim Duuuude &lt;telesistant@hotmail.com&gt; wrote: