×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    44

    How to trace GSM call is running or not, In VOIP apps running in device

    Hello All,

    i have VOIP application, In this application before starting of any VOIP call. i wanted to first check is there any GSM call is running in device, if there is any GSM call don't connect any VOIP call.

    if any one has the solution of this problem. Please help me.

    Thank You

  2. #2
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: How to trace GSM call is running or not, In VOIP apps running in device

    Hello,
    did you already have a look at CTelephony API?
    This is a starting point:
    http://www.developer.nokia.com/Commu..._of_CTelephony

    regards
    pg

  3. #3
    Registered User
    Join Date
    Jul 2012
    Posts
    44

    Re: How to trace GSM call is running or not, In VOIP apps running in device

    Hi pavarang,

    I have already tried this stuff but i am unable to find the solution. My application is for VOIP calling and in this i want to track, Is any GSM call is running in the device before connecting any VOIP call.
    If any GSM call is running i have to refuse the VOIP call.

    Thank You

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,004

    Re: How to trace GSM call is running or not, In VOIP apps running in device

    More precisely see this link : http://www.developer.nokia.com/Commu...ith_CTelephony

    Check in RunL() if the call status is connected or else(if connected then no Voip call otherwise continue with Voip calling)

  5. #5
    Registered User
    Join Date
    Jul 2012
    Posts
    44

    Re: How to trace GSM call is running or not, In VOIP apps running in device

    Hello Vineet,

    Please see the below code (it is working in the case of GSM call during running voip call) but this time my need is just opposite.
    If there is any problem please suggest me.

    void CTelObserver::RunL()
    {

    if (iStatus == KErrNone)
    {
    CTelephony::TCallStatus status = iCallStatus.iStatus;
    switch (status)
    {
    case CTelephony:: EStatusConnecting:
    {
    symbian_ua_anycall();
    break;
    }
    case CTelephony:: EStatusAnswering:
    {
    symbian_ua_endcall();//star
    break;
    }
    case CTelephony::EStatusRinging:
    {
    //symbian_ua_endcall();
    break;
    }
    case CTelephony::EStatusConnected:
    {
    symbian_ua_endcall();
    break;
    }
    case CTelephony:: EStatusIdle:
    {
    symbian_ua_endcall();
    break;
    }
    default:
    {

    break;
    }
    }
    // Start listening for the next call
    StartListening();
    }
    }



    Thank You

  6. #6
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,004

    Re: How to trace GSM call is running or not, In VOIP apps running in device

    As soon as your app is launched, you need to start listening for changes in GSM call status. This way whenever a GSM call is initiated(after your app is launched) you will get notified & you can then handle the Voip calling accordingly.

    Right now when do you start listening for GSM call notifications?

  7. #7
    Registered User
    Join Date
    Jul 2012
    Posts
    44

    Re: How to trace GSM call is running or not, In VOIP apps running in device

    I am using start listening when any user successfully logged in through the application.

  8. #8
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,004

    Re: How to trace GSM call is running or not, In VOIP apps running in device

    yep that is correct.Make a call to your mobile from another phone & receive the call, now the status should be connected(take a bool variable let say & make it true this time). Next try making the Voip call & check for that bool , if its true then discard voip call else make the voip call.

    NOTE: make sure to make the bool variable as false in case of disconnection of call.

  9. #9
    Registered User
    Join Date
    Jul 2012
    Posts
    44

    Re: How to trace GSM call is running or not, In VOIP apps running in device

    hello vineet,
    i have tried this but it is not working, in case when gsm call is already running and then voip call comes.

    Thank you

  10. #10
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,004

    Re: How to trace GSM call is running or not, In VOIP apps running in device

    There must be some notifications which you get when a Voip call arrives, so you can disconnect(CTelephony::HangUp()) the GSM call when that happens.

  11. #11
    Registered User
    Join Date
    Jul 2012
    Posts
    44

    Re: How to trace GSM call is running or not, In VOIP apps running in device

    I have tried (CTelephony::HangUp()) but its not working... GSM call could not Terminate. may be i am not using in proper way. could u please help me some other way..

    Thanks You

  12. #12
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,004

    Re: How to trace GSM call is running or not, In VOIP apps running in device

    My mistake, Hangup() only works for the calls which are dialled by the app not for incoming calls. There are methods like using CHUP method of AT commands or a workaround of 'red/No' key simulation,so its upto you to use either of them. Search about these methods on forum itself, currently i am not able to do so due to some maintenance work which is going on with website.

  13. #13
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,683

    Re: How to trace GSM call is running or not, In VOIP apps running in device

    Hanging up a voice call which is not owned by you requires NetworkControl capability. Anyway, if you plan to have the code signed for distribution, a VoIP call should not interfere with a GSM call as far as I remember (but I have not checked it now).
    So far in this thread you wanted to detect ongoing GSM calls, that should be a fine direction. Try checking http://www.developer.nokia.com/Commu...Indicators_API if it helps.

Similar Threads

  1. Replies: 2
    Last Post: 2013-02-08, 11:18
  2. Application running on emulator but not running on Device
    By syedshakeel2004 in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 3
    Last Post: 2010-09-28, 13:55
  3. GUI apps running in the background
    By widetech1 in forum Symbian
    Replies: 3
    Last Post: 2009-03-01, 13:22
  4. Unable to Call on device While application is running?
    By praveen.saini in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2007-12-26, 07:08

Posting Permissions

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