locked
How to programmatically detect if the called line is busy / rejected / no answer? RRS feed

  • Question

  • I tried the very easy Microsoft.WindowsMobile.Telephony API also with the Cellular Emulator, but I couldn't find a way to programmatically detect the state of the called line (ex. if it is busy).

    I see that there are a lot of System.Property that can be handled, for example the SystemProperty.PhoneIncomingCall, but I couldn't find neither here something that can be handled to check the called line status.

    Microsoft.WindowsMobile.Telephony.

    Phone phone = new Microsoft.WindowsMobile.Telephony.Phone();

    phone.Talk(

    "+14250010001");

    .... HOW TO UNDERSTAND THE CALLED LINE STATUS???

     

    Thanks

    Enzo Contini

    Tuesday, April 13, 2010 9:55 AM

Answers

  • Hi ,

    If you want to detect if there is an active call :

    SystemState.PhoneCallTalking

    If SystemState.PhoneCallTalking = True Then
    'Add code here to handle what you want
    End If

     

    If you want to detect Rejected or Missed Call :

    SystemState.PhoneMissedCall

    SystemState.PhoneMissedCalls

     

    I hope that helps

    Regards : MrAlshahawy


    Please remember to mark the replies as answers if they help Don't forget to Vote the answers as Helpful if it helps
    Tuesday, April 13, 2010 10:23 AM

All replies

  • Hi ,

    If you want to detect if there is an active call :

    SystemState.PhoneCallTalking

    If SystemState.PhoneCallTalking = True Then
    'Add code here to handle what you want
    End If

     

    If you want to detect Rejected or Missed Call :

    SystemState.PhoneMissedCall

    SystemState.PhoneMissedCalls

     

    I hope that helps

    Regards : MrAlshahawy


    Please remember to mark the replies as answers if they help Don't forget to Vote the answers as Helpful if it helps
    Tuesday, April 13, 2010 10:23 AM
  • Thank you.

    I saw that propreties but what I would like to do is to detect the busy tone and to do that I suppose I have to use the TAPI using the p/invoke (http://msdn.microsoft.com/en-us/magazine/cc164123.aspx).

    Do you agree that the ManagedWrappers does not support already that functionality?

    Thank you again

    Enzo

    Wednesday, April 14, 2010 9:42 AM