ezk icon indicating copy to clipboard operation
ezk copied to clipboard

how to handle CANCEL event of INCOMING CALL

Open giangndm opened this issue 1 year ago • 5 comments

I ran the accept_invite demo and successfully received calls. However, when the caller cancels the call, the acceptor seems to doesn’t have a method or event to detect this.

giangndm avatar Sep 27 '24 08:09 giangndm

Hey, if everything is working correctly then calls to acceptor should return Error::RequestTerminated if a cancel request is received while processing the invite.

kbalt avatar Sep 27 '24 10:09 kbalt

@kbalt But is is only happen in case callee accept or reject call. My issue is about how to trigger event to callee (app or web) right after caller cancelled the call.

giangndm avatar Sep 27 '24 10:09 giangndm

Hi, I've quickly build an POC of how the Acceptor could notify the user of the cancellation in https://github.com/kbalt/ezk/pull/35 maybe you could try that out?

kbalt avatar Sep 27 '24 10:09 kbalt

@kbalt Sure, I will check it now

giangndm avatar Sep 27 '24 10:09 giangndm

@kbalt Thank you very much, I just checked and it works as expected.

giangndm avatar Sep 27 '24 11:09 giangndm

Closing this as https://docs.rs/ezk-sip-ua/latest/ezk_sip_ua/invite/acceptor/struct.InviteAcceptor.html#method.cancelled has been added.

kbalt avatar Jun 16 '25 19:06 kbalt