Is there a way to get a notification when a phone call has ended? | developer.brewmp.com Is there a way to get a notification when a phone call has ended? | developer.brewmp.com

Developer

Is there a way to get a notification when a phone call has ended?

Forums:

Question as per title, I'd like to know when a phone call ends (as opposed to when one starts).

Register for notifications on voice call state change (or phone state change) using AEET_NMASK_VOICE_CALL  (or AEET_NMASK_PHONE) with notifier AEECLSID_PHONENOTIFIER in MIF file. Whenever there is a status change applications receive EVT_NOTIFY event. The dwParam for this event is of type AEENotify. The pData member of which is of type AEETNotifyInfo. event of  AEETNotifyInfo contains state. Check for AEET_EVENT_CALL_END.

Register for notifications on voice call state change (or phone state change) using AEET_NMASK_VOICE_CALL  (or AEET_NMASK_PHONE) with notifier AEECLSID_PHONENOTIFIER in MIF file. Whenever there is a status change applications receive EVT_NOTIFY event. The dwParam for this event is of type AEENotify. The pData member of which is of type AEETNotifyInfo. event of  AEETNotifyInfo contains state. Check for AEET_EVENT_CALL_END.

If I register for notifications via the mif using AEECLSID_PHONENOTIFIER / AEE_NMASK_VOICE_CALL or AEET_NMASK_PHONE (0x1001081 / x0001 or 0x0010) then I receive no notifications at all in my code (running on the simulator).

I can however receive the notifications if I instead use:

ISHELL_RegisterNotify(GetApp()->piShell, AEECLSID_SEARCH411, AEECLSID_PHONENOTIFIER, AEET_NMASK_VOICE_CALL).
 

Q1 - What is the difference between registering for notifications via the .mif and registering via ISHELL_RegisterNotify()? Are there occassions when you should use one method over the other?
Q2 - I will probably want to receive the notifiction when my app isn't running, therefore I presume I cannot use ISHELL_RegisterNotify() - why do I not receive notifications when using AEECLSID_PHONENOTIFIER in the .mif?

 

If I register for notifications using AEECLSID_TAPI / NMASK_TAPI_STATUS in the .mif then I do receive notifications (at the start and end of a call), however the value of AEETNotifyInfo.event is invalid it appears.

 

Q3 - Can I use AEECLSID_TAPI notifications instead? If so whats the data structure that should be used instead of  AEETNotifyInfo to obtain the end of call information?

 Q4 - What is the difference between AEECLSID_TAPI notifications and AEECLSID_PHONENOTIFIER notifications? When should you use one instead of the other?
 
 Thanks
 

 
 

If I register for notifications via the mif using AEECLSID_PHONENOTIFIER / AEE_NMASK_VOICE_CALL or AEET_NMASK_PHONE (0x1001081 / x0001 or 0x0010) then I receive no notifications at all in my code (running on the simulator).

I can however receive the notifications if I instead use:

ISHELL_RegisterNotify(GetApp()->piShell, AEECLSID_SEARCH411, AEECLSID_PHONENOTIFIER, AEET_NMASK_VOICE_CALL).
 

Q1 - What is the difference between registering for notifications via the .mif and registering via ISHELL_RegisterNotify()? Are there occassions when you should use one method over the other?
Q2 - I will probably want to receive the notifiction when my app isn't running, therefore I presume I cannot use ISHELL_RegisterNotify() - why do I not receive notifications when using AEECLSID_PHONENOTIFIER in the .mif?

 

If I register for notifications using AEECLSID_TAPI / NMASK_TAPI_STATUS in the .mif then I do receive notifications (at the start and end of a call), however the value of AEETNotifyInfo.event is invalid it appears.

 

Q3 - Can I use AEECLSID_TAPI notifications instead? If so whats the data structure that should be used instead of  AEETNotifyInfo to obtain the end of call information?

 Q4 - What is the difference between AEECLSID_TAPI notifications and AEECLSID_PHONENOTIFIER notifications? When should you use one instead of the other?
 
 Thanks
 

 
 

it seems a wrong class is registered via MIF. plz check. AEECLSID_PHONENOTIFIER is defined as 0x1001051.
#define AEECLSID_PHONENOTIFIER 0x01001051 (in AEEPHONENOTIFIER.bid)MASK may be 0x0101 (AEET_NMASK_VOICE_CALL, AEET_NMASK_NEW_CALLDESC).  in case of ISHELL_RegisterNotify(), the App has to register each time device restarts. AEECLSID_TAPI is depricated.AEECLSID_phonenotifiers is more wide & can deliver more info about different types of calls. data has to be interpretted in dirrerent ways for each of them, see docs in api ref.

it seems a wrong class is registered via MIF. plz check. AEECLSID_PHONENOTIFIER is defined as 0x1001051.
#define AEECLSID_PHONENOTIFIER 0x01001051 (in AEEPHONENOTIFIER.bid)MASK may be 0x0101 (AEET_NMASK_VOICE_CALL, AEET_NMASK_NEW_CALLDESC).  in case of ISHELL_RegisterNotify(), the App has to register each time device restarts. AEECLSID_TAPI is depricated.AEECLSID_phonenotifiers is more wide & can deliver more info about different types of calls. data has to be interpretted in dirrerent ways for each of them, see docs in api ref.