Recepient number In outgoing SMS
| Sat, 2008-06-07 22:21 | |
|
Hi, I am trying to pre-process the incoming and outgoing SMS in HandleSessionEventL. I am able to trap both incoming and outgoing SMS but with a small problem In case of incoming SMS, I am able to extract from number using smsheader.FromAddress();. However, in case of outgoing SMS, I am not able to get the recepient's phone number. I can use iDetails but if the contact exists, it returns alias and not real number. Pls help. |
|






Forum posts: 1156
That's a problem that I also try to solve, so far without success. You find some details in my earlier post here:
http://www.newlc.com/forum/getting-numeric-phone-number-sms-inbox-and-sent-folders
I also posted the same question over at Symbian.com, with not much result so far:
http://developer.symbian.com/forum/thread.jspa?threadID=25752
In any case: If you do find a solution, e.g. through another forum or by further investigations from your part, please report back here. TIA!
René Brunner
Forum posts: 1156
Ok, thanks to a helpful soul over in the Symbian.com forum, I finally found out that I was mistaken. From my last post there:
TMsvEntry.iDetail is the contact name, if there is any. Depending on whether the message was received or sent, the phone number(s) can always be found either through CSmsHeader::FromAddress or in the CSmsHeader::Recipients array, all this after using CSmsHeader::RestoreL of course.
If one needs to distinguish between sent and received SMS, use CSmsHeader::Type: The values are CSmsPDU::ESmsSubmit (sent) and CSmsPDU::ESsmsDeliver (received).
So, visu, I think the solution for you is to look into CSmsHeader::Recipients for outgoing SMS, instead of iDetails.
René Brunner