Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

increasing the number of libwebsocket service threads of mod_audio_fork module #49

Closed
spointer opened this issue Nov 17, 2020 · 7 comments

Comments

@spointer
Copy link

spointer commented Nov 17, 2020

Hello Dave,
When i run sipp for performance test(for example, peak call to 50 and call rate to 3 cps), it seems the remote audio stream is delayed and even not received at all.
I changed MOD_AUDIO_FORK_SERVICE_THREADS to 5 but had no luck and even i followed up this link and changed freeswitch configuration but had no luck either.

https://stackoverflow.com/questions/53609817/freeswitch-blocked

Is there a reason for limiting the max thread number to 5?
Could you provide the way to increase the number over 5?

Any suggestions are appreciated.

@davehorton
Copy link
Collaborator

what size of instance are you running on? I have not seen this issue before in my testing/deployments

@spointer
Copy link
Author

My instance size is 4 vcpu and 8G memory.

@davehorton
Copy link
Collaborator

you should be getting much better performance than that. How you are you measuring audio delay? Are you certain the delay is not on the websocket server (receiving) side?

@davehorton
Copy link
Collaborator

also I would not make that change you cited in the freeswitch link

@spointer
Copy link
Author

ok, i will take a closer look at my code now and let you know

@davehorton
Copy link
Collaborator

davehorton commented Nov 17, 2020

mod_audio_fork uses libwebsockets, and lws only sends data when the socket is in a writable state. If the downstream server falls behind, this will cause the module to buffer audio until the socket becomes writable

@spointer
Copy link
Author

ok, i found there is no audio stream delay in freeswitch module with another testing, sorry for bothering you.

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

No branches or pull requests

2 participants