Resuming a Web Call
# support
b
Is it possible to continue a call that was that was stopped (w/ the
stop()
fn on web)? It seems call ids are never exposed for this to be possible (just assistant ids for new web calls)
This pattern wouldn't happen for phone calls — but would be something normal for web (since windows can close, refresh, etc)
u
Hey @bephrem , Once a call has been stopped using the stop method in the Vapi Web SDK, it cannot be directly continued or resumed. To initiate a new call after stopping the previous one, you would need to start a new session by calling the start method again. this goes the same for all calls across the board.
b
@0xpranjal.eth cool — is it on the roadmap to resume web calls?
u
I'm not sure, but will relay it to my team
n
you can "resume" by starting another call with the messages from the old in
assistant.model.messages
n
👋 how to resume call on a Phone. Pick up where the assistant left off ?
n
start the call with messages history. use transient assistants
s
@User is this still the best way to resume a call?
s
Currently, yeah.
s
how can i implement this? couldn't find any documntation. should i send messages via dynamic variable as an override?
s
In web SDK, you can append messages. So, you just need to do it. https://docs.vapi.ai/sdk/web
s
I looked there. But not sure how to pass the messages array. I think it's in vapi.start(assistantId). But where does the messages array go in this?