reSIProcate/stack  9694
Symbols.cxx
Go to the documentation of this file.
00001 #if defined(HAVE_CONFIG_H)
00002 #include "config.h"
00003 #endif
00004 
00005 #include "resip/stack/Symbols.hxx"
00006 
00007 using namespace resip;
00008 
00009 const char* Symbols::DefaultSipVersion = "SIP/2.0";
00010 const char* Symbols::DefaultSipScheme = "sip";
00011 
00012 const char* Symbols::CRLF = "\r\n";
00013 const char* Symbols::CRLFCRLF = "\r\n\r\n";
00014 const char* Symbols::CR = "\r";
00015 const char* Symbols::LF = "\n";
00016 const char* Symbols::TAB = "\t";
00017 
00018 const char* Symbols::AT_SIGN = "@";
00019 const char* Symbols::SPACE = " ";
00020 const char* Symbols::DASH = "-";
00021 const char* Symbols::BAR = "|";
00022 const char* Symbols::DASHDASH = "--";
00023 const char* Symbols::DOT = ".";
00024 const char* Symbols::COLON = ":";
00025 const char* Symbols::EQUALS = "=";
00026 const char* Symbols::SEMI_OR_EQUAL = ";=";
00027 const char* Symbols::COMMA_OR_EQUAL = ",=";
00028 const char* Symbols::SEMI_COLON = ";";
00029 const char* Symbols::SLASH = "/";
00030 const char* Symbols::B_SLASH = "\\";
00031 const char* Symbols::DOUBLE_QUOTE = "\"";
00032 const char* Symbols::LA_QUOTE = "<";
00033 const char* Symbols::RA_QUOTE = ">";
00034 const char* Symbols::COMMA = ",";
00035 const char* Symbols::ZERO = "0";
00036 const char* Symbols::LPAREN = "(";
00037 const char* Symbols::RPAREN = ")";
00038 const char* Symbols::LS_BRACKET = "[";
00039 const char* Symbols::RS_BRACKET = "]";
00040 const char* Symbols::PERIOD = ".";
00041 const char* Symbols::QUESTION = "?";
00042 const char* Symbols::AMPERSAND = "&";
00043 const char* Symbols::PERCENT = "%";
00044 const char* Symbols::STAR ="*";
00045 const char* Symbols::UNDERSCORE ="_";
00046 
00047 const char* Symbols::ProtocolName = "SIP";
00048 const char* Symbols::ProtocolVersion = "2.0";
00049 const char* Symbols::UDP = "UDP";
00050 const char* Symbols::TCP = "TCP";
00051 const char* Symbols::TLS = "TLS";
00052 const char* Symbols::DTLS = "DTLS";
00053 const char* Symbols::SCTP = "SCTP";
00054 const char* Symbols::SRVUDP = "_udp.";
00055 const char* Symbols::SRVTCP = "_tcp.";
00056 const char* Symbols::SRVTLS = "_tls.";
00057 const char* Symbols::SRVSCTP = "_sctp.";
00058 
00059 const char* Symbols::Sip = "sip";
00060 const char* Symbols::Sips = "sips";
00061 const char* Symbols::Tel = "tel";
00062 const char* Symbols::Pres = "pres";
00063 
00064 const char* Symbols::Phone = "phone";
00065 const char* Symbols::Isub = "isub=";
00066 const char* Symbols::Postd = "postd=";
00067 
00068 const char* Symbols::auth = "auth";
00069 const char* Symbols::authInt = "auth-int";
00070 const char* Symbols::Digest = "Digest";
00071 const char* Symbols::Basic = "Basic";
00072 
00073 const char * const Symbols::MagicCookie = "z9hG4bK";
00074 const char * const Symbols::resipCookie= "-524287-";
00075 
00076 const int Symbols::DefaultSipPort = 5060;
00077 const int Symbols::SipTlsPort = 5061;
00078 const int Symbols::DefaultSipsPort = 5061;
00079 
00080 const char* Symbols::SrvSip = "_sip";
00081 const char* Symbols::SrvSips = "_sips";
00082 const char* Symbols::SrvUdp = "_udp";
00083 const char* Symbols::SrvTcp = "_tcp";
00084 const char* Symbols::NaptrSip = "SIP";
00085 const char* Symbols::NaptrSips = "SIPS";
00086 const char* Symbols::NaptrUdp = "D2U";
00087 const char* Symbols::NaptrTcp = "D2T";
00088 
00089 const char* Symbols::audio = "audio";
00090 const char* Symbols::RTP_AVP = "RTP/AVP";
00091 const char* Symbols::RTP_SAVP = "RTP/SAVP"; // used for SRTP
00092 const char* Symbols::UDP_TLS_RTP_SAVP = "UDP/TLS/RTP/SAVP";  // used for DTLS-SRTP
00093 
00094 const char* Symbols::Presence = "presence";
00095 const char* Symbols::Required = "required";
00096 const char* Symbols::Optional = "optional";
00097 
00098 const char* Symbols::C100rel      = "100rel";
00099 const char* Symbols::Replaces     = "replaces";
00100 const char* Symbols::Timer        = "timer";
00101 const char* Symbols::NoReferSub   = "norefersub";
00102 const char* Symbols::AnswerMode   = "answermode";
00103 const char* Symbols::TargetDialog = "tdialog";
00104 const char* Symbols::Path         = "path";
00105 const char* Symbols::Outbound     = "outbound";
00106 const char* Symbols::Undefined    = "UNDEFINED";
00107 
00108 const char* Symbols::Pending = "pending";
00109 const char* Symbols::Active = "active";
00110 const char* Symbols::Terminated = "terminated";
00111 
00112 const char* Symbols::Certificate = "certificate";
00113 const char* Symbols::Credential = "credential";
00114 
00115 const char* Symbols::SipProfile = "sip-profile";
00116 
00117 const char* Symbols::id = "id"; // from RFC 3323
00118 
00119 const char* Symbols::Gruu = "gruu";
00120 
00121 
00122 #if defined(WIN32)
00123 const char *Symbols::pathSep = "\\";
00124 #else
00125 const char *Symbols::pathSep = "/";
00126 #endif
00127 
00128 /* ====================================================================
00129  * The Vovida Software License, Version 1.0 
00130  * 
00131  * Copyright (c) 2000 Vovida Networks, Inc.  All rights reserved.
00132  * 
00133  * Redistribution and use in source and binary forms, with or without
00134  * modification, are permitted provided that the following conditions
00135  * are met:
00136  * 
00137  * 1. Redistributions of source code must retain the above copyright
00138  *    notice, this list of conditions and the following disclaimer.
00139  * 
00140  * 2. Redistributions in binary form must reproduce the above copyright
00141  *    notice, this list of conditions and the following disclaimer in
00142  *    the documentation and/or other materials provided with the
00143  *    distribution.
00144  * 
00145  * 3. The names "VOCAL", "Vovida Open Communication Application Library",
00146  *    and "Vovida Open Communication Application Library (VOCAL)" must
00147  *    not be used to endorse or promote products derived from this
00148  *    software without prior written permission. For written
00149  *    permission, please contact vocal@vovida.org.
00150  *
00151  * 4. Products derived from this software may not be called "VOCAL", nor
00152  *    may "VOCAL" appear in their name, without prior written
00153  *    permission of Vovida Networks, Inc.
00154  * 
00155  * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
00156  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00157  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
00158  * NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL VOVIDA
00159  * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
00160  * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
00161  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00162  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00163  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
00164  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00165  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00166  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
00167  * DAMAGE.
00168  * 
00169  * ====================================================================
00170  * 
00171  * This software consists of voluntary contributions made by Vovida
00172  * Networks, Inc. and many individuals on behalf of Vovida Networks,
00173  * Inc.  For more information on Vovida Networks, Inc., please see
00174  * <http://www.vovida.org/>.
00175  *
00176  */