Brew Question: Download Brew PDF

What guidelines should follow when making a voice call immediately after a data call?

Tweet Share WhatsApp

Answer:

After the last socket is released, BREW waits for the network linger time (default linger time is 30s) to expire before terminating the PPP connection. The actual tearing down of the PPP connection takes about 3s. Therefore, (linger time + 3 seconds) must elapse between releasing the last socket and invoking ITAPI_MakeVoiceCall(). You should introduce a (linger time + 3 seconds) timer between releasing the last socket and making the voice call.

For example:

ReleaseNetAndSocket(pMe);

//LINGER_TIME below is in seconds

ISHELL_SetTimer(pMe->a.m_pIShell, (LINGER_TIME +3) * 1000,
Timer_CB, (void *)pMe);

In the timer callback code, you can make the voice call using ITAPI_MakeVoiceCall().

Download Brew PDF Read All 78 Brew Questions
Previous QuestionNext Question
After making a voice call using ITAPI_MakeVoiceCall, why does my application seem to be restarted when I respond No to the "Return to Application" prompt?When making a voice call immediately after a data call, why do we see the Privacy Alert again instead of "Return to Application"?