reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
Symbols.cxx
Go to the documentation of this file.
1#if defined(HAVE_CONFIG_H)
2#include "config.h"
3#endif
4
6
7using namespace resip;
8
9const char* Symbols::DefaultSipVersion = "SIP/2.0";
10const char* Symbols::DefaultSipScheme = "sip";
11
12const char* Symbols::CRLF = "\r\n";
13const char* Symbols::CRLFCRLF = "\r\n\r\n";
14const char* Symbols::CR = "\r";
15const char* Symbols::LF = "\n";
16const char* Symbols::TAB = "\t";
17
18const char* Symbols::AT_SIGN = "@";
19const char* Symbols::SPACE = " ";
20const char* Symbols::DASH = "-";
21const char* Symbols::BAR = "|";
22const char* Symbols::DASHDASH = "--";
23const char* Symbols::DOT = ".";
24const char* Symbols::COLON = ":";
25const char* Symbols::EQUALS = "=";
26const char* Symbols::SEMI_OR_EQUAL = ";=";
27const char* Symbols::COMMA_OR_EQUAL = ",=";
28const char* Symbols::SEMI_COLON = ";";
29const char* Symbols::SLASH = "/";
30const char* Symbols::B_SLASH = "\\";
31const char* Symbols::DOUBLE_QUOTE = "\"";
32const char* Symbols::LA_QUOTE = "<";
33const char* Symbols::RA_QUOTE = ">";
34const char* Symbols::COMMA = ",";
35const char* Symbols::ZERO = "0";
36const char* Symbols::LPAREN = "(";
37const char* Symbols::RPAREN = ")";
38const char* Symbols::LS_BRACKET = "[";
39const char* Symbols::RS_BRACKET = "]";
40const char* Symbols::PERIOD = ".";
41const char* Symbols::QUESTION = "?";
42const char* Symbols::AMPERSAND = "&";
43const char* Symbols::PERCENT = "%";
44const char* Symbols::STAR ="*";
45const char* Symbols::UNDERSCORE ="_";
46
47const char* Symbols::ProtocolName = "SIP";
48const char* Symbols::ProtocolVersion = "2.0";
49const char* Symbols::UDP = "UDP";
50const char* Symbols::TCP = "TCP";
51const char* Symbols::TLS = "TLS";
52const char* Symbols::DTLS = "DTLS";
53const char* Symbols::SCTP = "SCTP";
54const char* Symbols::WS = "WS";
55const char* Symbols::WSS = "WSS";
56const char* Symbols::SRVUDP = "_udp.";
57const char* Symbols::SRVTCP = "_tcp.";
58const char* Symbols::SRVTLS = "_tls.";
59const char* Symbols::SRVSCTP = "_sctp.";
60
61const char* Symbols::Sip = "sip";
62const char* Symbols::Sips = "sips";
63const char* Symbols::Tel = "tel";
64const char* Symbols::Urn = "urn";
65const char* Symbols::Pres = "pres";
66
67const char* Symbols::Phone = "phone";
68const char* Symbols::Isub = "isub=";
69const char* Symbols::Postd = "postd=";
70
71const char* Symbols::auth = "auth";
72const char* Symbols::authInt = "auth-int";
73const char* Symbols::Digest = "Digest";
74const char* Symbols::Basic = "Basic";
75
76const char * const Symbols::MagicCookie = "z9hG4bK";
77const char * const Symbols::resipCookie= "-524287-";
78const char * const Symbols::WebsocketMagicGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
79
80const int Symbols::DefaultSipPort = 5060;
81const int Symbols::SipTlsPort = 5061;
82const int Symbols::SipWsPort = 80;
83const int Symbols::SipWssPort = 443;
84const int Symbols::DefaultSipsPort = 5061;
85
86const char* Symbols::SrvSip = "_sip";
87const char* Symbols::SrvSips = "_sips";
88const char* Symbols::SrvUdp = "_udp";
89const char* Symbols::SrvTcp = "_tcp";
90const char* Symbols::NaptrSip = "SIP";
91const char* Symbols::NaptrSips = "SIPS";
92const char* Symbols::NaptrUdp = "D2U";
93const char* Symbols::NaptrTcp = "D2T";
94
95const char* Symbols::audio = "audio";
96const char* Symbols::RTP_AVP = "RTP/AVP";
97const char* Symbols::RTP_AVPF = "RTP/AVPF";
98const char* Symbols::RTP_SAVP = "RTP/SAVP"; // used for SRTP
99const char* Symbols::RTP_SAVPF = "RTP/SAVPF"; // used for SRTP, usually WebRTC
100const char* Symbols::UDP_TLS_RTP_SAVP = "UDP/TLS/RTP/SAVP"; // used for DTLS-SRTP
101
102const char* Symbols::Presence = "presence";
103const char* Symbols::Required = "required";
104const char* Symbols::Optional = "optional";
105
106const char* Symbols::C100rel = "100rel";
107const char* Symbols::Replaces = "replaces";
108const char* Symbols::Timer = "timer";
109const char* Symbols::NoReferSub = "norefersub";
110const char* Symbols::AnswerMode = "answermode";
111const char* Symbols::TargetDialog = "tdialog";
112const char* Symbols::Path = "path";
113const char* Symbols::Outbound = "outbound";
114const char* Symbols::Join = "join";
115const char* Symbols::Undefined = "UNDEFINED";
116
117const char* Symbols::Pending = "pending";
118const char* Symbols::Active = "active";
119const char* Symbols::Terminated = "terminated";
120
121const char* Symbols::Certificate = "certificate";
122const char* Symbols::Credential = "credential";
123
124const char* Symbols::SipProfile = "sip-profile";
125
126const char* Symbols::id = "id"; // from RFC 3325
127
128const char* Symbols::Gruu = "gruu";
129
130const char* Symbols::Uui = "uui";
131const char* Symbols::Hex = "hex";
132const char* Symbols::IsdnInterwork = "isdn-interwork";
133const char* Symbols::IsdnUui = "isdn-uui";
134
135const char* Symbols::TrickleIce = "trickle-ice"; // from RFC 8840
136
137#if defined(WIN32)
138const char *Symbols::pathSep = "\\";
139#else
140const char *Symbols::pathSep = "/";
141#endif
142
143/* ====================================================================
144 * The Vovida Software License, Version 1.0
145 *
146 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
147 *
148 * Redistribution and use in source and binary forms, with or without
149 * modification, are permitted provided that the following conditions
150 * are met:
151 *
152 * 1. Redistributions of source code must retain the above copyright
153 * notice, this list of conditions and the following disclaimer.
154 *
155 * 2. Redistributions in binary form must reproduce the above copyright
156 * notice, this list of conditions and the following disclaimer in
157 * the documentation and/or other materials provided with the
158 * distribution.
159 *
160 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
161 * and "Vovida Open Communication Application Library (VOCAL)" must
162 * not be used to endorse or promote products derived from this
163 * software without prior written permission. For written
164 * permission, please contact vocal@vovida.org.
165 *
166 * 4. Products derived from this software may not be called "VOCAL", nor
167 * may "VOCAL" appear in their name, without prior written
168 * permission of Vovida Networks, Inc.
169 *
170 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
171 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
172 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
173 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
174 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
175 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
176 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
177 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
178 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
179 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
180 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
181 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
182 * DAMAGE.
183 *
184 * ====================================================================
185 *
186 * This software consists of voluntary contributions made by Vovida
187 * Networks, Inc. and many individuals on behalf of Vovida Networks,
188 * Inc. For more information on Vovida Networks, Inc., please see
189 * <http://www.vovida.org/>.
190 *
191 */
static const char * SEMI_COLON
Definition Symbols.hxx:30
static const char * ZERO
Definition Symbols.hxx:36
static const char * id
Definition Symbols.hxx:127
static const char * RTP_AVP
Definition Symbols.hxx:97
static const char * Tel
Definition Symbols.hxx:64
static const char * LF
Definition Symbols.hxx:24
static const char * RTP_AVPF
Definition Symbols.hxx:98
static const char * IsdnUui
Definition Symbols.hxx:134
static const char * Sips
Definition Symbols.hxx:63
static const char * B_SLASH
Definition Symbols.hxx:33
static const char * SrvTcp
Definition Symbols.hxx:90
static const char * SrvUdp
Definition Symbols.hxx:89
static const char * auth
Definition Symbols.hxx:72
static const char * Join
Definition Symbols.hxx:115
static const char * Gruu
Definition Symbols.hxx:129
static const int SipWssPort
Definition Symbols.hxx:84
static const char * Basic
Definition Symbols.hxx:75
static const char * RTP_SAVP
Definition Symbols.hxx:99
static const char * RPAREN
Definition Symbols.hxx:38
static const char * IsdnInterwork
Definition Symbols.hxx:133
static const char * Terminated
Definition Symbols.hxx:120
static const char * Path
Definition Symbols.hxx:113
static const char * SrvSip
Definition Symbols.hxx:87
static const int DefaultSipsPort
Definition Symbols.hxx:85
static const char * Hex
Definition Symbols.hxx:132
static const char * WSS
Definition Symbols.hxx:56
static const char * Optional
Definition Symbols.hxx:105
static const char * DASH
Definition Symbols.hxx:17
static const char * LS_BRACKET
Definition Symbols.hxx:39
static const char * audio
Definition Symbols.hxx:96
static const char * LPAREN
Definition Symbols.hxx:37
static const char * Required
Definition Symbols.hxx:104
static const char * Urn
Definition Symbols.hxx:65
static const char * LA_QUOTE
Definition Symbols.hxx:27
static const char * authInt
Definition Symbols.hxx:73
static const char * C100rel
Definition Symbols.hxx:107
static const char * SRVSCTP
Definition Symbols.hxx:60
static const char * WS
Definition Symbols.hxx:55
static const char * DefaultSipVersion
Definition Symbols.hxx:11
static const char * Undefined
Definition Symbols.hxx:116
static const char * SRVTCP
Definition Symbols.hxx:58
static const char * ProtocolName
Definition Symbols.hxx:48
static const char * DOT
Definition Symbols.hxx:19
static const char * PERCENT
Definition Symbols.hxx:44
static const char * SPACE
Definition Symbols.hxx:34
static const char * Timer
Definition Symbols.hxx:109
static const char * RTP_SAVPF
Definition Symbols.hxx:100
static const char * COLON
Definition Symbols.hxx:15
static const char * DASHDASH
Definition Symbols.hxx:18
static const char * Pending
Definition Symbols.hxx:118
static const char * SipProfile
Definition Symbols.hxx:124
static const int SipWsPort
Definition Symbols.hxx:83
static const char * RS_BRACKET
Definition Symbols.hxx:40
static const int DefaultSipPort
Definition Symbols.hxx:81
static const char * Isub
Definition Symbols.hxx:69
static const char * QUESTION
Definition Symbols.hxx:42
static const char * UDP
Definition Symbols.hxx:50
static const char * COMMA
Definition Symbols.hxx:35
static const char * Phone
Definition Symbols.hxx:68
static const char * DefaultSipScheme
Definition Symbols.hxx:12
static const char * BAR
Definition Symbols.hxx:16
static const char * pathSep
Definition Symbols.hxx:126
static const char * SCTP
Definition Symbols.hxx:54
static const char * CR
Definition Symbols.hxx:23
static const char * AnswerMode
Definition Symbols.hxx:111
static const char * Outbound
Definition Symbols.hxx:114
static const char * AT_SIGN
Definition Symbols.hxx:14
static const char * DTLS
Definition Symbols.hxx:53
static const char * NaptrTcp
Definition Symbols.hxx:94
static const char * Sip
Definition Symbols.hxx:62
static const char * SLASH
Definition Symbols.hxx:32
static const char *const WebsocketMagicGUID
Definition Symbols.hxx:79
static const char * Pres
Definition Symbols.hxx:66
static const char * SrvSips
Definition Symbols.hxx:88
static const char * Postd
Definition Symbols.hxx:70
static const char * NaptrSip
Definition Symbols.hxx:91
static const char * Presence
Definition Symbols.hxx:103
static const char * PERIOD
Definition Symbols.hxx:41
static const char * CRLFCRLF
Definition Symbols.hxx:22
static const char * UNDERSCORE
Definition Symbols.hxx:46
static const char * Credential
Definition Symbols.hxx:123
static const char * Replaces
Definition Symbols.hxx:108
static const char * TrickleIce
Definition Symbols.hxx:135
static const char * TLS
Definition Symbols.hxx:52
static const char * Certificate
Definition Symbols.hxx:122
static const char * NaptrUdp
Definition Symbols.hxx:93
static const int SipTlsPort
Definition Symbols.hxx:82
static const char * Digest
Definition Symbols.hxx:74
static const char * RA_QUOTE
Definition Symbols.hxx:28
static const char * EQUALS
Definition Symbols.hxx:29
static const char *const resipCookie
Definition Symbols.hxx:78
static const char * TCP
Definition Symbols.hxx:51
static const char * SEMI_OR_EQUAL
Definition Symbols.hxx:31
static const char * TAB
Definition Symbols.hxx:25
static const char * AMPERSAND
Definition Symbols.hxx:43
static const char * COMMA_OR_EQUAL
Definition Symbols.hxx:20
static const char * UDP_TLS_RTP_SAVP
Definition Symbols.hxx:101
static const char * SRVTLS
Definition Symbols.hxx:59
static const char * STAR
Definition Symbols.hxx:45
static const char * NoReferSub
Definition Symbols.hxx:110
static const char * TargetDialog
Definition Symbols.hxx:112
static const char * NaptrSips
Definition Symbols.hxx:92
static const char * CRLF
Definition Symbols.hxx:21
static const char * Uui
Definition Symbols.hxx:131
static const char *const MagicCookie
Definition Symbols.hxx:77
static const char * DOUBLE_QUOTE
Definition Symbols.hxx:26
static const char * SRVUDP
Definition Symbols.hxx:57
static const char * ProtocolVersion
Definition Symbols.hxx:49
static const char * Active
Definition Symbols.hxx:119
dcm! – add UnusedChecking(_enum) below;