×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    204

    Reading SMS from particular number

    Hi All,

    I want to listen incoming SMS from a particular number and bypass it to my application rather than to native Device Inbox.

    I am able to capture the SMS with particular message body, but how to capture SMS from particular number?

    This is how i used for listen SMS with particular message tag.

    Code:
    User::LeaveIfError(iReadSocket.Open(iSocketServ, KSMSAddrFamily,
    			KSockDatagram, KSMSDatagramProtocol));
    	_LIT8 (KMathTag, "^~^/" );
    	// set match pattern
    	TSmsAddr smsAddr;
    	smsAddr.SetSmsAddrFamily(ESmsAddrMatchText);
    	smsAddr.SetTextMatch(KMathTag); // put KNullDesC8 to catch all messages
    
    	// bind the socket
    	User::LeaveIfError(iReadSocket.Bind(smsAddr));
    Here i am using smsAddr.SetTextMatch(KMathTag); to get the message, but i need to get message from a particular number.

    Please some one help me..

    Thanks,
    Srivatsan D

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: Reading SMS from particular number

    That is not supported. However if you capture all messages, you can filter the ones originating from the number in question.

  3. #3
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    204

    Re: Reading SMS from particular number

    Thanks wizard_hu_,

    One more clarification, if i capture all the message and pick the message which i required what would happen to other messages? will it be sent to native device Inbox ? My requirement is to bypass the message of my interest alone and rest should be sent to Inbox.

    Please give your valuable suggestions.

    Thanks,
    Srivatsan D

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: Reading SMS from particular number

    There may be some more elegant way for that, but delivering the messages manually into the Inbox is always possible. It has been discussed some times already, search for inbox sms for example. The threads saying something about "from:" are usually discussing how to put SMS into the Inbox.

  5. #5
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    204

    Re: Reading SMS from particular number

    Thanks a lot wizard_hu_... Ya delivering SMS to Inbox makes sense. Once again thanks for your valuable suggestions.

    Thanks,
    Srivatsan D

  6. #6
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    204

    Re: Reading SMS from particular number

    Thanks a lot wizard_hu_


    IT WORKS

Similar Threads

  1. Replies: 9
    Last Post: 2010-08-03, 07:03
  2. Wrong value comes when reading sms details
    By aamitgupta in forum Symbian Networking & Messaging (Closed)
    Replies: 14
    Last Post: 2008-11-03, 13:41
  3. Recipient number from outgoing sms
    By jobin.tech in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-09-09, 13:33
  4. reading SMS sent by the SMS gateway by specific application in mobile phone
    By amishra in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2008-08-05, 12:59
  5. Reading SMS from port.
    By prafulpijdurkar in forum Mobile Java General
    Replies: 2
    Last Post: 2008-06-10, 14:32

Posting Permissions

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