SIP Witch 1.9.15: osip_const.h Source File

SIP Witch 1.9.15
osip_const.h
Go to the documentation of this file.
1 /*
2  The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
3  Copyright (C) 2001-2015 Aymeric MOIZARD amoizard@antisip.com
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 
20 
21 #ifndef _OSIP_CONST_H_
22 #define _OSIP_CONST_H_
23 
24 #ifdef ENABLE_MPATROL
25 #include <mpatrol.h>
26 #endif
27 
28  #define CRLF "\r\n0円"
29  #define CR "\r0円"
30  #define LF "\n0円"
31  #define SP " 0円"
32 
33 
34  #define ACCEPT "accept"
35  #define ACCEPT_ENCODING "accept-encoding"
36  #define ACCEPT_LANGUAGE "accept-language"
37  #define ALERT_INFO "alert-info"
38  #define ALLOW "allow"
39  #define AUTHENTICATION_INFO "authentication-info"
40  #define AUTHORIZATION "authorization"
41  #define CALL_ID "call-id"
42  #define CALL_ID_SHORT "i"
43  #define CALL_INFO "call-info"
44  #define CONTACT "contact"
45  #define CONTACT_SHORT "m"
46  #define CONTENT_DISPOSITION "content-disposition"
47  #define CONTENT_ENCODING_SHORT "e"
48  #define CONTENT_ENCODING "content-encoding"
49  #define CONTENT_LANGUAGE "content-language"
50  #define CONTENT_LENGTH_SHORT "l"
51  #define CONTENT_LENGTH "content-length"
52  #define CONTENT_TYPE_SHORT "c"
53  #define CONTENT_TYPE "content-type"
54  #define CSEQ "cseq"
55  #define SIPDATE "date"
56  #define ERROR_INFO "error-info"
57  #define EXPIRES "expires"
58  #define FROM "from"
59  #define FROM_SHORT "f"
60  #define IN_REPLY_TO "in-reply-to"
61  #define MAX_FORWARDS "max-forwards"
62  #define MIME_VERSION "mime-version"
63  #define MIN_EXPIRES "min-expires"
64  #define ORGANIZATION "organization"
65  #define PRIORITY "priority"
66  #define PROXY_AUTHENTICATE "proxy-authenticate"
67  #define PROXY_AUTHENTICATION_INFO "proxy-authentication-info"
68  #define PROXY_AUTHORIZATION "proxy-authorization"
69  #define PROXY_REQUIRE "proxy-require"
70  #define RECORD_ROUTE "record-route"
71  #define REPLY_TO "reply-to"
72  #define REQUIRE "require"
73  #define RETRY_AFTER "retry-after"
74  #define ROUTE "route"
75  #define SERVER "server"
76  #define SUBJECT "subject"
77  #define SUBJECT_SHORT "s"
78  #define SUPPORTED "supported"
79  #define TIMESTAMP "timestamp"
80  #define TO "to"
81  #define TO_SHORT "t"
82  #define UNSUPPORTED "unsupported"
83  #define USER_AGENT "user-agent"
84  #define VIA "via"
85  #define VIA_SHORT "v"
86  #define WARNING "warning"
87  #define WWW_AUTHENTICATE "www-authenticate"
88 
89 
90  #define RESPONSE_CODES 51
91 
92  #define SIP_TRYING 100
93  #define SIP_RINGING 180
94  #define SIP_CALL_IS_BEING_FORWARDED 181
95  #define SIP_QUEUED 182
96  #define SIP_SESSION_PROGRESS 183
97  #define SIP_OK 200
98  #define SIP_ACCEPTED 202
99  #define SIP_MULTIPLE_CHOICES 300
100  #define SIP_MOVED_PERMANENTLY 301
101  #define SIP_MOVED_TEMPORARILY 302
102  #define SIP_USE_PROXY 305
103  #define SIP_ALTERNATIVE_SERVICE 380
104  #define SIP_BAD_REQUEST 400
105  #define SIP_UNAUTHORIZED 401
106  #define SIP_PAYMENT_REQUIRED 402
107  #define SIP_FORBIDDEN 403
108  #define SIP_NOT_FOUND 404
109  #define SIP_METHOD_NOT_ALLOWED 405
110  #define SIP_406_NOT_ACCEPTABLE 406
111  #define SIP_PROXY_AUTHENTICATION_REQUIRED 407
112  #define SIP_REQUEST_TIME_OUT 408
113  #define SIP_GONE 410
114  #define SIP_REQUEST_ENTITY_TOO_LARGE 413
115  #define SIP_REQUEST_URI_TOO_LARGE 414
116  #define SIP_UNSUPPORTED_MEDIA_TYPE 415
117  #define SIP_UNSUPPORTED_URI_SCHEME 416
118  #define SIP_BAD_EXTENSION 420
119  #define SIP_EXTENSION_REQUIRED 421
120  #define SIP_INTERVAL_TOO_BRIEF 423
121  #define SIP_TEMPORARILY_UNAVAILABLE 480
122  #define SIP_CALL_TRANSACTION_DOES_NOT_EXIST 481
123  #define SIP_LOOP_DETECTED 482
124  #define SIP_TOO_MANY_HOPS 483
125  #define SIP_ADDRESS_INCOMPLETE 484
126  #define SIP_AMBIGUOUS 485
127  #define SIP_BUSY_HERE 486
128  #define SIP_REQUEST_TERMINATED 487
129  #define SIP_NOT_ACCEPTABLE_HERE 488
130  #define SIP_BAD_EVENT 489
131  #define SIP_REQUEST_PENDING 491
132  #define SIP_UNDECIPHERABLE 493
133  #define SIP_INTERNAL_SERVER_ERROR 500
134  #define SIP_NOT_IMPLEMENTED 501
135  #define SIP_BAD_GATEWAY 502
136  #define SIP_SERVICE_UNAVAILABLE 503
137  #define SIP_SERVER_TIME_OUT 504
138  #define SIP_VERSION_NOT_SUPPORTED 505
139  #define SIP_MESSAGE_TOO_LARGE 513
140  #define SIP_BUSY_EVRYWHERE 600
141  #define SIP_DECLINE 603
142  #define SIP_DOES_NOT_EXIST_ANYWHERE 604
143  #define SIP_606_NOT_ACCEPTABLE 606
144 
146  #define OSIP_IS_SIP_INFO(x) (((x) >= 100)&&((x) < 200))
147 
148  #define OSIP_IS_SIP_SUCCESS(x) (((x) >= 200)&&((x) < 300))
149 
150  #define OSIP_IS_SIP_REDIRECT(x) (((x) >= 300)&&((x) < 400))
151 
152  #define OSIP_IS_SIP_ERROR(x) (((x) >= 400)&&((x) < 600))
153 
154  #define OSIP_IS_SIP_CLIENT_ERROR(x) (((x) >= 400)&&((x) < 500))
155 
156  #define OSIP_IS_SIP_SERVER_ERROR(x) (((x) >= 500)&&((x) < 600))
157 
158 
159 #endif /* _CONST_H_ */

Generated on Dec 21, 2017 for sipwitch-1.9.15 (*.h and *.cpp), libosip2-5.0.0 (*.h) and libeXosip2-4.0.0 (*.h), by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /