/// <summary> /// Initializes a SIP message. /// </summary> /// <param name="method">The SIP method.</param> /// <param name="uri">The SIP request URI.</param> /// <param name="sipVersion">The SIP version string (or <c>null</c>).</param> public SipRequest(SipMethod method, string uri, string sipVersion) : base(true, sipVersion) { this.methodText = method.ToString().ToUpper(); this.method = method; this.uri = uri; }
/// <summary> /// Constructs a <b>CSeq</b> header from a method and sequence number. /// </summary> /// <param name="number">The sequence number.</param> /// <param name="method">The method.</param> public SipCSeqValue(int number, SipMethod method) : base() { this.number = number; this.method = method.ToString(); SetText(); }