×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    29

    SX1 dialling initiates fax call instead of voice call

    I have an application which dials phone numbers based on the dialler example.

    It works OK on my test devices (7650, 6600, 3230) but not the SX1. For some reason when I initiate a call on it it makes it a fax call.

    Even using the dialler example straight it has the same problem - it works on the other devices but on the SX1 it is a fax call.

    Has anyone else encountered this? Is there somewhere in the sequence of establishing an RPhone, RLine, RCall, etc. where you can specify the call is to be a voice call instead of a fax call?

    The dialler example code is:

    //Create a connection to the tel server
    RTelServer server;
    CleanupClosePushL(server);
    User::LeaveIfError(server.Connect());

    //Load in the phone device driver
    User::LeaveIfError(server.LoadPhoneModule(KTsyName));

    //Find the number of phones available from the tel server
    TInt numberPhones;
    User::LeaveIfError(server.EnumeratePhones(numberPhones));

    //Check there are available phones
    if (numberPhones < 1)
    {
    User::Leave(KErrNotFound);
    }

    //Get info about the first available phone
    RTelServer::TPhoneInfo info;
    User::LeaveIfError(server.GetPhoneInfo(0, info));

    //Use this info to open a connection to the phone, the phone is identified by its name
    RPhone phone;
    CleanupClosePushL(phone);
    User::LeaveIfError(phone.Open(server, info.iName));

    //Get info about the first line from the phone
    RPhone::TLineInfo lineInfo;
    User::LeaveIfError(phone.GetLineInfo(0, lineInfo));

    //Use this to open a line
    RLine line;
    CleanupClosePushL(line);
    User::LeaveIfError(line.Open(phone, lineInfo.iName));

    //Open a new call on this line
    TBuf <100> newCallName;
    RCall call;
    CleanupClosePushL(call);
    User::LeaveIfError(call.OpenNewCall(line, newCallName));
    //newCallName will now contain the name of the call

    //Dial a number
    #if __WINS__
    NEikonEnvironment::MessageBox (KEmulatorError);
    #else
    User::LeaveIfError(call.Dial(aPhoneNumber));
    #endif

  2. #2
    Registered User
    Join Date
    Jul 2003
    Posts
    37

    re :SX1 dialling initiates fax call instead of voice call

    I had the same problem
    do the following

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    37

    use the following lines

    TInt count;
    m_Phone.EnumerateLines(count);

    RPhone::TLineInfo lineInfo;
    for (TInt i=0;i<count;i++)
    {
    m_Phone.GetLineInfo(i, lineInfo);
    TBuf8<KMaxFileName> PhoneLine;
    PhoneLine.Copy(lineInfo.iName);
    PhoneLine.LowerCase();
    if (PhoneLine.Find(_L8("voice")=KErrNotFound)
    {
    break;
    }
    }

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    29

    Talking Re: SX1 dialling initiates fax call instead of voice call

    That works great! Thanks for that Redzvika. I'll send you a free copy of the program when its done.

    Its a shame so much of Series 60 programming is a process of finding these little bits of mystical information.
    Last edited by kdinn; 2005-08-25 at 06:18.

Posting Permissions

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