/// <summary> /// Helper function to compares this SIPURI to another specified SIPURI. /// </summary> /// <param name="other">The other.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns> public bool Compare(SIPURI other) { return ((ToString().ToLower()) == (other.ToString().ToLower())); }
/// <summary> /// Creates a SIP register request. /// </summary> /// <param name="aor">The address-of-record.</param> /// <returns>Message.</returns> public virtual Message CreateRegister(SIPURI aor) { if (aor != null) { RemoteParty = new Address(aor.ToString()); } if (LocalParty == null) { LocalParty = new Address(RemoteParty.ToString()); } Message m = CreateRequest("REGISTER"); m.InsertHeader(new Header("", "Authorization")); return m; }