Symbian
Symbian OS Library

FAQ-1204 How do I silently intercept SMS messages that have specific text within the SMS body text

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Messaging
Created: 01/07/2005 Modified: 03/09/2005
Number: FAQ-1204
Platform: Not Applicable

Question:
Some SMS gateways pre-pend an email address to the SMS body text. As a result my code to silently intercept SMS messages based on the first string in the SMS body fails. Is there anyway to search for my identifier string within the SMS body text, rather than just at the beginning.

Answer:
This functionality is not supported.

    The "Easy API for sending and receiving SMS datagrams" on Symbian's Developer Network allows silent interception of SMS messages that have the specified text at the begining of the SMS body. No API exists to allow silent interception for messages where the text occurs within the SMS body.

    Notes
    1. Silent interception (where the SMS does not go to the inbox and alert the user) is not supported but it is possible to intercept messages after the user has been alerted. These can then be parsed for the correct string.
    2. Symbian OS v7.0s and later provide support for intercepting Email sent via SMS (as defined in RFC822 Email via SMS - in 3G TS 23.040 V4.0.0 (2000-07)) using TSmsAddrFamily::ESmsAddrEmail. Unfortunately this does not help with the gateway email problem above, because the RFC requires that there is an IE (information element) in the SMS (with RFC identifier) that contains the length of the e-mail address. This is not present if the gateway simply prepends the text to the message body.