×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor
    Join Date
    May 2008
    Posts
    88

    SMS sender's info

    Hey can nebody give me ne idea about how to get the senders mobile number at the reciepient from the SMS.I am only able to get the senders name.
    Rishabh

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: SMS sender's info

    Quote Originally Posted by rishabhgupta View Post
    Hey can nebody give me ne idea about how to get the senders mobile number at the reciepient from the SMS.I am only able to get the senders name.
    Easy. If you have name, then that means the name was found from Contacts. If you want the number, first search name from Contacts and then get related number.

    Enjoy,

    --jouni

  3. #3
    Regular Contributor
    Join Date
    May 2008
    Posts
    88

    Re: SMS sender's info

    Ok this is a good solution but it can be na that the number is not in my list.Then wht to do...Is thr any way to xtract the number itself.
    Rishabh

  4. #4
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: SMS sender's info

    Quote Originally Posted by rishabhgupta View Post
    Ok this is a good solution but it can be na that the number is not in my list.Then wht to do...Is thr any way to xtract the number itself.
    Rishabh
    Code:
    import logs
     
    l=logs.sms(mode='in')
    for i in range(len(l)):print l[i]["number"]
    
    #This prints the numbers of all SMSs in the inbox. For the most recent one, do this:
    
    print l[0]["number"]
    See this article for more info about using logs.

  5. #5
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,800

    Re: SMS sender's info

    Quote Originally Posted by rishabhgupta View Post
    Ok this is a good solution but it can be na that the number is not in my list.Then wht to do...Is thr any way to xtract the number itself.
    Rishabh
    Rishabh,

    If the number isn't in your contact list, you will get the number using the Inbox module and not the name.

    If you have a person's number in the phone book then only his name will come as the SMS address, otherwise it is the number that comes for an unknown number.

    Best Regards,
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  6. #6
    Regular Contributor
    Join Date
    May 2008
    Posts
    88

    Re: SMS sender's info

    Hey can nebody tell me where to find the logs module it isnt in my currently installed version.I am not able to find it on net 2.
    Please
    Rishabh

  7. #7
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: SMS sender's info

    Quote Originally Posted by rishabhgupta View Post
    Hey can nebody tell me where to find the logs module it isnt in my currently installed version.I am not able to find it on net 2.
    Please
    Rishabh
    I assume you've solved this problem, judging by your post in this thread.

  8. #8
    Regular Contributor
    Join Date
    May 2008
    Posts
    88

    Re: SMS sender's info

    Quote Originally Posted by bogdan.galiceanu View Post
    I assume you've solved this problem, judging by your post in this thread.
    Hey no still some problem.......i m not getting the number from this log module too....as this shows the variable l thats used in the solution suggested to me before as of length 0 inspite of the fact that i have unread sms in my inbox
    Rishabh

  9. #9
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,800

    Re: SMS sender's info

    Quote Originally Posted by rishabhgupta View Post
    Hey can nebody tell me where to find the logs module it isnt in my currently installed version.I am not able to find it on net 2.
    Please
    Rishabh
    It comes as default extension with Python 1.4.2 Onwards.
    So you do not need to install it separately as an extension.

    Just Download new version of PyS60

    Best Regards,
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  10. #10
    Regular Contributor
    Join Date
    May 2008
    Posts
    88

    Re: SMS sender's info

    Quote Originally Posted by croozeus View Post
    It comes as default extension with Python 1.4.2 Onwards.
    So you do not need to install it separately as an extension.

    Just Download new version of PyS60

    Best Regards,
    Croozeus
    Ya i m able to use it now....but its not working properly.....as suggested when i use the logs module as follows:
    l= logs.sms(mode='in')

    and then check the length of l by len(l) it shows it to be 0.
    Whats the problem here.

    Plz help me yaar i m stuck in this problem for many days.
    Rishabh

  11. #11
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,800

    Re: SMS sender's info

    Quote Originally Posted by rishabhgupta View Post
    Ya i m able to use it now....but its not working properly.....as suggested when i use the logs module as follows:
    l= logs.sms(mode='in')

    and then check the length of l by len(l) it shows it to be 0.
    Whats the problem here.

    Plz help me yaar i m stuck in this problem for many days.
    Rishabh
    This would mean you would have no incoming SMS in the Log. Try to have an incoming SMS in your Log and then try your CODE.

    Best Regards,
    Croozeus
    Pankaj Nathani
    www.croozeus.com

Similar Threads

  1. How to fake a normal SMS to inbox?
    By luandao2000 in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2011-04-23, 08:26
  2. Inform Client using Class that implements MessageListener to receive SMS
    By damHB in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-11-29, 06:13
  3. sms sender's number
    By kornhed in forum Symbian
    Replies: 1
    Last Post: 2004-07-26, 06:55
  4. SMS Spec info plz for MMS Notification
    By muralimohank in forum General Messaging
    Replies: 2
    Last Post: 2003-05-28, 13:08
  5. Replies: 2
    Last Post: 2002-10-02, 07:15

Posting Permissions

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