diff options
| author | Aymeric Moizard <amoizard@gmail.com> | 2015-02-04 16:27:21 +0100 |
|---|---|---|
| committer | Aymeric Moizard <amoizard@gmail.com> | 2015-02-04 16:27:21 +0100 |
| commit | 666b902efee43c0875c97ed5a7deff629443bec7 (patch) | |
| tree | 07ca5c1f5402c7dbacf165269756625a689f1583 | |
| parent | 25f60c8a45747291d4bfe749edf2a9608eae7ae5 (diff) | |
| download | osip-666b902efee43c0875c97ed5a7deff629443bec7.tar.gz | |
update all reasons according to RFC
| -rw-r--r-- | src/osipparser2/osip_message_parse.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/osipparser2/osip_message_parse.c b/src/osipparser2/osip_message_parse.c index 28c6411..f0e5a9a 100644 --- a/src/osipparser2/osip_message_parse.c +++ b/src/osipparser2/osip_message_parse.c @@ -986,42 +986,43 @@ osip_message_get_reason (int replycode) {411, "Length Required"}, {412, "Conditional Request Failed"}, {413, "Request Entity Too Large"}, - {414, "Request-URI Too Large"}, + {414, "Request-URI Too Long"}, {415, "Unsupported Media Type"}, - {416, "Unsupported Uri Scheme"}, + {416, "Unsupported URI Scheme"}, {417, "Unknown Resource-Priority"}, {420, "Bad Extension"}, {421, "Extension Required"}, {422, "Session Interval Too Small"}, - {423, "Interval Too Short"}, + {423, "Interval Too Brief"}, {469, "Bad Info Package"}, - {480, "Temporarily not available"}, - {481, "Call Leg/Transaction Does Not Exist"}, + {480, "Temporarily Unavailable"}, + {481, "Call/Transaction Does Not Exist"}, {482, "Loop Detected"}, {483, "Too Many Hops"}, {484, "Address Incomplete"}, {485, "Ambiguous"}, {486, "Busy Here"}, - {487, "Request Cancelled"}, + {487, "Request Terminated"}, {488, "Not Acceptable Here"}, {489, "Bad Event"}, {491, "Request Pending"}, {493, "Undecipherable"}, }; static const struct code_to_reason reasons5xx[] = { - {500, "Internal Server Error"}, + {500, "Server Internal Error"}, {501, "Not Implemented"}, {502, "Bad Gateway"}, {503, "Service Unavailable"}, - {504, "Gateway Time-out"}, - {505, "SIP Version not supported"}, + {504, "Server Time-out"}, + {505, "Version Not Supported"}, {513, "Message Too Large"}, }; static const struct code_to_reason reasons6xx[] = { {600, "Busy Everywhere"}, {603, "Decline"}, - {604, "Does not exist anywhere"}, - {606, "Not Acceptable"} + {604, "Does Not Exist Anywhere"}, + {606, "Not Acceptable"}, + {687, "Dialog Terminated"} }; const struct code_to_reason *reasons; int len, i; |
