[arm-allstar] export DTMF as variable to bash
wb4bxo at mindspring.com
wb4bxo at mindspring.com
Wed Oct 30 22:57:27 EDT 2019
There is a howto on hamvoip.org for using the phone patch functions:
https://www.hamvoip.org/Allstar_extended_functions_using_autopatch.pdf
I have done what you're talking about on my node 46971. But you don't need
to do all the talking to brandmiester nor restarting the DVSwitch. There is
a port you can send the commands to for changing talk groups on via UDP:
https://dvswitch.groups.io/g/main/topic/asl_to_dmr_bridge_changing/23752012?p=Created,,,20,1,0,0
I'm running late tonight but if your interested I can put up my scripts and
configuration files for you tomorrow (Thursday) night. I've been using them
for nearly a year now without any problems. I also have a node.js app
running on it that I can connect to for changing the talk group from my
phone or a web browser.
Steve - WB4BXO
http://www.stevemobley.com
-----Original Message-----
From: "Patrick Perdue via ARM-allstar"
Sent: Wednesday, October 30, 2019 2:41 AM
To: Don Backstrom - AA7AU via ARM-allstar
Cc: Patrick Perdue
Subject: [arm-allstar] export DTMF as variable to bash
Hi all:
This is probably more of an Asterisk question in general. I seem to
remember being able to do this years ago, but my knowledge is rusty.
Here is what I want to do.
Using DVSwitch, Analog_Bridge and MMDVM_Bridge, I want to create a macro
that allows linking to any given Brandmeister talkgroup to an Allstar
node, probably a second, private node linked to primary, so that the
link can be easily dropped. The way I envision this working is thus.
Call a macro, followed by a 2 to 7 digit talkgroup or DMR ID, which is
then exported as a variable.
Run a script that first clears all static talkgroups using the
Brandmeister API via cURL, then sets the TGID in the previously defined
variable as the only talkgroup using the same API.
Stops MMDVM_Bridge, if it is running.
Finds and replaces a specific line of text in MMDVM_Bridge.ini, defining
the outbound TGID.
Starts MMDVM_Bridge.
Evaluate the running status of MMDVM_Bridge, and play an appropriate
sound file to inform the user that the bridge is active, or not, if the
process isn't running after a second or two, or if the output shows that
MMDVM_Bridge didn't successfully login to the master server, probably by
reading the last few lines of MMDVM_Bridge's log if the process is running.
I know how to make most of this happen in bash. What I'm unsure of,
however, is how to get some digits from Asterisk to a variable that can
be called from bash, or use functions to do all the same stuff with the
evaluated digits in Asterisk itself. Also, not sure of the best way to
have a macro that then executes a script, gets digits, then does things
with them.
Or, has this already been done, and I am reinventing the wheel?
_______________________________________________
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 web page - http://hamvoip.org
More information about the ARM-allstar
mailing list