Esempio n. 1
0
        public SipFromHeader CreateFromHeader(SipAddress address, string tag)
        {
            Check.Require(address, "address");

            SipFromHeader h = new SipFromHeader();
            h.DisplayInfo = address.DisplayInfo;
            h.SipUri = address.Uri;
            h.Tag = tag;
            return h;
        }
Esempio n. 2
0
        public SipToHeader CreateToHeader(SipAddress address, string tag = null)
        {
            Check.Require(address, "address");

            SipToHeader h = new SipToHeader();

            h.DisplayInfo = address.DisplayInfo;
            h.SipUri      = address.Uri;
            h.Tag         = tag;
            return(h);
        }