×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    17

    Arrow "Sms Assistant" - Phonenumber contacts problem

    i´ll use parts of http://wiki.forum.nokia.com/index.ph...pp_using_Pys60

    but there a problem

    in line #31
    messaging.sms_send(i.address(m[0]),data)
    the "phonenumber" is not "+49160......."
    its like "Julian"

    theres a problem, when 2 or more numbers in one contact
    so the message can not sent

    plz help me to extract the #Nr, not the contact name

    thx

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

    Re: "Sms Assistant" - Phonenumber contacts problem

    Seems to work for me. When I print i.address(m[0]) it shows the number.
    Anyway, a workaround is to check the phone log for the number from which the latest SMS was received. See this article for information on how to use logs (in your case see especially the second example).

    Hope that helps

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    17

    Re: "Sms Assistant" - Phonenumber contacts problem

    Is in your contact several numbers or only one?
    when i print it, it print the contact name, not the nr.
    thx for ur quick answer and the link

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

    Re: "Sms Assistant" - Phonenumber contacts problem

    Quote Originally Posted by zoellner86 View Post
    but there a problem in line #31

    messaging.sms_send(i.address(m[0]),data)
    The API at least in 1.4.3 is this (first line), so you might have to do this (second line):

    sms_send(number,msg,encoding='7bit', callback=None,name="")
    messaging.sms_send(name=i.address(m[0]),msg=data)
    The other problem with one name having several phone numbers you might be able to solve with lots of code to search the Contacts database with a name and then name for all possible phone numbers. However that's still not a generic solution, since you(r script) cannot know which one is the CORRECT number to send the message - without asking first from user just like built-in S60 software is doing.

    Cheers,

    --jouni

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

    Re: "Sms Assistant" - Phonenumber contacts problem

    Quote Originally Posted by zoellner86 View Post
    Is in your contact several numbers or only one?
    You're right, it does show the name instead of the number. I tried adding another number to a contact and checking it for old message I had in the inbox and it worked. But when I added myself to the contacts list (with 2 numbers) it showed the name.

    If you believe this is a bug, you can report it here.

  6. #6
    Registered User
    Join Date
    Apr 2008
    Posts
    17

    Re: "Sms Assistant" - Phonenumber contacts problem

    hey thx for Your replys,..
    the logs modul is the (my) way.

    thx

Similar Threads

  1. Another Contacts problem
    By adenbeckitt in forum Symbian
    Replies: 1
    Last Post: 2008-04-15, 04:30
  2. PIM API adding new contacts problem
    By hoppelmoppel in forum Mobile Java General
    Replies: 3
    Last Post: 2007-04-22, 17:12
  3. contacts - problem
    By Yarx in forum Symbian
    Replies: 4
    Last Post: 2007-03-06, 17:52
  4. Problem in synchronizing of contacts using PC Suite
    By qqq3 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2002-10-03, 14:31
  5. 9210i: problem to syncronize Outlook 2002 contacts.
    By al02052 in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2002-09-27, 08:33

Posting Permissions

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