InterviewSolution
| 1. |
What Guidelines Should Follow When Making A Voice Call Immediately After A Data Call? |
|
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); In the timer callback code, you can make the voice call using ITAPI_MakeVoiceCall(). 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); In the timer callback code, you can make the voice call using ITAPI_MakeVoiceCall(). |
|