×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Thread: Call diverting

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    278

    Question Call diverting

    Hi friends,
    I want to divert incoming calls to specific number.
    can someone please help me, how to do this in symbian c++ for 2nd and 3rd edition.
    Thanks in advance.

    Regards,

    Prashant.

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

    Re: Call diverting

    I suppose only API that could be used for this purpose that would work on both 2nd & 3rd ed would be Etelmm stuff, and those APIs are not included in the public SDK.

  3. #3
    Registered User
    Join Date
    Sep 2009
    Posts
    278

    Re: Call diverting

    Thank you very much symbianyucca for replying me. I have ETELMM lib but can you please help me how to divert a incoming call to specified number using ETELMM.
    Thanks in advance.

    Regards,
    Prashant

  4. #4
    Registered User
    Join Date
    Sep 2009
    Posts
    278

    Re: Call diverting

    I got following code i used it in ringing status of incoming call but still its not working. please someone help me.

    RTelServer iServer;
    RMobilePhone iPhone;
    RTelServer::TPhoneInfo info;
    User::LeaveIfError(iServer.Connect());
    CleanupClosePushL(iServer);

    _LIT(KTsyName, "phonetsy.tsy");
    User::LeaveIfError(iServer.LoadPhoneModule(KTsyName));
    User::LeaveIfError(iServer.GetPhoneInfo(0, info));
    User::LeaveIfError(iPhone.Open(iServer, info.iName));
    CleanupClosePushL(iPhone);
    //RMobilePhone::GetBatteryInfo();
    RMobilePhone::TMobilePhoneCFChangeV1 aInfo;
    aInfo.iServiceGroup = RMobilePhone::EVoiceService;
    aInfo.iAction = RMobilePhone::EServiceActionRegister;
    aInfo.iNumber.iTelNumber.Append(_L("+919623510619"));
    aInfo.iNumber.iTypeOfNumber = RMobilePhone::EUnknownNumber;
    aInfo.iNumber.iNumberPlan = RMobilePhone::EUnknownNumberingPlan;
    aInfo.iTimeout = 10;
    TRequestStatus status;
    iPhone.SetCallForwardingStatus(status,RMobilePhone::ECallForwardingNoReply,aInfo);

    User::WaitForRequest(status);

  5. #5
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Call diverting

    Quote Originally Posted by prashantchougule.cs View Post
    Hi friends,
    I want to divert incoming calls to specific number.
    can someone please help me, how to do this in symbian c++ for 2nd and 3rd edition.
    Thanks in advance.

    Regards,

    Prashant.
    AFAIK Diverting the call is a setting of the phone which divert the call if Busy, Not Answering, and these settings are set before the call came.

    through ETELMM you can do it run time

    I diverted the call through write AT commands "at+ccfc=1,3\mobile number\129" to divert the call to given mobile number if busy status comes. And when any call comes and user disconnect the call before answer call divert to given number.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  6. #6
    Registered User
    Join Date
    Sep 2009
    Posts
    278

    Re: Call diverting

    Thank you very much aamitgupta for your help. But in advance call manager if we block call then its diverting. My application is also similar to advance call manager. Here if i block all unknown Landline numbers then, If i will get call from Unknown landline then it should be divert to perticular number. and if from unknown mobile should not do anything..
    How should i implement this? can you please help me.

  7. #7
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Call diverting

    Quote Originally Posted by prashantchougule.cs View Post
    Thank you very much aamitgupta for your help. But in advance call manager if we block call then its diverting. My application is also similar to advance call manager. Here if i block all unknown Landline numbers then, If i will get call from Unknown landline then it should be divert to perticular number. and if from unknown mobile should not do anything..
    How should i implement this? can you please help me.
    Call diverting has settings like All voice calls,If busy, etc, so you can set as per the list available.

    if you want block all landline number so set all the numbers but this is not good enough, so i think u should try ETELMM.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  8. #8
    Registered User
    Join Date
    Sep 2009
    Posts
    278

    Re: Call diverting

    Thank you aamitgupta for replying actually in my application i have blocklist of numbers from which i am blocking all calls. I also given other settinglist option for blocking calls either from unknown landline or unknown mobiles or from unknown mobile and landline. Now in block from unknown landline number i want to divert all those calls to specified number. can you please help me how to do? or do you have any code for this problem? I not getting how to do from Etelmm.
    Please help me.

  9. #9
    Registered User
    Join Date
    Sep 2009
    Posts
    278

    Re: Call diverting

    As i given in previous reply i dont want to forward calls from all numbers. I just want to forward only calls fro unknown land line numbers.

  10. #10
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Call diverting

    Quote Originally Posted by prashantchougule.cs View Post
    Thank you aamitgupta for replying actually in my application i have blocklist of numbers from which i am blocking all calls. I also given other settinglist option for blocking calls either from unknown landline or unknown mobiles or from unknown mobile and landline. Now in block from unknown landline number i want to divert all those calls to specified number. can you please help me how to do? or do you have any code for this problem? I not getting how to do from Etelmm.
    Please help me.
    How you get the number is unknown landline or mobile?

    I think you have a list of known numbers, and these numbers can call on your mobile only, rest all numbers, if call u, you want to divert it. Am i right?
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  11. #11
    Registered User
    Join Date
    Sep 2009
    Posts
    278

    Re: Call diverting

    when i am get incoming call i am getting status
    if(iCurrentStatus.iStatus == CTelephony::EStatusRinging)
    at this status i am retriving phone number. And after that i am checking for is number starting with 8 or 9 if not then i am considering it as landline.
    And after that i am checking it in contact if its not present in contact then its unkown.
    so now i want to forward unknown landline number calls.

  12. #12
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Call diverting

    Quote Originally Posted by prashantchougule.cs View Post
    when i am get incoming call i am getting status
    if(iCurrentStatus.iStatus == CTelephony::EStatusRinging)
    at this status i am retriving phone number. And after that i am checking for is number starting with 8 or 9 if not then i am considering it as landline.
    And after that i am checking it in contact if its not present in contact then its unkown.
    so now i want to forward unknown landline number calls.
    So do one thing, set your call diverting setting if busy, divert to other number., disconnect the call before answer when you identified number is unknown, now when you disconnect the call before answer, system get busy status and divert your call to predefine number.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  13. #13
    Registered User
    Join Date
    Sep 2009
    Posts
    278

    Re: Call diverting

    ya you are correct but if i am getting call from blockedlist number then also i am disconnecting and also if its from unknown mobile i am disconnecting. So it will forward all disconnected calls. I want to forward only unknown landline numbers. My application is Callblocker.

  14. #14
    Registered User
    Join Date
    Sep 2009
    Posts
    278

    Re: Call diverting

    I am having following code for set call divert state where should i set this in appui() or in getincomingcall()

    TBuf<5> areacode;
    areacode.Append(_L("+919623510619"));
    TInt delaytime = 20;
    iWrapper = CMSCFWrapper::NewL();
    iWrapper->SetCallForwardingL(areacode, CMSCFWrapper::ECallForwardingBusy , delaytime);
    // set call diverting on for all calls
    delete iWrapper;
    if i use this code is it OK to set status.??

  15. #15
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Call diverting

    Quote Originally Posted by prashantchougule.cs View Post
    ya you are correct but if i am getting call from blockedlist number then also i am disconnecting and also if its from unknown mobile i am disconnecting. So it will forward all disconnected calls. I want to forward only unknown landline numbers. My application is Callblocker.
    Yes it will forward all disconnected call.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

Similar Threads

  1. Data Call problem
    By mynick1000 in forum Symbian
    Replies: 7
    Last Post: 2009-01-09, 09:04
  2. New call problem
    By Bill_Murray in forum Symbian
    Replies: 4
    Last Post: 2007-05-27, 15:30
  3. Problem in makeing Phone Call in 2nd edition
    By yogesh.bhople in forum Symbian
    Replies: 4
    Last Post: 2006-11-18, 08:47
  4. call events after dialing from the app
    By white_dragon in forum Symbian
    Replies: 2
    Last Post: 2005-05-18, 22:30

Posting Permissions

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