×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Mar 2003
    Location
    Luttenberg (Netherlands)
    Posts
    577

    Intercept SMS based on sender address

    Hi,

    we need to intercept SMS based on sender address - like a blacklist of phone numbers. You could use this to implement a SMS spam filter. I know you can use a RSocket with SetTextMatch() to filter SMS based on a prefix. Is this also possible based on sender address? I noticed ReceiveMessage in ETEL MM? It looks easy to inspect the sender address, but I do not understand how to forward the SMS to higher software layers once it is received in ReceiveMessage().

    BR,

    Rene
    Rene Heuven
    Inmote - Creative Smartphone Solutions
    Web: www.inmote.com
    E-mail: rene@inmote.com

  2. #2
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: Intercept SMS based on sender address

    hi,

    check this might be helpful for you...

    http://developer.symbian.com/wiki/di...ges+from+Inbox

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  3. #3
    Registered User
    Join Date
    Mar 2003
    Location
    Luttenberg (Netherlands)
    Posts
    577

    Re: Intercept SMS based on sender address

    Hi,

    sorry - no this is not helpful. This reads a SMS from the inbox. I want to intercept SMS messages from a specific sender address before it reaches the inbox.

    BR,

    Rene
    Rene Heuven
    Inmote - Creative Smartphone Solutions
    Web: www.inmote.com
    E-mail: rene@inmote.com

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,347

    Re: Intercept SMS based on sender address

    Quote Originally Posted by heuven View Post
    Hi,

    sorry - no this is not helpful. This reads a SMS from the inbox. I want to intercept SMS messages from a specific sender address before it reaches the inbox.

    BR,

    Rene
    You need to derive from "MMsvSessionObserver" and implement its HandleSessionEventL callback function. You will receive message creation event under EMsvEntriesCreated case. But you have to listen for the messages created in Inbox and then you can perform the operations you want. You can retrieve all the information from the message after that. I am afraid that you can do it without listening for the message creation event in Inbox.

    You can see this article: SMS Operations
    Nokia Developer Wiki Moderation team

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: Intercept SMS based on sender address

    Quote Originally Posted by heuven View Post
    from a specific sender address before it reaches the inbox.
    That is not possible. If you check TSmsSockAddr, it has some text to match and an "identifier" to match. And possible match types are specified by TSmsAddrFamily. MSISDN is not amongst them.

  6. #6
    Registered User
    Join Date
    Mar 2003
    Location
    Luttenberg (Netherlands)
    Posts
    577

    Re: Intercept SMS based on sender address

    Hi wizard_hu_,

    thanks for reading the question accurately ("from a specific sender address before it reaches the inbox.").

    Not possible in this case is not really a satisfying answer.

    - Is this not a valid and common use case? So why is there no API? SMS has been around quite long now.
    - Was there any API available in the past (now deprecated)?
    - What about a non-public API?

    We are a Symbian partner with access to Binary Access Kits.

    Thanks for any help,

    Rene
    Rene Heuven
    Inmote - Creative Smartphone Solutions
    Web: www.inmote.com
    E-mail: rene@inmote.com

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: Intercept SMS based on sender address

    Quote Originally Posted by heuven View Post
    - Is this not a valid and common use case?
    Indeed: no, it is not. Can you tell such use case? Monitoring appliances (baby, car, house, etc.) will not care about the message appearing in the inbox. Spyphone applications are somewhere on the border of valid-invalid, legal-illegal, and they are definitely do not form a primary target for support. And in fact they can be easily developed using the text-based match.
    So why is there no API? SMS has been around quite long now.
    Exactly, that is also a reason: you can freely check specifications of Short Message(s/ing?) System. Specifications usually also contain the intended purpose. And normally implementations are keeping both in mind. What does not need to be supported, is not supported.
    - Was there any API available in the past (now deprecated)?
    - What about a non-public API?
    No, there was/is no such API. I was developing SMS-things for an NRC project 3 years ago, and I was given access to the complete source code for 3650, 6600, 6630, 9500, E60...
    We are a Symbian partner with access to Binary Access Kits.
    ... so it does not matter whatever access you have, there is no such 'hook' API in S60 1st, 2nd, 2nd FP2 and 3rd editions at least.

  8. #8
    Registered User
    Join Date
    Mar 2003
    Location
    Luttenberg (Netherlands)
    Posts
    577

    Re: Intercept SMS based on sender address

    Hi wizard_hu_,

    It can imagine at least 2 use cases:

    1. spam filter - the user can define a blacklist of phone number
    for which it does not want to receive any further SMS messages.

    2. filtering legacy SMS messages from a server - when developing applications which deal with voicemails or other applications which replace existing services which are SMS based, it is sometimes not feasible / possible to change the server implementation. The server will keep sending SMS messages (from a specific phone number) although the user also has installed a replacement application for this service.

    I am working on case 2 now. From your answers it looks like there is little hope on a solution.

    Basically with matching the text using a prefix it works, but we have to explicitly put every incoming SMS message which does not come from the server into the inbox. I consider this as risky and unnecessary.

    There also seems to be a flag which could be used server-side? "Protocol ID 40"? When this flag is specified the SMS message will never go to the inbox of the device? I have this information from an operator, but it should be possible to find this information also in public specifications for SMS messaging. However, so far I did manage to find a clear statement. The operator claims the flag does not work for S60 devices.

    Sorry about my persistence, but for us it quite important to find a satisfying solution here.

    BR,

    Rene
    Rene Heuven
    Inmote - Creative Smartphone Solutions
    Web: www.inmote.com
    E-mail: rene@inmote.com

Similar Threads

  1. SMS BASED APPLICATION DEVELOPMENT
    By mabilash in forum General Messaging
    Replies: 78
    Last Post: 2010-07-20, 16:07
  2. Read SMS/ SMS Alert.
    By nirenj in forum General Messaging
    Replies: 3
    Last Post: 2009-01-14, 12:39
  3. Replies: 1
    Last Post: 2008-06-04, 09:31
  4. Send SMS Problem. Cannot Get SMSC Address. Due to Strange SIM Card?
    By cksong in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-07-02, 16:13
  5. Replies: 1
    Last Post: 2002-05-10, 18:59

Posting Permissions

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