×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    3

    Terminating a call

    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
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    209

    Re: Terminating a call

    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
    Registered User
    Join Date
    Nov 2006
    Posts
    3

    Re: Terminating a call

    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
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Terminating a call

    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.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  5. #5
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Terminating a call

    one more thing Nokia-6600 is 7.0s not 8.0a
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  6. #6
    Registered User
    Join Date
    Nov 2006
    Posts
    3

    Re: Terminating a call

    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
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Terminating a call

    can you write the exact code that you have written because it is difficult to just guess the error.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

Posting Permissions

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