Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User ejager's Avatar
    Join Date
    Mar 2003
    Posts
    3
    Hello,

    I've been experimenting a little with the phone module. It seems that you cannot terminate a call which is not yet connected. Calling the hang_up() function results in an error. Is there another way to achieve this?

    EJ

  2. #2
    Regular Contributor otsov's Avatar
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    209
    Originally posted by ejager
    [B]It seems that you cannot terminate a call which is not yet connected. Calling the hang_up() function results in an error. Is there another way to achieve this? B]
    I could not replicate this, i.e. I could call "hang_up()" before a call was connected (I used version 1.1.6 on 6630 and 1) "bt_console.py" to test the functionality from my PC and 2) a script invoking both operations in "telephone"). Could you confirm if this is still a problem? Thanks in advance.

    In bug reports please give the following information if possible:

    o What device did you use or did the bug appear in emulator;
    o What version of Python for Series 60 did you use;
    o A code snippet demonstrating the bug (this is highly appreciated).

  3. #3
    Hi,
    I want to terminate every call dialed by the user. But it crashes in the iCall.HangUp() method. Could someone please help me? The code is likely as below:

    iPhone.GetLineInfo(0, lineInfo);
    iLine.Open(iPhone, lineInfo.iName);
    iLine.NotifyStatusChange(iStatus, iCallStatus);
    SetActive();


    in RunL(){
    ...
    Switch(iCallStatus)

    Case RCall::EStatusDialing:
    TBuf <100> lCallName;
    iCall.OpenExistingCall( iLine, lCallName);
    iCall.HangUp(iStatus);//crashes


    ....
    }

    Device: Nokia 6600, Symbian 8.0a

    Waiting for the help...!!!

    Thanks,
    Shivendra

  4. #4
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    try
    1. iCall.HangUp(); instead of iCall.HangUp(iStatus);

    2. iLine.NotifyCallAdded(TRequestStatus &aStatus, TName &aName); instead of iLine.NotifyStatusChange(iStatus, iCallStatus);


    hope this will help you.

  5. #5
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    one more thing Nokia-6600 is 7.0s not 8.0a

  6. #6
    Thanks Krish for your reply.

    I traced the code again, and found that it is crashing in

    iCall.OpenExistingCall( iLine, lCallName);


    i.e.

    iPhone.GetLineInfo(0, lineInfo);
    iLine.Open(iPhone, lineInfo.iName);
    iLine.NotifyStatusChange(iStatus, iCallStatus);
    SetActive();

    in RunL(){
    ...
    Switch(iCallStatus)

    Case RCall::EStatusDialing:
    TBuf <100> lCallName;
    iCall.OpenExistingCall( iLine, lCallName);//crashes
    iCall.HangUp(iStatus);
    ....
    }


    Thanks,
    Shivendra

  7. #7
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    can you write the exact code that you have written because it is difficult to just guess the error.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved