sip  1.12.11devel
sip_status.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Sofia-SIP package
3  *
4  * Copyright (C) 2005 Nokia Corporation.
5  *
6  * Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; either version 2.1 of
11  * the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24 
25 #ifndef SIP_STATUS_H
26 
27 #define SIP_STATUS_H
28 
41 #include <sofia-sip/su_config.h>
42 
43 SOFIA_BEGIN_DECLS
44 
45 SOFIAPUBFUN char const *sip_status_phrase(int status);
46 
48 #define SIP_100_TRYING 100, sip_100_Trying
49 
50 #define SIP_180_RINGING 180, sip_180_Ringing
51 
52 #define SIP_181_CALL_IS_BEING_FORWARDED 181, sip_181_Call_is_being_forwarded
53 
54 #define SIP_182_QUEUED 182, sip_182_Queued
55 
56 #define SIP_183_SESSION_PROGRESS 183, sip_183_Session_progress
57 
58 #define SIP_200_OK 200, sip_200_OK
59 
60 #define SIP_202_ACCEPTED 202, sip_202_Accepted
61 
62 #define SIP_300_MULTIPLE_CHOICES 300, sip_300_Multiple_choices
63 
64 #define SIP_301_MOVED_PERMANENTLY 301, sip_301_Moved_permanently
65 
66 #define SIP_302_MOVED_TEMPORARILY 302, sip_302_Moved_temporarily
67 
68 #define SIP_305_USE_PROXY 305, sip_305_Use_proxy
69 
70 #define SIP_380_ALTERNATIVE_SERVICE 380, sip_380_Alternative_service
71 
72 #define SIP_400_BAD_REQUEST 400, sip_400_Bad_request
73 
74 #define SIP_401_UNAUTHORIZED 401, sip_401_Unauthorized
75 
76 #define SIP_402_PAYMENT_REQUIRED 402, sip_402_Payment_required
77 
78 #define SIP_403_FORBIDDEN 403, sip_403_Forbidden
79 
80 #define SIP_404_NOT_FOUND 404, sip_404_Not_found
81 
82 #define SIP_405_METHOD_NOT_ALLOWED 405, sip_405_Method_not_allowed
83 
84 #define SIP_406_NOT_ACCEPTABLE 406, sip_406_Not_acceptable
85 
86 #define SIP_407_PROXY_AUTH_REQUIRED 407, sip_407_Proxy_auth_required
87 
88 #define SIP_408_REQUEST_TIMEOUT 408, sip_408_Request_timeout
89 
90 #define SIP_409_CONFLICT 409, sip_409_Conflict
91 
92 #define SIP_410_GONE 410, sip_410_Gone
93 
94 #define SIP_411_LENGTH_REQUIRED 411, sip_411_Length_required
95 
96 #define SIP_412_PRECONDITION_FAILED 412, sip_412_Precondition_failed
97 
98 #define SIP_413_REQUEST_TOO_LARGE 413, sip_413_Request_too_large
99 
100 #define SIP_414_REQUEST_URI_TOO_LONG 414, sip_414_Request_uri_too_long
101 
102 #define SIP_415_UNSUPPORTED_MEDIA 415, sip_415_Unsupported_media
103 
104 #define SIP_416_UNSUPPORTED_URI 416, sip_416_Unsupported_uri
105 
106 #define SIP_417_RESOURCE_PRIORITY 417, sip_417_Resource_priority
107 
108 #define SIP_420_BAD_EXTENSION 420, sip_420_Bad_extension
109 
110 #define SIP_421_EXTENSION_REQUIRED 421, sip_421_Extension_required
111 
112 #define SIP_422_SESSION_TIMER_TOO_SMALL 422, sip_422_Session_timer
113 
114 #define SIP_423_INTERVAL_TOO_BRIEF 423, sip_423_Interval_too_brief
115 #define SIP_423_REGISTRATION_TOO_BRIEF 423, sip_423_Interval_too_brief
116 
117 #define SIP_480_TEMPORARILY_UNAVAILABLE 480, sip_480_Temporarily_unavailable
118 
119 #define SIP_481_NO_TRANSACTION 481, sip_481_No_transaction
120 #define SIP_481_NO_CALL 481, sip_481_No_transaction
121 
122 #define SIP_482_LOOP_DETECTED 482, sip_482_Loop_detected
123 
124 #define SIP_483_TOO_MANY_HOPS 483, sip_483_Too_many_hops
125 
126 #define SIP_484_ADDRESS_INCOMPLETE 484, sip_484_Address_incomplete
127 
128 #define SIP_485_AMBIGUOUS 485, sip_485_Ambiguous
129 
130 #define SIP_486_BUSY_HERE 486, sip_486_Busy_here
131 
132 #define SIP_487_REQUEST_TERMINATED 487, sip_487_Request_terminated
133 #define SIP_487_REQUEST_CANCELLED 487, sip_487_Request_terminated
134 
135 #define SIP_488_NOT_ACCEPTABLE 488, sip_488_Not_acceptable
136 
137 #define SIP_489_BAD_EVENT 489, sip_489_Bad_event
138 
139 #define SIP_490_REQUEST_UPDATED 490, sip_490_Request_updated
140 
141 #define SIP_491_REQUEST_PENDING 491, sip_491_Request_pending
142 
143 #define SIP_493_UNDECIPHERABLE 493, sip_493_Undecipherable
144 
145 #define SIP_494_SECAGREE_REQUIRED 494, sip_494_Secagree_required
146 
148 #define SIP_500_INTERNAL_SERVER_ERROR 500, sip_500_Internal_server_error
149 
150 #define SIP_501_NOT_IMPLEMENTED 501, sip_501_Not_implemented
151 
152 #define SIP_502_BAD_GATEWAY 502, sip_502_Bad_gateway
153 
154 #define SIP_503_SERVICE_UNAVAILABLE 503, sip_503_Service_unavailable
155 
156 #define SIP_504_GATEWAY_TIME_OUT 504, sip_504_Gateway_time_out
157 
158 #define SIP_505_VERSION_NOT_SUPPORTED 505, sip_505_Version_not_supported
159 
160 #define SIP_513_MESSAGE_TOO_LARGE 513, sip_513_Message_too_large
161 
162 #define SIP_580_PRECONDITION 580, sip_580_Precondition
163 
165 #define SIP_600_BUSY_EVERYWHERE 600, sip_600_Busy_everywhere
166 
167 #define SIP_603_DECLINE 603, sip_603_Decline
168 
169 #define SIP_604_DOES_NOT_EXIST_ANYWHERE 604, sip_604_Does_not_exist_anywhere
170 
171 #define SIP_606_NOT_ACCEPTABLE 606, sip_606_Not_acceptable
172 
173 #define SIP_687_DIALOG_TERMINATED 687, sip_687_Dialog_terminated
174 
175 SOFIAPUBVAR char const sip_100_Trying[];
176 
177 SOFIAPUBVAR char const sip_180_Ringing[];
178 SOFIAPUBVAR char const sip_181_Call_is_being_forwarded[];
179 SOFIAPUBVAR char const sip_182_Queued[];
180 SOFIAPUBVAR char const sip_183_Session_progress[];
181 
182 SOFIAPUBVAR char const sip_200_OK[];
183 SOFIAPUBVAR char const sip_202_Accepted[];
184 
185 SOFIAPUBVAR char const sip_300_Multiple_choices[];
186 SOFIAPUBVAR char const sip_301_Moved_permanently[];
187 SOFIAPUBVAR char const sip_302_Moved_temporarily[];
188 SOFIAPUBVAR char const sip_305_Use_proxy[];
189 SOFIAPUBVAR char const sip_380_Alternative_service[];
190 
191 SOFIAPUBVAR char const sip_400_Bad_request[];
192 SOFIAPUBVAR char const sip_401_Unauthorized[];
193 SOFIAPUBVAR char const sip_402_Payment_required[];
194 SOFIAPUBVAR char const sip_403_Forbidden[];
195 SOFIAPUBVAR char const sip_404_Not_found[];
196 SOFIAPUBVAR char const sip_405_Method_not_allowed[];
197 SOFIAPUBVAR char const sip_406_Not_acceptable[];
198 SOFIAPUBVAR char const sip_407_Proxy_auth_required[];
199 SOFIAPUBVAR char const sip_408_Request_timeout[];
200 SOFIAPUBVAR char const sip_409_Conflict[];
201 SOFIAPUBVAR char const sip_410_Gone[];
202 SOFIAPUBVAR char const sip_411_Length_required[];
203 SOFIAPUBVAR char const sip_412_Precondition_failed[];
204 SOFIAPUBVAR char const sip_413_Request_too_large[];
205 SOFIAPUBVAR char const sip_414_Request_uri_too_long[];
206 SOFIAPUBVAR char const sip_415_Unsupported_media[];
207 SOFIAPUBVAR char const sip_416_Unsupported_uri[];
208 SOFIAPUBVAR char const sip_417_Resource_priority[];
209 SOFIAPUBVAR char const sip_420_Bad_extension[];
210 SOFIAPUBVAR char const sip_421_Extension_required[];
211 SOFIAPUBVAR char const sip_422_Session_timer[];
212 SOFIAPUBVAR char const sip_423_Interval_too_brief[];
213 SOFIAPUBVAR char const sip_480_Temporarily_unavailable[];
214 SOFIAPUBVAR char const sip_481_No_transaction[];
215 SOFIAPUBVAR char const sip_482_Loop_detected[];
216 SOFIAPUBVAR char const sip_483_Too_many_hops[];
217 SOFIAPUBVAR char const sip_484_Address_incomplete[];
218 SOFIAPUBVAR char const sip_485_Ambiguous[];
219 SOFIAPUBVAR char const sip_486_Busy_here[];
220 SOFIAPUBVAR char const sip_487_Request_terminated[];
221 SOFIAPUBVAR char const sip_488_Not_acceptable[];
222 SOFIAPUBVAR char const sip_489_Bad_event[];
223 SOFIAPUBVAR char const sip_490_Request_updated[];
224 SOFIAPUBVAR char const sip_491_Request_pending[];
225 SOFIAPUBVAR char const sip_493_Undecipherable[];
226 SOFIAPUBVAR char const sip_494_Secagree_required[];
227 
228 SOFIAPUBVAR char const sip_500_Internal_server_error[];
229 SOFIAPUBVAR char const sip_501_Not_implemented[];
230 SOFIAPUBVAR char const sip_502_Bad_gateway[];
231 SOFIAPUBVAR char const sip_503_Service_unavailable[];
232 SOFIAPUBVAR char const sip_504_Gateway_time_out[];
233 SOFIAPUBVAR char const sip_505_Version_not_supported[];
234 SOFIAPUBVAR char const sip_513_Message_too_large[];
235 SOFIAPUBVAR char const sip_580_Precondition[];
236 
237 SOFIAPUBVAR char const sip_600_Busy_everywhere[];
238 SOFIAPUBVAR char const sip_603_Decline[];
239 SOFIAPUBVAR char const sip_604_Does_not_exist_anywhere[];
240 SOFIAPUBVAR char const sip_606_Not_acceptable[];
241 SOFIAPUBVAR char const sip_687_Dialog_terminated[];
242 
243 SOFIA_END_DECLS
244 
245 #endif
#define SOFIAPUBFUN
#define SOFIAPUBVAR
char const * sip_status_phrase(int status)
Convert a SIP status code to a status phrase.
Definition: sip_status.c:121

Sofia-SIP 1.12.11devel - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.