Skip to content

Add support for async processing #19

@nadirhamid

Description

@nadirhamid

I have noticed that the module currently runs synchronously and I was somewhat interested in knowing the design decisions that led to this. I am inclined to want to integrate a option that allows users to run Audiosocket async.

It would then be possible to integrate other Asterisk apps while running Audiosocket. Currently this is not possible.

In an effort to address this minor shortcoming for me, I created a fork where I started integrating some of the changes. So far I have mostly integrated posix threads and have made minor modifications to the code so it can fully utilize the Asterisk core methods.

It seems to work mostly, but there are some small discrepancies. For example, I cannot call certain Asterisk applications and play audio with Audiosocket at the same time. These issues are minor however.

You can view my fork at:
https://github.com/nadirhamid/audiosocket

Here is the commit:
nadirhamid@2dcd3cb

I did not create a PR yet but I can tidy up this code and try that if its beneficial in anyway.

I wanted to get your thoughts on this first.

Do you think there are any plans to integrate a detached mode to Audiosocket in the near future ?

Looking forward to your feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions