# BeginCallSetup state

The following steps occur during this state:

- Master slave determination is completed.

- Terminal capability set is sent and acknowledged.

- Terminal capability set is received and acknowledged.

- MUX tables exchange is completed.

- Logical channels negotiations are completed.

Enters state | Upon receiving h324SetupCall.
Exits state | One of the following: After master slave determination is completed; the terminal capability set has been sent and acknowledged, and received and acknowledged; MUX tables have been exchanged; and both audio and video logical channels have been negotiated; the Middleware transitions to the MediaSetup state. The state transition is signaled by H324EVN_MEDIA_SETUP_DONE. Upon receiving h324EndSession or receiving the H.245 EndSession message, the Middleware transitions to the EndSession state. Upon receiving h324Stop, the Middleware transitions to the End state.
Related functions | h324EndSession h324GetTermCaps h324SetTermCaps h324Stop
Normal events | H324EVN_MEDIA_SETUP_DONE H324EVN_END_SESSION H324EVN_REMOTE_CAPABILITIES H324EVN_LCD
Error events | H324EVN_CALL_SETUP_FAILED H324EVN_H245_INTERNAL_ERROR