Example #1
0
		//public TrunkLocalProxie(int transactionId, ByteArrayPart toUri, ByteArrayPart toTag, LocationService.Binding binding, int fromTag, Trunk trunk)
		public TrunkLocalProxie(int transactionId, Trunk trunk, LocationService.Binding binding)
			: base(transactionId)
		{
			//this.toUri = toUri;
			//this.toTag = toTag;
			//this.tag = fromTag;
			this.trunk = trunk;
			this.binding = binding;
		}
Example #2
0
 //public TrunkLocalProxie(int transactionId, ByteArrayPart toUri, ByteArrayPart toTag, LocationService.Binding binding, int fromTag, Trunk trunk)
 public TrunkLocalProxie(int transactionId, Trunk trunk, LocationService.Binding binding)
     : base(transactionId)
 {
     //this.toUri = toUri;
     //this.toTag = toTag;
     //this.tag = fromTag;
     this.trunk   = trunk;
     this.binding = binding;
 }
Example #3
0
        /// <summary>
        /// Обработчик события evRegisteredAORContact от Location Service.
        /// </summary>
        private void LocationService_ContactAdded(ByteArrayPart aor1, LocationService.Binding contact, SipMessageReader request)
        {
            var  aor = aor1.ToString();
            bool ep  = false;

            for (var i = 0; i < request.Count.SupportedCount; i++)
            {
                if (request.Supported[i].Option.ToString() == @"msrtc-event-categories")
                {
                    ep = true;
                    break;
                }
            }

            enhancedPresence.EndpointRegistered(aor, contact.SipInstance.Length != 0 ? contact.SipInstance.ToString() : contact.AddrSpec.ToString(), ep);
        }
Example #4
0
		public LocalProxie(LocationService.Binding binding, int transactionId)
			: base(transactionId)
		{
			this.binding = binding;
		}
Example #5
0
 private void LocationService_ContactRemoved(ByteArrayPart aor1, LocationService.Binding binding)
 {
     enhancedPresence.EndpointUnregistered(aor1.ToString(),
                                           binding.SipInstance.IsValid ? binding.SipInstance.ToString() : binding.AddrSpec.ToString());
 }
Example #6
0
 public static IProxie Create(int transactionId, LocationService.Binding binding)
 {
     return(new LocalProxie(binding, transactionId));
 }
Example #7
0
 public static IProxie Create(int transactionId, Trunk trunk, LocationService.Binding binding)
 {
     return(new TrunkLocalProxie(transactionId, trunk, binding));
 }
Example #8
0
 public LocalProxie(LocationService.Binding binding, int transactionId)
     : base(transactionId)
 {
     this.binding = binding;
 }