osip_const.h

Go to the documentation of this file.
00001 
00024 #ifndef _OSIP_CONST_H_
00025 #define _OSIP_CONST_H_
00026 
00027 #ifdef ENABLE_MPATROL
00028 #include <mpatrol.h>
00029 #endif
00030 
00031 #define CRLF "\r\n\0"
00032 #define CR   "\r\0"
00033 #define LF   "\n\0"
00034 #define SP   " \0"
00035 
00036 
00037 #define ACCEPT                  "accept"
00038 #define ACCEPT_ENCODING         "accept-encoding"
00039 #define ACCEPT_LANGUAGE         "accept-language"
00040 #define ALERT_INFO              "alert-info"
00041 #define ALLOW                   "allow"
00042 #define AUTHENTICATION_INFO     "authentication-info"
00043 #define AUTHORIZATION           "authorization"
00044 #define CALL_ID                 "call-id"
00045 #define CALL_ID_SHORT           "i"
00046 #define CALL_INFO               "call-info"
00047 #define CONTACT                 "contact"
00048 #define CONTACT_SHORT           "m"
00049 #define CONTENT_DISPOSITION     "content-disposition"
00050 #define CONTENT_ENCODING_SHORT  "e"
00051 #define CONTENT_ENCODING        "content-encoding"
00052 #define CONTENT_LANGUAGE        "content-language"
00053 #define CONTENT_LENGTH_SHORT    "l"
00054 #define CONTENT_LENGTH          "content-length"
00055 #define CONTENT_TYPE_SHORT      "c"
00056 #define CONTENT_TYPE            "content-type"
00057 #define CSEQ                    "cseq"
00058 #define SIPDATE                 "date"
00059 #define ERROR_INFO              "error-info"
00060 #define EXPIRES                 "expires"
00061 #define FROM                    "from"
00062 #define FROM_SHORT              "f"
00063 #define IN_REPLY_TO             "in-reply-to"
00064 #define MAX_FORWARDS            "max-forwards"
00065 #define MIME_VERSION            "mime-version"
00066 #define MIN_EXPIRES             "min-expires"
00067 #define ORGANIZATION            "organization"
00068 #define PRIORITY                "priority"
00069 #define PROXY_AUTHENTICATE      "proxy-authenticate"
00070 #define PROXY_AUTHENTICATION_INFO       "proxy-authentication-info"
00071 #define PROXY_AUTHORIZATION     "proxy-authorization"
00072 #define PROXY_REQUIRE           "proxy-require"
00073 #define RECORD_ROUTE            "record-route"
00074 #define REPLY_TO                "reply-to"
00075 #define REQUIRE                 "require"
00076 #define RETRY_AFTER             "retry-after"
00077 #define ROUTE                   "route"
00078 #define SERVER                  "server"
00079 #define SUBJECT                 "subject"
00080 #define SUBJECT_SHORT           "s"
00081 #define SUPPORTED               "supported"
00082 #define TIMESTAMP               "timestamp"
00083 #define TO                      "to"
00084 #define TO_SHORT                "t"
00085 #define UNSUPPORTED             "unsupported"
00086 #define USER_AGENT              "user-agent"
00087 #define VIA                     "via"
00088 #define VIA_SHORT               "v"
00089 #define WARNING                 "warning"
00090 #define WWW_AUTHENTICATE        "www-authenticate"
00091 
00092 
00093 #define RESPONSE_CODES 51
00094 
00095 #define SIP_TRYING                        100
00096 #define SIP_RINGING                       180
00097 #define SIP_CALL_IS_BEING_FORWARDED       181
00098 #define SIP_QUEUED                        182
00099 #define SIP_SESSION_PROGRESS              183
00100 #define SIP_OK                            200
00101 #define SIP_ACCEPTED                      202
00102 #define SIP_MULTIPLE_CHOICES              300
00103 #define SIP_MOVED_PERMANENTLY             301
00104 #define SIP_MOVED_TEMPORARILY             302
00105 #define SIP_USE_PROXY                     305
00106 #define SIP_ALTERNATIVE_SERVICE           380
00107 #define SIP_BAD_REQUEST                   400
00108 #define SIP_UNAUTHORIZED                  401
00109 #define SIP_PAYMENT_REQUIRED              402
00110 #define SIP_FORBIDDEN                     403
00111 #define SIP_NOT_FOUND                     404
00112 #define SIP_METHOD_NOT_ALLOWED            405
00113 #define SIP_406_NOT_ACCEPTABLE            406
00114 #define SIP_PROXY_AUTHENTICATION_REQUIRED 407
00115 #define SIP_REQUEST_TIME_OUT              408
00116 #define SIP_GONE                          410
00117 #define SIP_REQUEST_ENTITY_TOO_LARGE      413
00118 #define SIP_REQUEST_URI_TOO_LARGE         414
00119 #define SIP_UNSUPPORTED_MEDIA_TYPE        415
00120 #define SIP_UNSUPPORTED_URI_SCHEME        416
00121 #define SIP_BAD_EXTENSION                 420
00122 #define SIP_EXTENSION_REQUIRED            421
00123 #define SIP_INTERVAL_TOO_BRIEF            423
00124 #define SIP_TEMPORARILY_UNAVAILABLE       480
00125 #define SIP_CALL_TRANSACTION_DOES_NOT_EXIST 481
00126 #define SIP_LOOP_DETECTED                 482
00127 #define SIP_TOO_MANY_HOPS                 483
00128 #define SIP_ADDRESS_INCOMPLETE            484
00129 #define SIP_AMBIGUOUS                     485
00130 #define SIP_BUSY_HERE                     486
00131 #define SIP_REQUEST_TERMINATED            487
00132 #define SIP_NOT_ACCEPTABLE_HERE           488
00133 #define SIP_BAD_EVENT                     489
00134 #define SIP_REQUEST_PENDING               491
00135 #define SIP_UNDECIPHERABLE                493
00136 #define SIP_INTERNAL_SERVER_ERROR         500
00137 #define SIP_NOT_IMPLEMENTED               501
00138 #define SIP_BAD_GATEWAY                   502
00139 #define SIP_SERVICE_UNAVAILABLE           503
00140 #define SIP_SERVER_TIME_OUT               504
00141 #define SIP_VERSION_NOT_SUPPORTED         505
00142 #define SIP_MESSAGE_TOO_LARGE             513
00143 #define SIP_BUSY_EVRYWHERE                600
00144 #define SIP_DECLINE                       603
00145 #define SIP_DOES_NOT_EXIST_ANYWHERE       604
00146 #define SIP_606_NOT_ACCEPTABLE                606
00147 
00149 #define OSIP_IS_SIP_INFO(x)         (((x) >= 100)&&((x) < 200))
00150 
00151 #define OSIP_IS_SIP_SUCCESS(x)      (((x) >= 200)&&((x) < 300))
00152 
00153 #define OSIP_IS_SIP_REDIRECT(x)     (((x) >= 300)&&((x) < 400))
00154 
00155 #define OSIP_IS_SIP_ERROR(x)        (((x) >= 400)&&((x) < 600))
00156 
00157 #define OSIP_IS_SIP_CLIENT_ERROR(x) (((x) >= 400)&&((x) < 500))
00158 
00159 #define OSIP_IS_SIP_SERVER_ERROR(x) (((x) >= 500)&&((x) < 600))
00160 
00161 
00162 #endif /*  _CONST_H_ */

Generated on Fri Mar 9 19:59:54 2007 for MAD-FCL by  doxygen 1.5.0