Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003

    incoming call phone number

    how can i retrive the phone number of the caller?

  2. #2
    Registered User
    Join Date
    Mar 2003

    RE: incoming call phone number

    hi ,

    First get the session entry. If successful, try to get the CBaseMTM ref from the registry. Typecast the CBaseMTM to the CSMSBaseMTM. Get the header from the CSMSBaseMTM. After this use the api from the CSMSBaseMTM to retrieve the FromAddress().

    Logic wise,
    //Get the entry from the reserved session
    CMsvEntry* lEntry = iSession->GetEntryL(aEntryId);
    TMsvEntry lMsvEntry = lEntry->Entry();

    //Create the MTM ref from the registry
    CBaseMtm* lSmsMtm = iMtmReg->NewMtmL(lMsvEntry.iMtm);

    //Set the MTM context to the current entry.

    //Load message

    //Get the CSmsHeader
    CSmsHeader& lCSmsHeader = ((CSmsClientMtm*)lSmsMtm)->SmsHeader();

    //Get the Sender Addr
    TBuf<50> lSenderAddr(lCSmsHeader.FromAddress());


    Hope that it works


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts