Skip to content
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

Support for DTMF signaling #7

Open
Revyy opened this issue Apr 8, 2021 · 2 comments
Open

Support for DTMF signaling #7

Revyy opened this issue Apr 8, 2021 · 2 comments

Comments

@Revyy
Copy link

Revyy commented Apr 8, 2021

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

@pablodz pablodz mentioned this issue Jan 21, 2022
2 tasks
@talktovikky
Copy link

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
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants