PREV TOC HOME INDEX NEXT


6.3.2 GWCall::gateConnected State

The application waits for a fax event or a change codec event. If it receives IPMEV_FAXTONE (in voice mode) or T38CALLSTATE_SWITCH_TO_VOICE (in fax mode), it stops the media, sets the message to send to the remote gateway via the IPProtocol, and sets the media mode. If it receives IPEV_CHANGE_CODEC, it stops the media, sets the local codec, sets the message to send to the remote gateway via the IPProtocol, and sets the media mode.

In the case of IPMEV_FAXTONE, the application calls processEvent(IPMEDIAEV_DROPCALL) from the IPMediaDevice to stop the media, and then calls getDefaultFaxCodec( ) to get the fax codec as defined in the ipmedia_r4.cfg file. It calls setFaxCodec(true) to pass the CED tone to the remote gateway. The application sends an IPP_CHANGE_CODEC message to the remote gateway. The call state transitions to gateCallPause.

In the case of IPMEV_T38CALLSTATE_SWITCH_TO_VOICE, the application calls processEvent(IPMEDIAEV_DROPCALL) from the IPMediaDevice to stop the media, and then to calls setFaxMode(FAX_NONE), getDefaultVoiceCodec( ) to get the voice codec as defined in the ipmedia_r4.cfg file, and setVoiceCodec( ). The application sends an IPP_CHANGE_CODEC message to the remote gateway. The call state transitions to gateCallPause.

In the case of IPEV_CHANGE_CODEC, the application calls processEvent(IPMEDIAEV_DROPCALL) from the IPMediaDevice to stop the media, and then retrieves the codec and remote media information from the message. If the media mode is fax, the application gets the fax mode (G.711 over UDP or T.38 over RTP). If the fax mode is T.38, the application calls setRemoteFaxMediaInfo( ) from the IPMediaDevice. If the fax mode is G.711, the application calls setRemoteVoiceMediaInfo( ) from the IPMediaDevice. If the media mode is voice, the application calls setFaxMode(FAX_NONE), setVoiceCodec( ), and setRemoteVoiceMediaInfo( ). The application sends an IPP_CODEC_CHANGED message to the remote gateway. The call state transitions to gateCallPause.


PREV TOC HOME INDEX NEXT

Click here to contact Telecom Support Resources

Copyright 2002, Intel Corporation
All rights reserved
This page generated September, 2002