Phone


AcceptCall

Accept incoming call

Call Method
[VB.NET]
   Sub AcceptCall (NotificationID As String)
Parameters
   NotificationID
         Notification ID
VB.NET Example Switch to language: [C#]
  public void IncomingCall( string DestinationAddress, string OriginationAddress, string SessionGuid, string NotificatonGuid ){
  Dim phone As New PhoneRef.Phone()
      Try
          IfOriginationAddress.EndsWith( "3188076" ) Then
              phone.AcceptCall( NotificationGuid )
              phone.Say( NotificationGuid, "This is a test accrosscommunication incoming client!!!" )
              phone.PlayDigits( NotificationGuid, "5" )
              phone.HangUp( NotificationGuid )
          
          Else
              phone.RejectCall( NotificationGuid )
          End If
      
      Finally
          phone.Release( NotificationGuid )
          Dim sess As New SessionRef.Session()
          sess.Release( SessionGuid )
      End Try
  End Sub