Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User jai2713's Avatar
    Join Date
    Jul 2012
    Posts
    37
    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
    Nokia Developer Champion pavarang's Avatar
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    578
    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 jai2713's Avatar
    Join Date
    Jul 2012
    Posts
    37
    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 vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,841
    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 jai2713's Avatar
    Join Date
    Jul 2012
    Posts
    37
    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 vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,841
    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 jai2713's Avatar
    Join Date
    Jul 2012
    Posts
    37
    I am using start listening when any user successfully logged in through the application.

  8. #8
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,841
    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 jai2713's Avatar
    Join Date
    Jul 2012
    Posts
    37
    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 vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,841
    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 jai2713's Avatar
    Join Date
    Jul 2012
    Posts
    37
    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 vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,841
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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 Python
    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
  •  
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