Development Notes - Code - CSTA Network Logon
From Open CSTA
- CSTA Server starts, calls method StartCSTAStack() on line 195
- Create Layer 7
- Create Layer 5
- Layer 5 creates the TCP socket to PBX
- Create Layer 7
- StartCSTAStack() has a loop, trying to establish a CSTA connection. It will only loop once if there are no problems. Otherwise, it will sleep for 5 seconds before trying again.
- Call layer7.Login()
- Layer 7 -> Login() calls layer5.Login()
- Layer 5 sends a string, receives 2 strings, sends one in response, then sets it's LoggedIn boolean to true.
- Layer 7 -> Login() calls layer5.Login()
The CSTAServer.StartCSTAStack() loop tests for logged in at layer 7, which checks at layer 5.