×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    279

    CTelephony::DialNewCall and dashes bug

    Code:
    CTelephony::DialNewCall
    does not call the number if it contains '-'.
    Is there a workaround, or some other API I can use?
    I have tested it on 5530 XM

    Removing the dashes does not seems like a good solution.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: CTelephony::DialNewCall and dashes bug

    Nope, you should make sure that your phone number is in correct format.

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    279

    Re: CTelephony::DialNewCall and dashes bug

    Thanks for replying!
    Still the phonebook can dial such numbers, and when I dial them it shows
    "Dialing +32-32131-3123-21" for example, so I guess it uses some other API.
    Removing the dashes will mitigate the problem but will bring another set of bugs.
    For example when you look at the log I guess the number will not be matched to the contact name( I will check that)

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: CTelephony::DialNewCall and dashes bug

    it is likely that the phonebook has parsing function that removes any characters that are not allowed..

  5. #5
    Registered User
    Join Date
    Jan 2006
    Posts
    279

    Re: CTelephony::DialNewCall and dashes bug

    1. All right, it seems the LOG application recognize the phonenumber even without the dashes, that's great

    2. Anyway it is common for a phone number to have '-' or '.' I think the DialNewCall should handle removing any characters it feels are not allowed. One cannot expect that every developer will implement this logic.

    3. Do you know what kind of API the contacts application uses, so it can show the '-' and '.' in the phone numbers?
    Last edited by microsoft2; 2009-09-08 at 08:58.

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: CTelephony::DialNewCall and dashes bug

    Your x-y-z numbers are probably synchronized from some older model, recent S60 devices do not allow you to enter any 'non-phone-number' character.

  7. #7
    Registered User
    Join Date
    Jan 2006
    Posts
    279

    Re: CTelephony::DialNewCall and dashes bug

    That's true, I have to use the RDA to simulate x-y-z

  8. #8
    Registered User
    Join Date
    Jan 2006
    Posts
    279

    Re: CTelephony::DialNewCall and dashes bug

    Is that all the allowed characters, '0'..'9', +, *, # ?
    Code:
    		
    		for( TInt i = 0; i < iPhoneNumber.Length(); i++ )
    		{
    			if( ( iPhoneNumber[ i ] < '0' || iPhoneNumber[ i ] > '9' ) && iPhoneNumber[ i ] != '#' && iPhoneNumber[ i ] != '*' && iPhoneNumber[ i ] != '+' )
    			{
    				iPhoneNumber.Delete( i, 1 );
    				i--;
    			}
    		}

  9. #9
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: CTelephony::DialNewCall and dashes bug

    You could simply try: start typing a phone number in your device (say, on the idle screen). Make sure that you tap everything at least twice. If it happens to produce different characters, try 3-4-5 times. Then you will find the two missing ones.

Posting Permissions

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