Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

My Device is Auto Picking the Incoming Call is thier any API to stop it in Brew??

 
Accessing an incoming call using the ITelephone family of interfaces consists of getting notified of an incoming call and obtaining access to the ICall object corresponding to the incoming call. An application can get notified of an incoming call and obtain access to the ICall object there after in the following two ways:

Register with AEECLSID_PHONENOTIFIER using AEET_NMASK_NEW_CALLDESC mask via the application MIF file

Register a model listener with the ITelephone interface **Obtaining access to ICall object when model listener is invoked

On an incoming call, the application receives the EVT_NOTIFY event, call can be end bt calling ICALL_End(). The dwParam for this event is of the type AEENotify where the pData member of this event is of the type AEETNotifyInfo. The following code snippet shows a typical handling of this event:
{
AEENotify * pNotify = (AEENotify *) dwParam;
if (pNotify->dwMask & AEET_NMASK_NEW_CALLDESC)
{

AEETNotifyInfo * pTNotifyInfo = pNotify->pData;
if (pTNotifyInfo && (AEET_EVENT_CALL_INCOM ==pTNotifyInfo->event))
{
AEETCallEventData * pTCallEventData = (AEETCallEventData *)&(pTNotifyInfo->event_data);
ICALLMGR_GetCall(pMe->pICallMgr, pTCallEventData->cd, &pMe->pIncomingCall);

ICALL_End(pMe->pIncomingCall);
}
}

 

 
Accessing an incoming call using the ITelephone family of interfaces consists of getting notified of an incoming call and obtaining access to the ICall object corresponding to the incoming call. An application can get notified of an incoming call and obtain access to the ICall object there after in the following two ways:

Register with AEECLSID_PHONENOTIFIER using AEET_NMASK_NEW_CALLDESC mask via the application MIF file

Register a model listener with the ITelephone interface **Obtaining access to ICall object when model listener is invoked

On an incoming call, the application receives the EVT_NOTIFY event, call can be end bt calling ICALL_End(). The dwParam for this event is of the type AEENotify where the pData member of this event is of the type AEETNotifyInfo. The following code snippet shows a typical handling of this event:
{
AEENotify * pNotify = (AEENotify *) dwParam;
if (pNotify->dwMask & AEET_NMASK_NEW_CALLDESC)
{

AEETNotifyInfo * pTNotifyInfo = pNotify->pData;
if (pTNotifyInfo && (AEET_EVENT_CALL_INCOM ==pTNotifyInfo->event))
{
AEETCallEventData * pTCallEventData = (AEETCallEventData *)&(pTNotifyInfo->event_data);
ICALLMGR_GetCall(pMe->pICallMgr, pTCallEventData->cd, &pMe->pIncomingCall);

ICALL_End(pMe->pIncomingCall);
}
}

 

Thanks Mahesh for your quick response... the above code will end the incoming call but i don't wan't to end the incoming call but i want to make the auto answer of the call inactive/disabled??

Thanks Mahesh for your quick response... the above code will end the incoming call but i don't wan't to end the incoming call but i want to make the auto answer of the call inactive/disabled??

you can use ICALL_Answer() instead of ICALL_End()

you can use ICALL_Answer() instead of ICALL_End()