Skip to content

Fixed issue user leg terminating immediately even if we specify JAMBONES_TRANSCRIBE_EP_DESTROY_DELAY_MS#1246

Open
rammohan-y wants to merge 12 commits intojambonz:mainfrom
rammohan-y:fix-997-wait-before-destroy
Open

Fixed issue user leg terminating immediately even if we specify JAMBONES_TRANSCRIBE_EP_DESTROY_DELAY_MS#1246
rammohan-y wants to merge 12 commits intojambonz:mainfrom
rammohan-y:fix-997-wait-before-destroy

Conversation

@rammohan-y
Copy link
Copy Markdown
Contributor

@rammohan-y rammohan-y commented Jun 17, 2025

Fix the issue of user leg terminating immediately even if we specify JAMBONES_TRANSCRIBE_EP_DESTROY_DELAY_MS

Also, added logic of waiting in create-call when a call is created using rest

#997

@xquanluu @vdharashive @davehorton @sammachin

…o wait is not executing

Also, added logic of waiting in create-call when a call is created using rest

jambonz#997
@vdharashive
Copy link
Copy Markdown
Contributor

@xquanluu @davehorton there were case which was not handle like restDial and there was bug in Dial with transcribe verb which has been fixed, also we have tested it, please review it

Comment thread lib/http-routes/api/create-call.js Outdated
...req.body
};

const origDestroy = ep.destroy.bind(ep);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you create a function that has ep as input that do this modification of destroy function.

as create call will have ep and dualEp (in another scenario)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xquanluu Additional to your suggestion above I had centralized the overriding the destroy and stopTranscription in an helper method and calling it from everywhere

@vdharashive
Copy link
Copy Markdown
Contributor

@xquanluu @davehorton can you review this fix

@rammohan-y
Copy link
Copy Markdown
Contributor Author

@davehorton please review this when you get some time

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

Successfully merging this pull request may close these issues.

3 participants