CyCoreSystems / audiosocket

Simple bidirectional audio protocol
Apache License 2.0
67 stars 35 forks source link

Support for DTMF signaling #7

Open Revyy opened 3 years ago

Revyy commented 3 years ago

Hi!

In one of your other repos there is a discussion regarding dtmf-support for the audiosocket implementation. Do you know if there are any plans to add something like this to the official audiosocket implementation in asterisk?

I know that we could achieve something similar by using ARI in combination with externalMedia but it makes the implementation overly complex as we only really need to access the in/out audio stream and receive dtmf.

Issue Link to repo with example implementation

Best regards Jonas

talktovikky commented 1 year ago

Hi!

In one of your other repos there is a discussion regarding dtmf-support for the audiosocket implementation. Do you know if there are any plans to add something like this to the official audiosocket implementation in asterisk?

I know that we could achieve something similar by using ARI in combination with externalMedia but it makes the implementation overly complex as we only really need to access the in/out audio stream and receive dtmf.

Issue Link to repo with example implementation

Best regards Jonas

Hi i need the same type of configuration can you please share the link .

nadirhamid commented 11 months ago

@Revyy

Not sure if your still interested in this, but I forked the project and made minor changes to address these kinds of issues.

In a nutshell, I integrated posix threads with Audiosocket so it can be executed asynchronously. It worked fine during my testing.

For example, using the forked code, you can make a dialplan like this: same => n,AudioSocket(40325ec2-5efd-4bd3-805f-53576e581d13,127.0.0.1:8080) same => n,Background(you-press-number) same => n,Read(NUMBER,1,3) same => n,Verbose(“user pressed ${NUMBER}")

It can also be used in tandem with other applications like ARI and such. If your interested, you can look into my fork.

https://github.com/nadirhamid/audiosocket