[arm-allstar] Courtesy tones

LaRoy McCann lmccann at dtisp.com
Thu Jan 21 09:47:22 EST 2016


Neil,

It doesn't quite work that way.  The CT values are only read from 
rpt.conf when app_rpt.c is loaded.
While these values are stored in ram somewhere, you can not simply 
access them from from the shell.

What you can do is access shell environment variables from the C 
programming language, but the program has to be written specifically to 
do that.. There is a C function called *getenv()* that will allow a 
program to access the environment variables. App_rpt.c would have to be 
modified to go out and read these environment variables.

The shell script could then change the value of the environment variables.

LaRoy McCann, K5TW

On 1/20/2016 5:05 PM, Neil k8it wrote:
> When rpt.conf loads I am guessing that some format of each courtesy 
> tone is stored in ram for each time it is needed. Is this correct or 
> does asterisk recreate each ct each time. Either way, I would think a 
> bash script could access the pointer to the CT or even change the 
> definition.
> Of course we would need a bash script example.
> Possible uses could be GPIO  status like emergency power or over temp 
> warnings....
> Thanks
> 73 Neil Sablatzky  K8IT
> Allstar Node 41838 KITLINK
> Allstar Node 42087 KITLINK HUB
> IRLP Node exp0068
> Echolink K8IT-L
> WIRES-X K8IT 11479 Room 21479
>
> *From:* Doug Crompton <mailto:doug at crompton.com>
> *Sent:* Wednesday, January 20, 2016 5:31 PM
> *To:* ARM Allstar <mailto:arm-allstar at hamvoip.org>
> *Subject:* Re: [arm-allstar] Courtesy tones
>
> LaRoy,
>
>   On what event do you want to change it? Why do you want to do it? Do 
> you just want to change it with a DTMF sequence?
>
> I don't know of any simple way. Perhaps others do? If so I would add 
> it to the how-to.
>
> The only way I know of is changing the file and reloading which as you 
> said is not very elegant.
>
> *73 Doug
> WA3DSP
> http://www.crompton.com/hamradio*
>
>
> ------------------------------------------------------------------------
> To: arm-allstar at hamvoip.org
> From: lmccann at dtisp.com
> Date: Wed, 20 Jan 2016 15:29:57 -0600
> Subject: Re: [arm-allstar] Courtesy tones
>
> Is there any way to dynamically change the courtesy tones?
> Maybe thru the event management subsystem?
>
> Or is the only way to read the definitions from rpt.conf?
> I know I could always use a script to edit rpt.conf and then reload, 
> but was just hoping of some other way to do it.
>
> LaRoy McCann, K5TW
>
>
>
> On 1/20/2016 11:41 AM, LaRoy McCann wrote:
>
>     Doug,
>
>     */remotetx/*  That was what I was looking for.
>
>     Thanks
>
>     LaRoy McCann, K5TW
>
>     On 1/20/2016 11:29 AM, Doug Crompton wrote:
>
>         LaRoy,
>
>           linkunkeyct  when connected and someone on the network
>         unkeys.  But your local radio unkey is set by the remotetx
>         tone group in the telemetry stanza.
>
>         So if you change linkunkeyct you would not hear the change
>         unless someone else on the connected network unkeys. You could
>         test this by connecting two locals nodes together.  That is
>         why I mentioned it is confusing because you expect it to
>         change when you are connected and unkey and it doesn't. Also
>         always remember to 'reload rpt' in the client after a change.
>
>         *73 Doug
>         WA3DSP
>         http://www.crompton.com/hamradio*
>
>
>         ------------------------------------------------------------------------
>         To: arm-allstar at hamvoip.org <mailto:arm-allstar at hamvoip.org>
>         From: lmccann at dtisp.com <mailto:lmccann at dtisp.com>
>         Date: Wed, 20 Jan 2016 10:47:58 -0600
>         Subject: [arm-allstar] Courtesy tones
>
>         Ok, I've been racking my brain trying to figure this out.
>
>         The courtesy tone on a single node when a users unkeys is
>         */unlinkedct/*.
>
>         The courtesy tone changes when this node connects to another
>         node via the internet.
>         What courtesy tone variable is used when the local user unkeys
>         and the two nodes are linked together?
>
>
>         LaRoy McCann, K5TW
>         <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>         	This email has been sent from a virus-free computer protected
>         by Avast.
>         www.avast.com
>         <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>
>
>
>         _______________________________________________ arm-allstar
>         mailing list arm-allstar at hamvoip.org
>         <mailto:arm-allstar at hamvoip.org>
>         http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>         Visit the BBB and RPi2 web page - http://hamvoip.org
>
>         -- 
>         This message has been scanned for viruses and
>         dangerous content by the *DTISP MailScanner*
>         <http://www.dtisp.com/>, and is
>         believed to be clean.
>
>
>         _______________________________________________
>
>         arm-allstar mailing list
>         arm-allstar at hamvoip.org <mailto:arm-allstar at hamvoip.org>
>         http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
>         Visit the BBB and RPi2 web page -http://hamvoip.org
>
>
>     <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>     	This email has been sent from a virus-free computer protected by
>     Avast.
>     www.avast.com
>     <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>
>
>
>     -- 
>     This message has been scanned for viruses and
>     dangerous content by the *DTISP MailScanner*
>     <http://www.dtisp.com/>, and is
>     believed to be clean.
>
>
>     _______________________________________________
>
>     arm-allstar mailing list
>     arm-allstar at hamvoip.org <mailto:arm-allstar at hamvoip.org>
>     http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
>     Visit the BBB and RPi2 web page -http://hamvoip.org
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> 
> 	This email has been sent from a virus-free computer protected by Avast.
> www.avast.com 
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> 
>
>
>
> _______________________________________________ arm-allstar mailing 
> list arm-allstar at hamvoip.org 
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar Visit 
> the BBB and RPi2 web page - http://hamvoip.org
>
> ------------------------------------------------------------------------
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2 web page - http://hamvoip.org
> -- 
> This message has been scanned for viruses and
> dangerous content by the *DTISP MailScanner* <http://www.dtisp.com/>, 
> and is
> believed to be clean.
>
>
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2 web page - http://hamvoip.org



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20160121/974f7fb7/attachment.html>


More information about the arm-allstar mailing list