Go to the documentation of this file.
21 #ifndef _OSIP_CONST_H_
22 #define _OSIP_CONST_H_
34 #define ACCEPT "accept"
35 #define ACCEPT_ENCODING "accept-encoding"
36 #define ACCEPT_LANGUAGE "accept-language"
37 #define ALERT_INFO "alert-info"
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"
55 #define SIPDATE "date"
56 #define ERROR_INFO "error-info"
57 #define EXPIRES "expires"
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"
75 #define SERVER "server"
76 #define SUBJECT "subject"
77 #define SUBJECT_SHORT "s"
78 #define SUPPORTED "supported"
79 #define TIMESTAMP "timestamp"
82 #define UNSUPPORTED "unsupported"
83 #define USER_AGENT "user-agent"
86 #define WARNING "warning"
87 #define WWW_AUTHENTICATE "www-authenticate"
90 #define RESPONSE_CODES 51
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
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
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
146 #define OSIP_IS_SIP_INFO(x) (((x) >= 100)&&((x) < 200))
148 #define OSIP_IS_SIP_SUCCESS(x) (((x) >= 200)&&((x) < 300))
150 #define OSIP_IS_SIP_REDIRECT(x) (((x) >= 300)&&((x) < 400))
152 #define OSIP_IS_SIP_ERROR(x) (((x) >= 400)&&((x) < 600))
154 #define OSIP_IS_SIP_CLIENT_ERROR(x) (((x) >= 400)&&((x) < 500))
156 #define OSIP_IS_SIP_SERVER_ERROR(x) (((x) >= 500)&&((x) < 600))