SIP handled for you
sipbridge listens on UDP, TCP and TLS and takes care of transactions, dialogs, retransmissions, ACK and CANCEL, using a pinned build of the sipgo library. Your code never implements a SIP state machine.
sipbridge holds the SIP connections to phones and trunks and runs the protocol machinery. Your application connects over a WebSocket and decides how each request is answered.