Home --> Documentations --> PJSIP Reference
Request and status line structures and manipulation.
More...
|
enum | pjsip_status_code {
PJSIP_SC_NULL = 0
, PJSIP_SC_TRYING = 100
, PJSIP_SC_RINGING = 180
, PJSIP_SC_CALL_BEING_FORWARDED = 181
,
PJSIP_SC_QUEUED = 182
, PJSIP_SC_PROGRESS = 183
, PJSIP_SC_EARLY_DIALOG_TERMINATED = 199
, PJSIP_SC_OK = 200
,
PJSIP_SC_ACCEPTED = 202
, PJSIP_SC_NO_NOTIFICATION = 204
, PJSIP_SC_MULTIPLE_CHOICES = 300
, PJSIP_SC_MOVED_PERMANENTLY = 301
,
PJSIP_SC_MOVED_TEMPORARILY = 302
, PJSIP_SC_USE_PROXY = 305
, PJSIP_SC_ALTERNATIVE_SERVICE = 380
, PJSIP_SC_BAD_REQUEST = 400
,
PJSIP_SC_UNAUTHORIZED = 401
, PJSIP_SC_PAYMENT_REQUIRED = 402
, PJSIP_SC_FORBIDDEN = 403
, PJSIP_SC_NOT_FOUND = 404
,
PJSIP_SC_METHOD_NOT_ALLOWED = 405
, PJSIP_SC_NOT_ACCEPTABLE = 406
, PJSIP_SC_PROXY_AUTHENTICATION_REQUIRED = 407
, PJSIP_SC_REQUEST_TIMEOUT = 408
,
PJSIP_SC_CONFLICT = 409
, PJSIP_SC_GONE = 410
, PJSIP_SC_LENGTH_REQUIRED = 411
, PJSIP_SC_CONDITIONAL_REQUEST_FAILED = 412
,
PJSIP_SC_REQUEST_ENTITY_TOO_LARGE = 413
, PJSIP_SC_REQUEST_URI_TOO_LONG = 414
, PJSIP_SC_UNSUPPORTED_MEDIA_TYPE = 415
, PJSIP_SC_UNSUPPORTED_URI_SCHEME = 416
,
PJSIP_SC_UNKNOWN_RESOURCE_PRIORITY = 417
, PJSIP_SC_BAD_EXTENSION = 420
, PJSIP_SC_EXTENSION_REQUIRED = 421
, PJSIP_SC_SESSION_TIMER_TOO_SMALL = 422
,
PJSIP_SC_INTERVAL_TOO_BRIEF = 423
, PJSIP_SC_BAD_LOCATION_INFORMATION = 424
, PJSIP_SC_USE_IDENTITY_HEADER = 428
, PJSIP_SC_PROVIDE_REFERRER_HEADER = 429
,
PJSIP_SC_FLOW_FAILED = 430
, PJSIP_SC_ANONIMITY_DISALLOWED = 433
, PJSIP_SC_BAD_IDENTITY_INFO = 436
, PJSIP_SC_UNSUPPORTED_CERTIFICATE = 437
,
PJSIP_SC_INVALID_IDENTITY_HEADER = 438
, PJSIP_SC_FIRST_HOP_LACKS_OUTBOUND_SUPPORT = 439
, PJSIP_SC_MAX_BREADTH_EXCEEDED = 440
, PJSIP_SC_BAD_INFO_PACKAGE = 469
,
PJSIP_SC_CONSENT_NEEDED = 470
, PJSIP_SC_TEMPORARILY_UNAVAILABLE = 480
, PJSIP_SC_CALL_TSX_DOES_NOT_EXIST = 481
, PJSIP_SC_LOOP_DETECTED = 482
,
PJSIP_SC_TOO_MANY_HOPS = 483
, PJSIP_SC_ADDRESS_INCOMPLETE = 484
, PJSIP_AC_AMBIGUOUS = 485
, PJSIP_SC_BUSY_HERE = 486
,
PJSIP_SC_REQUEST_TERMINATED = 487
, PJSIP_SC_NOT_ACCEPTABLE_HERE = 488
, PJSIP_SC_BAD_EVENT = 489
, PJSIP_SC_REQUEST_UPDATED = 490
,
PJSIP_SC_REQUEST_PENDING = 491
, PJSIP_SC_UNDECIPHERABLE = 493
, PJSIP_SC_SECURITY_AGREEMENT_NEEDED = 494
, PJSIP_SC_INTERNAL_SERVER_ERROR = 500
,
PJSIP_SC_NOT_IMPLEMENTED = 501
, PJSIP_SC_BAD_GATEWAY = 502
, PJSIP_SC_SERVICE_UNAVAILABLE = 503
, PJSIP_SC_SERVER_TIMEOUT = 504
,
PJSIP_SC_VERSION_NOT_SUPPORTED = 505
, PJSIP_SC_MESSAGE_TOO_LARGE = 513
, PJSIP_SC_PUSH_NOTIFICATION_SERVICE_NOT_SUPPORTED = 555
, PJSIP_SC_PRECONDITION_FAILURE = 580
,
PJSIP_SC_BUSY_EVERYWHERE = 600
, PJSIP_SC_DECLINE = 603
, PJSIP_SC_DOES_NOT_EXIST_ANYWHERE = 604
, PJSIP_SC_NOT_ACCEPTABLE_ANYWHERE = 606
,
PJSIP_SC_UNWANTED = 607
, PJSIP_SC_REJECTED = 608
, PJSIP_SC_TSX_TIMEOUT = PJSIP_SC_REQUEST_TIMEOUT
, PJSIP_SC_TSX_TRANSPORT_ERROR = PJSIP_SC_SERVICE_UNAVAILABLE
,
PJSIP_SC__force_32bit = 0x7FFFFFFF
} |
|
◆ PJSIP_IS_STATUS_IN_CLASS
#define PJSIP_IS_STATUS_IN_CLASS |
( |
|
status_code, |
|
|
|
code_class |
|
) |
| (status_code/100 == code_class/100) |
This macro returns non-zero (TRUE) if the specified status_code is in the same class as the code_class.
- Parameters
-
status_code | The status code. |
code_class | The status code in the class (for example 100, 200). |
◆ pjsip_status_code
This enumeration lists standard SIP status codes according to RFC 3261. In addition, it also declares new status class 7xx for errors generated by the stack. This status class however should not get transmitted on the wire.
◆ pjsip_get_status_text()
const pj_str_t * pjsip_get_status_text |
( |
int |
status_code | ) |
|
Get the default status text for the status code.
- Parameters
-
status_code | SIP Status Code |
- Returns
- textual message for the status code.
PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.
|