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()); } }
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); } }