· ai-devtools
Where did the ACK go?
I know the title is a bit clickbaity but it works for this post :P This is probably going to be a LONG one.
I spent almost 3-4 days debugging and fighting on this and this is gonna be a proper log of what all I did. Fair warning though, I did exhaust my Cursor, OpenCode, and Claude limits debugging this one.# Bear with me as I try to explain all the complicated abbreviations that you might come across 😭# Some context as to what exactly I decided to do?
It’s pretty straightforward (well, not really). There’s a protocol known as the Session Initiation Protocol (SIP) which was introduced in 1999 (crazy!).# But how does it work?
Let’s look at this sequence diagram:# INVITE (hey, I want to call you)100 Trying (got it, working on it)180 Ringing (their phone is ringing)200 OK (they picked up!)ACK (great, let's talk)BYE (hanging up)200 OK (bye!)🎙️ audio flows hereYouMeYouMe Looks pretty simple right? But SIP only handles the signaling, the “let’s have a call” part. The actual audio is described separately using SDP (Session Description Protocol), which gets sent inside the SIP messages.




