Part II: Developing Outbound Applications: Initialize Client | Gateway Tutorial

The following code register the client with the gateway.

if (! VgateClient::RegistClient("callnow")) {
                AfxMessageBox(VgateClient::GetLastError());
                }

Usually, this is a good time to prepare the client, such as sending pre-recorded audio files to the gateway. In this example, we skip this step. It is assumed that you still have the audio file hello.wav installed under the call scheduler directory from previous steps. Otherwise, please see The "callnow" application section.