MyWebService.aspx


IncomingCall

Method that your SOAP object should implement to receice incoming phone calls.

Call Method
[VB.NET]
   Sub IncomingCall (DestinationAddress As String, OriginationAddress As String, SessionGuid As String, NotificatonGuid As String)
Parameters
   DestinationAddress
         Your phone or extension number(Assigned by AcrossCommunications service)
   OriginationAddress
         Called party information
   SessionGuid
         Session ID
   NotificatonGuid
         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