emiago / sipgo

SIP library for writing fast SIP services in GO
BSD 2-Clause "Simplified" License
548 stars 73 forks source link

ACKs and unhandled responses #120

Open yallxe opened 2 months ago

yallxe commented 2 months ago

Is there a way in sipgo to catch unhandled responses? Let's say I have a case where the server missed the ACK I've send after WaitAnswer() finished. How should I handle such cases?

emiago commented 2 months ago

I am confused is it response from server missed, or just ACK from client after getting 200ok

yallxe commented 2 months ago

The second one, ACK from client.

emiago commented 2 months ago

yes, ok this also fails in this corner case, same as Cancel. Normally you will get 2xx retransmitted, and you should Re ACK, but currently you may need to handle this as caller, until we introduce some API interface.