P990i outgoing number is wrong

Login to reply to this topic.
Sun, 2007-01-28 04:14
Joined: 2004-12-03
Forum posts: 53

Hi.
I am trying to retrieve outgoing call number on p990i.
My code works correctly on all S60v3. 

The problem with UIQ3 is that it is not returning full number. It always give me reduced number (without +)

If user dial +4433333333
I get 4433333333   //WRONG

If user dial +4733333333444
I get 4733333333444   //WRONG

if user dial 2255555555 //
I get 2255555555   //OK




my code: (I dont believe that is something wrong here:) )

Code:
CTelephony::TCallInfoV1 callInfoV1;
CTelephony::TCallInfoV1Pckg callInfoV1Pckg( callInfoV1 );

CTelephony::TCallSelectionV1 callSelectionV1;
CTelephony::TCallSelectionV1Pckg callSelectionV1Pckg( callSelectionV1 );

CTelephony::TRemotePartyInfoV1 remotePartyInfoV1;
CTelephony::TRemotePartyInfoV1Pckg remotePartyInfoV1Pckg( remotePartyInfoV1 );

callSelectionV1.iLine = CTelephony::EVoiceLine;
callSelectionV1.iSelect = CTelephony::EInProgressCall;//;CTelephony::EActiveCall;

TInt err;

err=iTelephony -> GetCallInfo( callSelectionV1Pckg, callInfoV1Pckg, remotePartyInfoV1Pckg );
iDialedNumber.Copy(callInfoV1.iDialledParty.iTelNumber);

Regards
Wojciech Freliszka

Wojciech Freliszka
NinthBit


Sun, 2007-01-28 11:51
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2009
Re: P990i outgoing number is wrong
Check the iTypeOfNumber of callInfoV1.iDialledParty
This will give you the information whether this is a national or international number being used and thus whether you should add a + or not in front of the number to do your processing.


Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Sun, 2007-01-28 14:36
Joined: 2004-12-03
Forum posts: 53
Re: P990i outgoing number is wrong
That solves everything.... Grin

Thanks Eric for help


Regards
Wojtek Freliszka

Wojciech Freliszka
NinthBit

  • Login to reply to this topic.