00001 /* 00002 The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-) 00003 Copyright (C) 2001,2002,2003,2004 Aymeric MOIZARD jack@atosc.org 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 */ 00019 00020 00021 #ifndef _OSIP_CONST_H_ 00022 #define _OSIP_CONST_H_ 00023 00024 #ifdef ENABLE_MPATROL 00025 #include <mpatrol.h> 00026 #endif 00027 00028 #define CRLF "\r\n0円" 00029 #define CR "\r0円" 00030 #define LF "\n0円" 00031 #define SP " 0円" 00032 00033 00034 #define ACCEPT "accept" 00035 #define ACCEPT_ENCODING "accept-encoding" 00036 #define ACCEPT_LANGUAGE "accept-language" 00037 #define ALERT_INFO "alert-info" 00038 #define ALLOW "allow" 00039 #define AUTHENTICATION_INFO "authentication-info" 00040 #define AUTHORIZATION "authorization" 00041 #define CALL_ID "call-id" 00042 #define CALL_ID_SHORT "i" 00043 #define CALL_INFO "call-info" 00044 #define CONTACT "contact" 00045 #define CONTACT_SHORT "m" 00046 #define CONTENT_DISPOSITION "content-disposition" 00047 #define CONTENT_ENCODING_SHORT "e" 00048 #define CONTENT_ENCODING "content-encoding" 00049 #define CONTENT_LANGUAGE "content-language" 00050 #define CONTENT_LENGTH_SHORT "l" 00051 #define CONTENT_LENGTH "content-length" 00052 #define CONTENT_TYPE_SHORT "c" 00053 #define CONTENT_TYPE "content-type" 00054 #define CSEQ "cseq" 00055 #define SIPDATE "date" 00056 #define ERROR_INFO "error-info" 00057 #define EXPIRES "expires" 00058 #define FROM "from" 00059 #define FROM_SHORT "f" 00060 #define IN_REPLY_TO "in-reply-to" 00061 #define MAX_FORWARDS "max-forwards" 00062 #define MIME_VERSION "mime-version" 00063 #define MIN_EXPIRES "min-expires" 00064 #define ORGANIZATION "organization" 00065 #define PRIORITY "priority" 00066 #define PROXY_AUTHENTICATE "proxy-authenticate" 00067 #define PROXY_AUTHENTICATION_INFO "proxy-authentication-info" 00068 #define PROXY_AUTHORIZATION "proxy-authorization" 00069 #define PROXY_REQUIRE "proxy-require" 00070 #define RECORD_ROUTE "record-route" 00071 #define REPLY_TO "reply-to" 00072 #define REQUIRE "require" 00073 #define RETRY_AFTER "retry-after" 00074 #define ROUTE "route" 00075 #define SERVER "server" 00076 #define SUBJECT "subject" 00077 #define SUBJECT_SHORT "s" 00078 #define SUPPORTED "supported" 00079 #define TIMESTAMP "timestamp" 00080 #define TO "to" 00081 #define TO_SHORT "t" 00082 #define UNSUPPORTED "unsupported" 00083 #define USER_AGENT "user-agent" 00084 #define VIA "via" 00085 #define VIA_SHORT "v" 00086 #define WARNING "warning" 00087 #define WWW_AUTHENTICATE "www-authenticate" 00088 00089 00090 #define RESPONSE_CODES 51 00091 00092 #define SIP_TRYING 100 00093 #define SIP_RINGING 180 00094 #define SIP_CALL_IS_BEING_FORWARDED 181 00095 #define SIP_QUEUED 182 00096 #define SIP_SESSION_PROGRESS 183 00097 #define SIP_OK 200 00098 #define SIP_ACCEPTED 202 00099 #define SIP_MULTIPLE_CHOICES 300 00100 #define SIP_MOVED_PERMANENTLY 301 00101 #define SIP_MOVED_TEMPORARILY 302 00102 #define SIP_USE_PROXY 305 00103 #define SIP_ALTERNATIVE_SERVICE 380 00104 #define SIP_BAD_REQUEST 400 00105 #define SIP_UNAUTHORIZED 401 00106 #define SIP_PAYMENT_REQUIRED 402 00107 #define SIP_FORBIDDEN 403 00108 #define SIP_NOT_FOUND 404 00109 #define SIP_METHOD_NOT_ALLOWED 405 00110 #define SIP_406_NOT_ACCEPTABLE 406 00111 #define SIP_PROXY_AUTHENTICATION_REQUIRED 407 00112 #define SIP_REQUEST_TIME_OUT 408 00113 #define SIP_GONE 410 00114 #define SIP_REQUEST_ENTITY_TOO_LARGE 413 00115 #define SIP_REQUEST_URI_TOO_LARGE 414 00116 #define SIP_UNSUPPORTED_MEDIA_TYPE 415 00117 #define SIP_UNSUPPORTED_URI_SCHEME 416 00118 #define SIP_BAD_EXTENSION 420 00119 #define SIP_EXTENSION_REQUIRED 421 00120 #define SIP_INTERVAL_TOO_BRIEF 423 00121 #define SIP_TEMPORARILY_UNAVAILABLE 480 00122 #define SIP_CALL_TRANSACTION_DOES_NOT_EXIST 481 00123 #define SIP_LOOP_DETECTED 482 00124 #define SIP_TOO_MANY_HOPS 483 00125 #define SIP_ADDRESS_INCOMPLETE 484 00126 #define SIP_AMBIGUOUS 485 00127 #define SIP_BUSY_HERE 486 00128 #define SIP_REQUEST_TERMINATED 487 00129 #define SIP_NOT_ACCEPTABLE_HERE 488 00130 #define SIP_BAD_EVENT 489 00131 #define SIP_REQUEST_PENDING 491 00132 #define SIP_UNDECIPHERABLE 493 00133 #define SIP_INTERNAL_SERVER_ERROR 500 00134 #define SIP_NOT_IMPLEMENTED 501 00135 #define SIP_BAD_GATEWAY 502 00136 #define SIP_SERVICE_UNAVAILABLE 503 00137 #define SIP_SERVER_TIME_OUT 504 00138 #define SIP_VERSION_NOT_SUPPORTED 505 00139 #define SIP_MESSAGE_TOO_LARGE 513 00140 #define SIP_BUSY_EVRYWHERE 600 00141 #define SIP_DECLINE 603 00142 #define SIP_DOES_NOT_EXIST_ANYWHERE 604 00143 #define SIP_606_NOT_ACCEPTABLE 606 00144 00146 #define OSIP_IS_SIP_INFO(x) (((x) >= 100)&&((x) < 200)) 00147 00148 #define OSIP_IS_SIP_SUCCESS(x) (((x) >= 200)&&((x) < 300)) 00149 00150 #define OSIP_IS_SIP_REDIRECT(x) (((x) >= 300)&&((x) < 400)) 00151 00152 #define OSIP_IS_SIP_ERROR(x) (((x) >= 400)&&((x) < 600)) 00153 00154 #define OSIP_IS_SIP_CLIENT_ERROR(x) (((x) >= 400)&&((x) < 500)) 00155 00156 #define OSIP_IS_SIP_SERVER_ERROR(x) (((x) >= 500)&&((x) < 600)) 00157 00158 00159 #endif /* _CONST_H_ */