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
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
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.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]
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).
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
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 Qt-Quick to make your application UI more attractive.
http://store.ovi.com/content/271896 | http://store.ovi.com/content/276199 | http://store.ovi.com/content/276202 | http://store.ovi.com/content/280827
one more thing Nokia-6600 is 7.0s not 8.0a
Use Qt-Quick to make your application UI more attractive.
http://store.ovi.com/content/271896 | http://store.ovi.com/content/276199 | http://store.ovi.com/content/276202 | http://store.ovi.com/content/280827
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
can you write the exact code that you have written because it is difficult to just guess the error.
Use Qt-Quick to make your application UI more attractive.
http://store.ovi.com/content/271896 | http://store.ovi.com/content/276199 | http://store.ovi.com/content/276202 | http://store.ovi.com/content/280827