hi everyone,
iam writing an application to extract the phone number from the incoming call 
for Treo650. 

/**code to get the phone number when incoming call event occurs**/

case phnLibLaunchCmdEvent:
CharPtr NumberPtr;
phnEventPtr phnEvtPtr;

if(phnEvtPtr->eventType == phnEvtStartIncomingCall)
{
   connectionPtr = (PhnConnectionType *)cmdPBP  //1
   phnHandler = connectionPtr->data.info.caller;//2
   NumberPtr = PhnLibGetField(smsLibRef, address, phnAddrFldPhone);
//3
}

here from 2 , i get PhnAddressHandle type handle. from here i can get the 
number form 3. but my doubt is PhnLibGetField looks for the  number in the 
phone's address book...but what will happen if the caller's contact details are 
not present in the phone book?
will i be able to retrieve the number?

i did not get an opportunity to test the code because i don't have a device 
right now(will be getting one soon..)
awaiting response..
thanx in advance
sriram




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

Reply via email to