I have a scheme like this https://prnt.sc/176ry00
What is maximum waiting time for 200 OK response?
There isn't. There is a max waiting time for the first non-100 provisional response to the SIP INVITE request, which is equal to the transaction timeout (Timer B, 64*T1). After the provisional response has been received it is up to the application or user to decide when to stop waiting for the final response.