Set() 공개 메소드

public Set ( string name, string value ) : void
name string
value string
리턴 void
예제 #1
0
        public SIPURI(string user, string host, string paramsAndHeaders, SIPSchemesEnum scheme, SIPProtocolsEnum protocol)
        {
            User = user;
            Host = host;
            ParseParamsAndHeaders(paramsAndHeaders);
            Scheme = scheme;

            if (protocol != SIPProtocolsEnum.udp && scheme != SIPSchemesEnum.sips)
            {
                Parameters.Set(m_uriParamTransportKey, protocol.ToString());
            }
        }
예제 #2
0
 public SIPReplacesHeader(string callid, string fromTag, string toTag, bool earlyOnly)
 {
     if (String.IsNullOrWhiteSpace(callid))
     {
         throw new SIPValidationException(SIPValidationFieldsEnum.ReplacesHeader, "The SIP Replaces header could not be initialized because given callId was null or empty.");
     }
     else
     {
         m_callId = callid;
         m_parameters = new SIPParameters("",PARAM_SEPARATOR);
         m_parameters.Set(FROM_TAG, fromTag);
         m_parameters.Set(TO_TAG, toTag);
         if (earlyOnly) m_parameters.Set(EARLY_FLAG, null);
     }
 }