Example #1
0
		public string NodeText() {
			string _text = string.Empty;
			_text += (Alias != null) ? Alias.PadRight(30) : "UNKNOWN";
			_text += string.Concat(" [", DottedIPAddressRange, "]").PadRight(22); //max 22 chars _[255.255.255.255-255]
			_text += string.Concat(" [", EndPointProtocol.ToString(), "]").PadRight(4);
			_text += string.Concat(" [", EPStatus, "]").PadRight(11);

			return _text;
		}
Example #2
0
 protected void MakeCall(string pDestNumber, string pDestIPAddress, EndPointProtocol pProtocol)
 {
     session.State = SessionState.Leg2;
     if (pProtocol == EndPointProtocol.SIP)
     {
         session.Channel.MakeCall(session.ANI, pDestNumber, session.OrigIPAddress, pDestIPAddress, IVRConfig.Instance.CodecType);
     }
     else if (pProtocol == EndPointProtocol.H323)
     {
         //TODO:
         //session.Channel.MakeCallH323(session.ANI, session.DestNumber, session.OrigIPAddress, pDestIPAddress, IVRConfig.Instance.CodecType);
     }
     else
     {
         throw new Exception("Unknown protocol");
     }
     SetConnected(pDestIPAddress);
 }