MyWebService.aspx


IncomingCall

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

Call Method
[C#]
    IncomingCall (String DestinationAddress, String OriginationAddress, String SessionGuid, String NotificatonGuid)
Parameters
   DestinationAddress
         Your phone or extension number(Assigned by AcrossCommunications service)
   OriginationAddress
         Called party information
   SessionGuid
         Session ID
   NotificatonGuid
         Notification ID
C# Example Switch to language: [VB.NET]
  public void IncomingCall( string DestinationAddress, string OriginationAddress, string SessionGuid, string NotificatonGuid ){
  PhoneRef.Phone phone = new PhoneRef.Phone() ;
      try{
          if(OriginationAddress.EndsWith( "3188076" )){
              phone.AcceptCall( NotificationGuid );
              phone.Say( NotificationGuid, "This is a test accrosscommunication incoming client!!!" );
              phone.PlayDigits( NotificationGuid, "5" );
              phone.HangUp( NotificationGuid );
          }
          else{
              phone.RejectCall( NotificationGuid );
          }
      }
      finally{
          phone.Release( NotificationGuid );
          SessionRef.Session sess = new SessionRef.Session() ;
          sess.Release( SessionGuid );
      }
  }