how to handle CANCEL event of INCOMING CALL
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.
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 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.
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 Sure, I will check it now
@kbalt Thank you very much, I just checked and it works as expected.
Closing this as https://docs.rs/ezk-sip-ua/latest/ezk_sip_ua/invite/acceptor/struct.InviteAcceptor.html#method.cancelled has been added.