[arm-allstar] node callsign script

Doug Crompton wa3dsp at gmail.com
Tue Dec 24 14:54:27 EST 2019


Also be aware that duplex=0 does mute localplay!!!  So this method would
not work with duplex=0.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*

On Tue, Dec 24, 2019 at 2:01 PM Doug Crompton <wa3dsp at gmail.com> wrote:

> BE CAUTIOUS about changing the connpgm or dispgm program statements. They
> are used for logging when running Supermon. While these commands would be
> about the best bet for initiating sounds at connect and disconnect if you
> are using Supermon you will have to call an external script that in turn
> calls Supermon logging as well as the sound you want to create.
>
> Here is an example of how to do it. In the node definitions for the node
> you want to control....
>
> In rpt.conf  - turn off connect/disconnet telemetry -   telemdefault=0
>
> connpgm=/etc/asterisk/local/connect_script.sh
> dispgm=/etc/asterisk/local/disconnect_script.sh
>
> reload rpt or restart asterisk
>
> Create these two scripts in /etc/asterisk/local
>
> #!/bin/bash
> # This script called at connect of any node
> # named connect_script.sh
>
> #  Uncomment (remove #) the following line if you are using Supermon
> # Tell smlogger there is a connect
> # /usr/local/sbin/supermon/smlogger 1
>
> # Say double beep
> /usr/bin/asterisk -rx "rpt localplay $NODE1 var/lib/asterisk/sounds/beep
> sleep .5
> /usr/bin/asterisk -rx "rpt localplay $NODE1 var/lib/asterisk/sounds/beep
> # Do anything else you want at connect here
> # END SCRIPT
>
> #!/bin/bash
> # This script called at disconnect of any node
> # named disconnect_cript.sh
>
> #  Uncomment (remove #) the following line if you are using Supermon
> # Tell smlogger there is a disconnect
> # /usr/local/sbin/supermon/smlogger 0
>
> # Say single beep
> /usr/bin/asterisk -rx "rpt localplay $NODE1 var/lib/asterisk/sounds/beep
> # Do anything else you want to do at disconnect here
> # END SCRIPT
>
> Make these scripts executable -     chmod 755 connect_script.sh   and
> chmod 755 disconnect_script.sh
>
> These are examples that should work. You can modify to your liking. You
> don't have to use beeps. You can formulate anything you want in the
> localplay statements. NEVER use playback or send anything out globally on a
> public network. These use the environment variable $NODE1 (The first
> defined node) to say the message. If you want to go to a different node on
> the same server you need to change to the correct node number.
>
>
> *73 Doug*
>
> *WA3DSP*
>
> *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
>
>
> On Tue, Dec 24, 2019 at 6:58 AM "Patrick Perdue via ARM-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
>> Look for a line in your /etc/asterisk/rpt.conf under your node's stanza
>> starting with "connpgm=" and see if he did anything interesting there.
>> The functcomplete will only work with telemdefault=1 or telemdefault=2,
>> so you can only have that work with other telemetry going on with it.
>> However, the localplay and playback commands will still work even if
>> telemdefault is set to 0, so I'm sure that if something is defined in
>> those two sections to play a sound or tone sequence, it should still
>> work regardless of the telemetry setting. No, I don't know how to access
>> the Asterisk tone generator from there, or even if it's possible, so I
>> could be entirely off-base.
>>
>>
>>
>>
>>
>> On 12/24/2019 5:57 AM, "Jed Barton via ARM-allstar" wrote:
>> > So, in my case, my clear node does this, and it's awesome.  When i
>> > connect to any node, it just does a quick double beep to let you know
>> > it's connected.  Then it does another set of beeps when it is
>> > disconnected.  This is exactly what i'm looking to do, but not exactly
>> > sure how he did it.
>> > It's perfect cause you atleast have some indication that you made a
>> > connection, instead of Alison spilling her guts all over your repeater
>> > system, and spelling everything out.
>> > Any thoughts?
>> >
>> > On 12/24/19, "Patrick Perdue via ARM-allstar" <arm-allstar at hamvoip.org>
>> wrote:
>> >> My first comment is that a lot of this would be better with a faster
>> >> voice than Allison. I'm working on this. I've generated a few voice
>> >> packs, just need to get them in an easily distributed format. That's a
>> >> job for when I get back home in a couple of weeks.
>> >>
>> >> Secondly, I would personally have all messages like that disabled in a
>> >> repeater situation, but you could possibly do what you are looking for
>> >> re beeps. Note that I haven't tested this, and what I am about to write
>> >> could be completely misleading and totally inaccurate. People who know
>> >> more about this, feel free to correct as necessary. And, also, there
>> are
>> >> probably better ways of doing this even if it does work, such as
>> >> invoking Asterisk's tone generator, which I don't know how to do in
>> this
>> >> context, or perhaps a way to invoke this function without going outside
>> >> of Asterisk and back in again, but it's an idea, anyway.
>> >>
>> >> In rpt.conf, With telemdefault set to 2 (or possibly 0, not sure about
>> >> this,) add this to the stanza for your node.
>> >>
>> >> connpgm=/usr/bin/asterisk -rx "rpt localplay <Your_Node_Number>
>> >> /etc/asterisk/local/connect_sound"
>> >>
>> >> disconpgm=/usr/bin/asterisk -rx "rpt localplay <Your_Node_Number>
>> >> /etc/asterisk/local/disconnect_sound"
>> >>
>> >> and generate appropriately formatted (ULAW) files for Asterisk to play
>> >> when a node connects or disconnects from your node. You can create
>> >> sounds with any audio editor/tone generator, save as mono wav, then
>> >> convert using the convert_audio.sh script on hamvoip. Theoretically,
>> the
>> >> sampling rate won't matter too much, as SoX takes care of all that in
>> >> the conversion process. If you would like me to generate tones for you,
>> >> let me know.
>> >>
>> >> This will not propagate to the network. The sounds will only play on
>> the
>> >> radio connected to the local node.
>> >>
>> >>
>> >> On 12/23/2019 11:11 PM, "Jed Barton via ARM-allstar" wrote:
>> >>> Hey guys.
>> >>> Just to update this a little bit. Here's the ideal situation.
>> >>> When we make a node connection, i'd like it to do 1 set of beeps.
>> >>> When we make a disconnect, i'd like it to do another set of beeps.
>> >>> Trying to keep it as simple as possible.  Any ideas?
>> >>>
>> >>> Cheers,
>> >>>
>> >>> Jed
>> >>>
>> >>> On 12/23/19, "Mike Sullivan via ARM-allstar" <arm-allstar at hamvoip.org
>> >
>> >>> wrote:
>> >>>> I'm surprised that they don't like it.. I prefer it over node #'s for
>> >>>> sure.
>> >>>>
>> >>>> That being said.. delete all the .gsm files in
>> >>>> /var/lib/asterisk/sounds/rpt/nodenames and it will remove them, then
>> >>>> disable the script if you have it set to update every so often.
>> >>>>
>> >>>> Mike
>> >>>>
>> >>>> On Mon, Dec 23, 2019 at 7:34 PM "Kevin Halton via ARM-allstar" <
>> >>>> arm-allstar at hamvoip.org> wrote:
>> >>>>
>> >>>>> I installed the node callsign script on a node we have connected to
>> a
>> >>>>> group
>> >>>>> of repeaters. The user base is not liking it so I would like to
>> remove
>> >>>>> it
>> >>>>> as
>> >>>>> quickly as possible. Is it as simple as deleting the file in
>> asterisk
>> >>>>> or
>> >>>>> more to it? I have disabled telemetry output for the time being.
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> Thanks for the help!
>> >>>>>
>> >>>>> _______________________________________________
>> >>>>>
>> >>>>> ARM-allstar mailing list
>> >>>>> ARM-allstar at hamvoip.org
>> >>>>> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>> >>>>>
>> >>>>> Visit the BBB and RPi2/3/4 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/3/4 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/3/4 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/3/4 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/3/4 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/3/4 web page - http://hamvoip.org
>>
>


More information about the ARM-allstar mailing list