×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Dec 2010
    Location
    India , Noida
    Posts
    53

    How to handle Incomming Call using CTelephony class

    Hello All,

    I have create a application for call back.
    In my application first call to server using Access Number . Then server disconnect the call and do callback.

    I have successfully make call using my application . when I call my application goes to background and show calling window at foreground.
    When i get a incomming call from server I have to receave that call and on receaving event I have to send pin number and phon no.

    for this I use some code in OfferKeyEventL like this

    TKeyResponse CCallingCardContainer::OfferKeyEventL(
    const TKeyEvent& aKeyEvent,
    TEventCode aType )
    {if (aType == EEventKey)
    {
    switch (aKeyEvent.iCode)
    {
    case EKeyYes:
    {
    CEikonEnv::Static()->InfoMsg(_L("OfferKeyEventL")) ;
    TBuf<50> pin;
    pin.Copy(_L("1234#"));
    User::After(5000000);

    iTelephony->TelApiWrapperSendDTMFL(CTelephony::EISVCall1,pin);

    User::After(9000000);
    TBuf<50> dtmfnumber;
    dtmfnumber.Copy(_L("91123456789#"));
    //iAnswerInCallTelephony->TelApiWrapperAnswerInCallL();
    iTelephony->TelApiWrapperSendDTMFL( CTelephony::EISVCall1,
    dtmfnumber);
    return EKeyWasConsumed;

    }
    break;

    default:
    break;
    }
    }

    But I am unable to send DTMF on receaving event using Green Key.

    where i am wrong .
    when incomming call came it show incomming call window at foreground and my application goes to background.
    Will this be problem that my application is on Background.

    Help me.
    Thanks & Regards
    Chandra Bhushan Singh
    Adore Infotech Pvt. Ltd.

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

    Re: How to handle Incomming Call using CTelephony class

    why you are doing it in offerkeyeventL?? just check with CTelephony when the call status is connected then you can send the DTMF tone. this is alerady discuss several time on FN you can find lots of details here, you just need to search a bit.
    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]

  3. #3
    Regular Contributor
    Join Date
    Dec 2010
    Location
    India , Noida
    Posts
    53

    Re: How to handle Incomming Call using CTelephony class

    Quote Originally Posted by kkrish View Post
    why you are doing it in offerkeyeventL?? just check with CTelephony when the call status is connected then you can send the DTMF tone. this is alerady discuss several time on FN you can find lots of details here, you just need to search a bit.
    Hello kkrish

    I have search for this functionality. But I can not found how to receave call automatically.
    So I switch to green key for receaving incomming call.
    Will you please guide me for handling incomming call .

    you have write
    Quote Originally Posted by kkrish View Post
    when the call status is connected then you can send the DTMF tone.
    How can I know connect incomming call automatically.
    Please guide me
    Thanks & Regards
    Chandra Bhushan Singh
    Adore Infotech Pvt. Ltd.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: How to handle Incomming Call using CTelephony class

    Have you looked into the CTelephony API ? wiki would have several examples on how to use it. You would basically just monitor the incoming calls, and then use the API for answering the call, whic after you could send the DTMF tones with that same API.

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

    Re: How to handle Incomming Call using CTelephony class

    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]

Similar Threads

  1. How to handle Incomming Call ???
    By rizwankhot in forum Mobile Java General
    Replies: 8
    Last Post: 2011-05-10, 20:32
  2. How to make call using CTelephony Class
    By jsscb in forum Symbian User Interface
    Replies: 3
    Last Post: 2011-02-14, 11:30
  3. How to get phone number during incoming call using CTelephony ?
    By ramesh12 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2009-07-06, 14:13
  4. Replies: 1
    Last Post: 2007-09-21, 15:32

Posting Permissions

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