Developers guide
Chapter 22: Wireless Wide-Area Networking
Initializing Voice Over WWAN
218 Psion Teklogix Mobile Devices SDK Developers Guide
The following sample code shows how to do this:
Example 22.14 Initializing Voice Over WWAN In C++
using namespace PsionTeklogix::WWAN;
class MyVoiceCallManagerListener : public VoiceCallManager::Listener
{
public:
// OnIncomingCallEvent
//
// Description:
// This method is invoked by a VoiceCallManager object when there is an inco
ming
// voice call (including waiting calls). In this implementation, all new Voi
ceCalls
// are added to the voiceSharedData.myVoiceCalls list. A MessageBox is then
// displayed asking the user if the call should be answered. The new status
is
// displayed in the event window in the dialog.
//
// Parameters:
// incomingCall - The new incoming call.
//
void OnIncomingCallEvent(VoiceCall incomingCall)
{
// Add functions for acting on incoming calls here....
}
};
class CallListener : public VoiceCall::Listener
{
public:
void OnStatusChangedEvent(VoiceCall &changedCall,
VoiceCallStatus newStatus,
VoiceCallFlags newFlags)
{
switch(newStatus)
{
case VoiceCallStatus_Active:
break;
case VoiceCallStatus_Held:
break;
case VoiceCallStatus_Dialing:
break;
case VoiceCallStatus_Alerting:
break;
case VoiceCallStatus_Incoming:
break;
case VoiceCallStatus_Waiting:
break;
case VoiceCallStatus_NoAnswer:
break;
case VoiceCallStatus_NoCarrier:
break;
case VoiceCallStatus_Busy:
break;
case VoiceCallStatus_SupplementaryAccepted:
break;
case VoiceCallStatus_NormalTermination:
break;