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

Called is disconnected after 1-2 seconds #19

Open
scorpio1441 opened this issue Jan 29, 2023 · 4 comments
Open

Called is disconnected after 1-2 seconds #19

scorpio1441 opened this issue Jan 29, 2023 · 4 comments

Comments

@scorpio1441
Copy link

I wonder why my call is getting disconnected almost immediately, even though audiofork keeps receiving frames....

Connected to Asterisk 18.15.1 currently running on ithelpdesk1 (pid = 26106)
-- Executing [@mycontext:1] NoOp("SIP/voipms-00000000", "") in new stack
-- Executing [
@mycontext:2] Verbose("SIP/voipms-00000000", "starting audio fork") in new stack
starting audio fork
-- Executing [@mycontext:3] AudioFork("SIP/voipms-00000000", "ws://localhost:8080/") in new stack
== <SIP/voipms-00000000> [AudioFork] (both) Setting Direction
== <SIP/voipms-00000000> [AudioFork] Setting reconnection attempts to 5
== <SIP/voipms-00000000> [AudioFork] Setting reconnection timeout to 5
== <SIP/voipms-00000000> [AudioFork] (both) Setting wsserver: ws://localhost:8080/
== <SIP/voipms-00000000> [AudioFork] (both) Completed Setup
== <SIP/voipms-00000000> [AudioFork] (both) Added AudioHook Spy
-- Executing [
@mycontext:4] Verbose("SIP/voipms-00000000", "audio fork was started continuing call..") in new stack
audio fork was started continuing call..
-- Executing [@mycontext:5] Playback("SIP/voipms-00000000", "hello-world") in new stack
== <SIP/voipms-00000000> [AudioFork] (both) Keeping Call-ID Association
== <SIP/voipms-00000000> [AudioFork] (both) Connecting websocket server at: ws://localhost:8080/
== <SIP/voipms-00000000> [AudioFork] (both) Creating WS without TLS
== <SIP/voipms-00000000> [AudioFork] (both) Begin AudioFork Recording SIP/voipms-00000000
-- <SIP/voipms-00000000> Playing 'hello-world.gsm' (language 'en')
-- Executing [
@mycontext:6] Hangup("SIP/voipms-00000000", "") in new stack
== Spawn extension (mycontext, ****, 6) exited non-zero on 'SIP/voipms-00000000'
== <SIP/voipms-00000000> [AudioFork] (both) AST_AUDIOHOOK_STATUS_RUNNING = 0
== WebSocket connection to '[::1]:8080' closed
== <SIP/voipms-00000000> [AudioFork] (both) Post Process
== <SIP/voipms-00000000> [AudioFork] (both) End AudioFork Recording to: ws://localhost:8080/

got connection
received frame..
received frame..
received frame..
received frame..
received frame..
received frame..
received frame..
received frame..
received frame..
received frame..
received frame..
received frame..

@nadirhamid
Copy link
Owner

Hello @rknetwork,

Thanks for creating this issue.

Can you please also include your dialplan so I can have a look at that ?

Thanks

@Yukari-Tryhard
Copy link

Here is my dialplan:

same => n,Progress() same => n,AudioFork(ws://192.168.1.220:8080?ucid=${UCID}, D(in,out)) same => n,Dial(PJSIP/${EXTEN}@drachtio_out,,b(addHeaders^addHeaderXRetHdr^1(${XReturnHeader}))) same => n,HangUp()

with this dialplan. my call is still continue but the audio fork stop sending new data to the websocket server.

@Yukari-Tryhard
Copy link

@nadirhamid does this repo still active?

@nadirhamid
Copy link
Owner

nadirhamid commented Nov 9, 2024

Here is my dialplan:

same => n,Progress() same => n,AudioFork(ws://192.168.1.220:8080?ucid=${UCID}, D(in,out)) same => n,Dial(PJSIP/${EXTEN}@drachtio_out,,b(addHeaders^addHeaderXRetHdr^1(${XReturnHeader}))) same => n,HangUp()

with this dialplan. my call is still continue but the audio fork stop sending new data to the websocket server.

@Yukari-Tryhard seems like you're setting the direction option incorrectly.

You can only specify one of the following: in, out or both.

No support for multiple options with a comma delimited list like what you have in your example.

Try to change the audiofork call to this:
same => n,AudioFork(ws://192.168.1.220:8080?ucid=${UCID}, D(both))

This should fix the issue.

If you have any other questions or need more info let me know.

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