Skip to content

Commit 7e61411

Browse files
authored
Merge pull request #11 from freeswitch/resp
Add response macros
2 parents ca37a2f + ad0adea commit 7e61411

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

libsofia-sip-ua/sip/sip_status.c

+7
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ char const
5757
sip_401_Unauthorized[] = "Unauthorized",
5858
sip_402_Payment_required[] = "Payment Required",
5959
sip_403_Forbidden[] = "Forbidden",
60+
sip_403_Stale_date[] = "Stale Date",
6061
sip_404_Not_found[] = "Not Found",
6162
sip_405_Method_not_allowed[] = "Method Not Allowed",
6263
sip_406_Not_acceptable[] = "Not Acceptable",
@@ -76,6 +77,12 @@ char const
7677
sip_422_Session_timer[] = "Session Interval Too Small",
7778
sip_423_Interval_too_brief[] = "Interval Too Brief",
7879

80+
sip_428_Use_identity_header[] = "Use Identity Header",
81+
sip_436_Bad_identity_info[] = "Bad Identity Info",
82+
sip_437_Unsupported_credential[] = "Unsupported Credential",
83+
sip_438_Invalid_identity_header[] = "Invalid Identity Header",
84+
sip_439_Stale_date[] = "Stale Date",
85+
7986
sip_480_Temporarily_unavailable[] = "Temporarily Unavailable",
8087
sip_481_No_transaction[] = "Call/Transaction Does Not Exist",
8188
sip_482_Loop_detected[] = "Loop Detected",

libsofia-sip-ua/sip/sofia-sip/sip_status.h

+15
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ SOFIAPUBFUN char const *sip_status_phrase(int status);
7676
#define SIP_402_PAYMENT_REQUIRED 402, sip_402_Payment_required
7777
/** 403 Forbidden @HIDE */
7878
#define SIP_403_FORBIDDEN 403, sip_403_Forbidden
79+
/** 403 Stale Date (in STIR-Shaken) @HIDE */
80+
#define SIP_403_STALE_DATE 403, sip_403_Stale_date
7981
/** 404 Not Found @HIDE */
8082
#define SIP_404_NOT_FOUND 404, sip_404_Not_found
8183
/** 405 Method Not Allowed @HIDE */
@@ -113,6 +115,14 @@ SOFIAPUBFUN char const *sip_status_phrase(int status);
113115
/** 423 Interval Too Brief @HIDE */
114116
#define SIP_423_INTERVAL_TOO_BRIEF 423, sip_423_Interval_too_brief
115117
#define SIP_423_REGISTRATION_TOO_BRIEF 423, sip_423_Interval_too_brief
118+
/** 428 Use Identity Header (in STIR-Shaken) @HIDE */
119+
#define SIP_428_USE_IDENTITY_HEADER 428, sip_428_Use_identity_header
120+
/** 436 Bad Identity Info (in STIR-Shaken) @HIDE */
121+
#define SIP_436_BAD_IDENTITY_INFO 436, sip_436_Bad_identity_info
122+
/** 437 Unsupported Credential (in STIR-Shaken) @HIDE */
123+
#define SIP_437_UNSUPPORTED_CREDENTIAL 437, sip_437_Unsupported_credential
124+
/** 438 Invalid Identity Header (in STIR-Shaken) @HIDE */
125+
#define SIP_438_INVALID_IDENTITY_HEADER 438, sip_438_Invalid_identity_header
116126
/** 480 Temporarily Unavailable @HIDE */
117127
#define SIP_480_TEMPORARILY_UNAVAILABLE 480, sip_480_Temporarily_unavailable
118128
/** 481 Call/Transaction Does Not Exist @HIDE */
@@ -194,6 +204,7 @@ SOFIAPUBVAR char const sip_400_Bad_request[];
194204
SOFIAPUBVAR char const sip_401_Unauthorized[];
195205
SOFIAPUBVAR char const sip_402_Payment_required[];
196206
SOFIAPUBVAR char const sip_403_Forbidden[];
207+
SOFIAPUBVAR char const sip_403_Stale_date[];
197208
SOFIAPUBVAR char const sip_404_Not_found[];
198209
SOFIAPUBVAR char const sip_405_Method_not_allowed[];
199210
SOFIAPUBVAR char const sip_406_Not_acceptable[];
@@ -212,6 +223,10 @@ SOFIAPUBVAR char const sip_420_Bad_extension[];
212223
SOFIAPUBVAR char const sip_421_Extension_required[];
213224
SOFIAPUBVAR char const sip_422_Session_timer[];
214225
SOFIAPUBVAR char const sip_423_Interval_too_brief[];
226+
SOFIAPUBVAR char const sip_428_Use_identity_header[];
227+
SOFIAPUBVAR char const sip_436_Bad_identity_info[];
228+
SOFIAPUBVAR char const sip_437_Unsupported_credential[];
229+
SOFIAPUBVAR char const sip_438_Invalid_identity_header[];
215230
SOFIAPUBVAR char const sip_480_Temporarily_unavailable[];
216231
SOFIAPUBVAR char const sip_481_No_transaction[];
217232
SOFIAPUBVAR char const sip_482_Loop_detected[];

0 commit comments

Comments
 (0)