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

endSession occurs before destroying all ongoing uac's #187

Open
hadar-laguna opened this issue Dec 5, 2024 · 0 comments
Open

endSession occurs before destroying all ongoing uac's #187

hadar-laguna opened this issue Dec 5, 2024 · 0 comments

Comments

@hadar-laguna
Copy link

My issue is kindof weird.
I have a drachtio server with drachtio applications listening in a k8s cluster
First i get an invite with 2 media parts, then i create 2 uac with twilio (create a call with twilio for media handling)
Then a uas with the initial request where i pass twilio's response.

Then i have an event handler on the dialog with the requester, i listen on "Destroy", and when i get it, i want to hangup (destroy) the 2 uac's i created prior, and after that endSession.

However, i get an error sometimes where:

AssertionError [ERR_ASSERTION]: provided socket has been destroyed
    at DrachtioAgent._makeRequest (/sip-client/node_modules/drachtio-srf/lib/drachtio-agent.js:278:12)
    at DrachtioAgent.request (/sip-client/node_modules/drachtio-srf/lib/drachtio-agent.js:333:17)
    at __x (/sip-client/node_modules/drachtio-srf/lib/dialog.js:202:22)
    at /sip-client/node_modules/drachtio-srf/lib/dialog.js:250:7
    at new Promise (<anonymous>)
    at Dialog.destroy (/sip-client/node_modules/drachtio-srf/lib/dialog.js:249:12)
    at SipCall.removeTwilioCall (/sip-client/main.js:568:25)
    at /sip-client/main.js:591:54
    at Array.forEach (<anonymous>)
    at SipCall.hangUpActiveCalls (/sip-client/main.js:591:31)

Where endSession occurs before the 2 dialog destroy of the uac's.
This is a bit complex b2bua where i handle it on my own.

Could you please help?

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

1 participant