[App_rpt-users] Announce system wide status only local?

mike at midnighteng.com mike at midnighteng.com
Tue May 19 18:12:53 UTC 2015



To those that were asking,

Here is a script while functional, does not preform well to playback local
connected node list without querying to network connections.

Use your node numbers, name the shell.sh as a file and assign a command to
it as a shell script =cmd,/loc/shell.sh and provide ownership 775.

Perhaps someone else might want to attempt to do this within asterisk and
bring back the node numbers as a var for playback using saydigits within
asterisk as it would probably preform correctly.

Posted here for further dev if you choose. It could be shortened at the
least.


#!/bin/bash
# kb8jnm - Get Node list with lsnodes and playback on-air local
# This method performs poorly because asterisk/shell/asterisk commands
take to much time in playback.

asterisk -rx "rpt lstats 29283" >  nodelistfull.txt
tail -n +3 nodelistfull.txt > nodelist.txt

  while read -r no pe rc di ct cs;
   do
   echo $no
   asterisk -rx "rpt LocalPlay 29283 /var/lib/asterisk/sounds/rpt/node"
   for (( i=0; i<${#no}; i++ ));do
    nu=${no:$i:1}
    echo ${no:$i:1}
    asterisk -rx "rpt LocalPlay 29283 /var/lib/asterisk/sounds/digits/$nu"
    done
  done < nodelist.txt



...mike/kb8jnm



> That’s correct. Link status telemetry always propagates to all connected
> nodes. But it’s digital and out of band, not in the audio stream. So the
> individual node operator can decide whether to always hear it
> (telemdefault=1), never hear it (telemdefault=0) or hear it only after a
> locally issued link command (telemdefault=2) plus a short time period.
>
> Almond gets it's list of connected nodes through an AMI (Asterisk Manager
> Interface) command which is similar to the *CLI> rpt lstats <node>
> command. So yes, you can get a list of nodes with lstats and connected
> nodes would not hear anything.
>
> If you wanted to hear that on your repeater, I suppose one could write a
> script using lstats to dump the list to a text file, parse it and then use
> localplay.
>
>
> --
> Tim
> :wq
>
>> On May 17, 2015, at 7:38 AM, mike at midnighteng.com wrote:
>>
>>
>>
>>
>> Tim,
>>
>> That may well stop local telemetry, but I believe that the question is
>> to
>> stop it (the query responce) from propagating to connected systems.
>>
>> I don't think there is a way to do that. It is in the IAX stream of
>> connected stations.
>>
>> It is up to the local node owner to limit playback of what telemetry is
>> played on their local node from what is propagated across the connected
>> network. You can only set your node.
>>
>> If I am wrong on this, please, someone chime in because that is my
>> understanding of it. And based on how I have played with it, it works
>> that
>> way.
>>
>> I don't know if you can query your system on a command line for
>> connected
>> systems "without triggering the same". Perhaps you can. If you can, then
>> you have the ability to email/text that to the outside. So if you can
>> query on a command line without propagating the info, you might be able
>> to
>> script it and give that a command for "local playback only" by just
>> reading the text piped output or just count how many stations are
>> connected (statistics) etc.
>>
>> I don't run/query my nodes from a command line much, just the OS. So I
>> am
>> not aware of the differences "if any".
>>
>> This question has come up many times before. Not sure if anyone has had
>> a
>> work around. It would seem to me that there should be a work around
>> because allmon can get a list without triggering list query propagation.
>> So that's a start.
>>
>>
>> ...mike/kb8jnm
>>
>>
>>> Perhaps telemdefault=2 will do what you want.
>>> http://docs.allstarlink.org/drupal/node/128
>>> <http://docs.allstarlink.org/drupal/node/128>
>>>
>>> --
>>> Tim
>>> :wq
>>>
>>>> On May 17, 2015, at 4:26 AM, Skyler F <electricity440 at gmail.com>
>>>> wrote:
>>>>
>>>> Is there a way to announce the system wide status only local so it
>>>> does
>>>> not play on others repeaters with telemetry enabled?
>>>>
>>>> Skyler
>>>> KDØWHB
>>>>
>>>> --
>>>> Skyler Fennell
>>>> amsatnet.info <http://amsatnet.info/>
>>>> KDØWHB
>>>> electricity440 at gmail.com
>>>> <mailto:electricity440 at gmail.com>_______________________________________________
>>>> App_rpt-users mailing list
>>>> App_rpt-users at ohnosec.org
>>>> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
>>>>
>>>> To unsubscribe from this list please visit
>>>> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll
>>>> down to the bottom of the page. Enter your email address and press the
>>>> "Unsubscribe or edit%2
>>
>> _______________________________________________
>> App_rpt-users mailing list
>> App_rpt-users at ohnosec.org
>> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
>>
>> To unsubscribe from this list please visit
>> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll
>> down to the bottom of the page. Enter your email address and press the
>> "Unsubscribe or edit options button"
>> You do not need a password to unsubscribe, you can do it via email
>> confirmation. If you have trouble unsubscribing, please send a message
>> to the list detailing the problem.
>
>





More information about the App_rpt-users mailing list