Skip to content

feat: add async INVITE API#84

Merged
yeoleobun merged 1 commit into
restsend:mainfrom
FedorKiselev76:feat/async-invite
Jan 19, 2026
Merged

feat: add async INVITE API#84
yeoleobun merged 1 commit into
restsend:mainfrom
FedorKiselev76:feat/async-invite

Conversation

@FedorKiselev76

Copy link
Copy Markdown
Contributor

In a telephony system, outgoing INVITE requests may take a long time to complete
(ringing, call forwarding, parallel forking, or no answer).

do_invite_async() allows starting an outgoing call without blocking the calling task.
This makes it possible to:

initiate multiple calls in parallel,

keep the control plane responsive while calls are ringing,

manage call state, timeouts, and cancellation externally.

The dialog is registered under an early dialog ID while the INVITE is in progress
and re-registered under the confirmed dialog ID on a successful (2xx) response,
preserving correct in-dialog request routing.

@yeoleobun
yeoleobun merged commit e3cdacb into restsend:main Jan 19, 2026
3 checks passed
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.

2 participants