| | 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 ); |
| | } |
| | } |