Failed to cancel out-bound call by setting acknowledge = true when receiving 
phnEvtStartDial  

Someone might have encountered such issue before. I googled and searched 
forums, I can't get the reason. 
I used the following code, failed to cancel out-oubound call. And need your 
help, thank you in advance. 


PhnEventPtr phoneEvent = (PhnEventPtr)cmdPBP;
if (phoneEvent->eventType == phnEvtStartDial)
{
UInt16 phnLibRef = 0; 

Err error = HsGetPhoneLibrary (&phnLibRef);
if (error)
return;
number = PhnLibGetField (phnLibRef, address, phnAddrFldPhone);
if (number)
{
MemPtrFree(number); // pointer returned by PhnLibGetField has to be freed
}
MemHandleFree(address);
phoneEvent->acknowledge = true;
PhnLibClose (phnLibRef);
} 
 
 
 

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to