-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add command to "play" courtesy tones, morse ID, voice ID, etc. #59
Comments
Is there a way to do this with Asterisk/AMI? I would LOVE to do this and looked at it before but couldn't come up with a way to make asterisk generate the sound. |
@InterLinked1 : any thoughts? |
I'm a bit confused about this, Asterisk generates the tones when telemetry happens, no?
I haven't thought about the most elegant way, in depth, but it's certainly possible to do something quick and dirty for testing. For example, if the tone frequencies are known, you can set up a quick dialplan extension to test:
Or even possibly something like this, assuming
Obviously this isn't using the definitions in As far as Morse ID, I feel that the included
Obviously, there is an AMI equivalent to these CLI commands too. Hope that helps, if not please clarify what I'm missing and I'll revise my suggestion! |
For the moment, let's take the idea of an If you look at our current "rpt.conf" file you will see a number of courtesy tones (ct1, ct2, ct3, etc). I would like to "hear" what each tone sounds like without having to modify the configuration, restart asterisk, trigger whatever would play the tone, etc. What I'm looking for is an Asterisk CLI command that I could enter that would play "any" tone in the configuration (e.g. "rpt localplay 1999 ct1"). Alternatively, a CLI command where I could pass the value associated with an tone (e.g. "rpt localplay 1999 |t(350,0,100,2048)" ). For "ct1" would this be :
|
I don't think the arguments translate exactly. You'll have to convert the arguments into I'm not sure what Unfortunately |
The tone groups are documented @ https://wiki.allstarlink.org/wiki/Courtesy_Tones |
Another question to ask is : |
It could be done by adding a new CLI command. But I would caution against feature creep, which Another option is to use |
Function cop,48 will play tone sequences. https://wiki.allstarlink.org/wiki/Transmitting_Tone_Sequences |
Is there a Asterisk CLI command to execute an arbitrary (not currently in rpt.conf) cop,48 sequence? ... or any arbitrary cop sequence? If the answer is yes, GREAT. If not, sad face. and, please note, the ask is to provide a way for folks to see what's possible, to "hear" what a change might sound like, to allow node operators to decide what configuration options would work/sound best for them. |
Possibly answering my own questions. The following command appears to work :-)
|
CT1 would be |
This is awesome. I never knew this existed. What we need is a new command like |
I'm still thinking about |
The "rpt.conf" file defines a number of courtesy tones (e.g. "ct1", "ct2", ...) but does not offer a way for the node admin to hear what each tone sounds like other than to modify the .conf file, restart Asterisk, and trigger whatever action is needed to play the tone.
I think it would be nice to add a command where one could exec
asl-telemetry-play <telemetry>
with the argument specifying what should be played. The command should allow one to specify a telemetry key (e.g. "ct1") or a telemetry tone escape sequence (e.g. "(660,880,150,2048)(660,0,150,2048)").And, while we're here, it would also be nice to hear what a morse ID or voice ID would sound like.
The text was updated successfully, but these errors were encountered: