Ignore:
Timestamp:
Jan 18, 2006 11:34:15 PM (18 years ago)
Author:
bennylp
Message:

Complete tsx layer selftest, implemented authentication framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_errno.h

    r109 r123  
    8080 
    8181/************************************************************ 
    82  * GENERIC SIP ERRORS 
     82 * GENERIC/GENERAL SIP ERRORS 
    8383 ***********************************************************/ 
    8484/** 
     
    9797 */ 
    9898#define PJSIP_ESHUTDOWN         (PJSIP_ERRNO_START_PJSIP + 3)   /* 171003 */ 
     99/** 
     100 * @hideinitializer 
     101 * SIP object is not initialized. 
     102 */ 
     103#define PJSIP_ENOTINITIALIZED   (PJSIP_ERRNO_START_PJSIP + 4)   /* 171004 */ 
    99104 
    100105 
     
    109114/** 
    110115 * @hideinitializer 
     116 * Expecting request message. 
     117 */ 
     118#define PJSIP_ENOTREQUESTMSG    (PJSIP_ERRNO_START_PJSIP + 21)  /* 171021 */ 
     119/** 
     120 * @hideinitializer 
     121 * Expecting response message. 
     122 */ 
     123#define PJSIP_ENOTRESPONSEMSG   (PJSIP_ERRNO_START_PJSIP + 22)  /* 171022 */ 
     124/** 
     125 * @hideinitializer 
     126 * Message too long. See also PJSIP_ERXOVERFLOW. 
     127 */ 
     128#define PJSIP_EMSGTOOLONG       (PJSIP_ERRNO_START_PJSIP + 23)  /* 171023 */ 
     129/** 
     130 * @hideinitializer 
     131 * Message not completely received. 
     132 */ 
     133#define PJSIP_EPARTIALMSG       (PJSIP_ERRNO_START_PJSIP + 24)  /* 171024 */ 
     134 
     135/** 
     136 * @hideinitializer 
     137 * Status code is invalid. 
     138 */ 
     139#define PJSIP_EINVALIDSTATUS    (PJSIP_ERRNO_START_PJSIP + 30)  /* 171030 */ 
     140 
     141/** 
     142 * @hideinitializer 
    111143 * Unsupported URL scheme. 
    112144 */ 
    113 #define PJSIP_EINVALIDSCHEME    (PJSIP_ERRNO_START_PJSIP + 21)  /* 171021 */ 
    114 /** 
    115  * @hideinitializer 
    116  * Message too long. See also PJSIP_ERXOVERFLOW. 
    117  */ 
    118 #define PJSIP_EMSGTOOLONG       (PJSIP_ERRNO_START_PJSIP + 22)  /* 171022 */ 
    119 /** 
    120  * @hideinitializer 
    121  * Message not completely received. 
    122  */ 
    123 #define PJSIP_EPARTIALMSG       (PJSIP_ERRNO_START_PJSIP + 23)  /* 171023 */ 
     145#define PJSIP_EINVALIDSCHEME    (PJSIP_ERRNO_START_PJSIP + 40)  /* 171040 */ 
    124146/** 
    125147 * @hideinitializer 
    126148 * Missing Request-URI. 
    127149 */ 
    128 #define PJSIP_EMISSINGREQURI    (PJSIP_ERRNO_START_PJSIP + 24)  /* 171024 */ 
     150#define PJSIP_EMISSINGREQURI    (PJSIP_ERRNO_START_PJSIP + 41)  /* 171041 */ 
     151/** 
     152 * @hideinitializer 
     153 * Invalid request URI. 
     154 */ 
     155#define PJSIP_EINVALIDREQURI    (PJSIP_ERRNO_START_PJSIP + 42)  /* 171042 */ 
     156/** 
     157 * @hideinitializer 
     158 * URI is too long. 
     159 */ 
     160#define PJSIP_EURITOOLONG       (PJSIP_ERRNO_START_PJSIP + 43)  /* 171043 */ 
     161 
    129162/** 
    130163 * @hideinitializer 
    131164 * Missing required header(s). 
    132165 */ 
    133 #define PJSIP_EMISSINGHDR       (PJSIP_ERRNO_START_PJSIP + 25)  /* 171025 */ 
     166#define PJSIP_EMISSINGHDR       (PJSIP_ERRNO_START_PJSIP + 50)  /* 171050 */ 
     167/** 
     168 * @hideinitializer 
     169 * Invalid header field. 
     170 */ 
     171#define PJSIP_EINVALIDHDR       (PJSIP_ERRNO_START_PJSIP + 51)  /* 171051 */ 
     172/** 
     173 * @hideinitializer 
     174 * Invalid Via header in response (sent-by, etc). 
     175 */ 
     176#define PJSIP_EINVALIDVIA       (PJSIP_ERRNO_START_PJSIP + 52)  /* 171052 */ 
     177/** 
     178 * @hideinitializer 
     179 * Multiple Via headers in response. 
     180 */ 
     181#define PJSIP_EMULTIPLEVIA      (PJSIP_ERRNO_START_PJSIP + 53)  /* 171053 */ 
    134182/** 
    135183 * @hideinitializer 
    136184 * Missing message body. 
    137185 */ 
    138 #define PJSIP_EMISSINGBODY      (PJSIP_ERRNO_START_PJSIP + 26)  /* 171026 */ 
    139 /** 
    140  * @hideinitializer 
    141  * Invalid Via header in response (sent-by, etc). 
    142  */ 
    143 #define PJSIP_EINVALIDVIA       (PJSIP_ERRNO_START_PJSIP + 27)  /* 171027 */ 
    144 /** 
    145  * @hideinitializer 
    146  * Multiple Via headers in response. 
    147  */ 
    148 #define PJSIP_EMULTIPLEVIA      (PJSIP_ERRNO_START_PJSIP + 28)  /* 171028 */ 
    149 /** 
    150  * @hideinitializer 
    151  * Invalid request URI. 
    152  */ 
    153 #define PJSIP_EINVALIDREQURI    (PJSIP_ERRNO_START_PJSIP + 29)  /* 171029 */ 
    154 /** 
    155  * @hideinitializer 
    156  * Expecting request message. 
    157  */ 
    158 #define PJSIP_ENOTREQUESTMSG    (PJSIP_ERRNO_START_PJSIP + 30)  /* 171030 */ 
    159 /** 
    160  * @hideinitializer 
    161  * Expecting response message. 
    162  */ 
    163 #define PJSIP_ENOTRESPONSEMSG   (PJSIP_ERRNO_START_PJSIP + 31)  /* 171031 */ 
    164 /** 
    165  * @hideinitializer 
    166  * Invalid header field. 
    167  */ 
    168 #define PJSIP_EINVALIDHDR       (PJSIP_ERRNO_START_PJSIP + 32)  /* 171032 */ 
     186#define PJSIP_EMISSINGBODY      (PJSIP_ERRNO_START_PJSIP + 54)  /* 171054 */ 
    169187 
    170188 
     
    176194 * Unsupported transport type. 
    177195 */ 
    178 #define PJSIP_EUNSUPTRANSPORT   (PJSIP_ERRNO_START_PJSIP + 40)  /* 171040 */ 
     196#define PJSIP_EUNSUPTRANSPORT   (PJSIP_ERRNO_START_PJSIP + 60)  /* 171060 */ 
    179197/** 
    180198 * @hideinitializer 
    181199 * Buffer is being sent, operation still pending. 
    182200 */ 
    183 #define PJSIP_EPENDINGTX        (PJSIP_ERRNO_START_PJSIP + 41)  /* 171041 */ 
     201#define PJSIP_EPENDINGTX        (PJSIP_ERRNO_START_PJSIP + 61)  /* 171061 */ 
    184202/** 
    185203 * @hideinitializer 
    186204 * Rx buffer overflow. See also PJSIP_EMSGTOOLONG. 
    187205 */ 
    188 #define PJSIP_ERXOVERFLOW       (PJSIP_ERRNO_START_PJSIP + 42)  /* 171042 */ 
     206#define PJSIP_ERXOVERFLOW       (PJSIP_ERRNO_START_PJSIP + 62)  /* 171062 */ 
    189207/** 
    190208 * @hideinitializer 
     
    192210 * transmit data has been deleted on return of pjsip_tx_data_dec_ref(). 
    193211 */ 
    194 #define PJSIP_EBUFDESTROYED     (PJSIP_ERRNO_START_PJSIP + 43)  /* 171043 */ 
     212#define PJSIP_EBUFDESTROYED     (PJSIP_ERRNO_START_PJSIP + 63)  /* 171063 */ 
    195213 
    196214 
     
    202220 * Transaction has just been destroyed. 
    203221 */ 
    204 #define PJSIP_ETSXDESTROYED     (PJSIP_ERRNO_START_PJSIP + 60)  /* 171060 */ 
     222#define PJSIP_ETSXDESTROYED     (PJSIP_ERRNO_START_PJSIP + 70)  /* 171070 */ 
    205223 
    206224 
     
    270288 
    271289 
     290/************************************************************ 
     291 * AUTHENTICATION FRAMEWORK 
     292 ***********************************************************/ 
     293/** 
     294 * @hideinitializer 
     295 * Credential failed to authenticate. 
     296 */ 
     297#define PJSIP_EFAILEDCREDENTIAL (PJSIP_ERRNO_START_PJSIP + 100) /* 171100 */ 
     298/** 
     299 * @hideinitializer 
     300 * No suitable credential. 
     301 */ 
     302#define PJSIP_ENOCREDENTIAL     (PJSIP_ERRNO_START_PJSIP + 101) /* 171101 */ 
     303/** 
     304 * @hideinitializer 
     305 * Invalid/unsupported algorithm. 
     306 */ 
     307#define PJSIP_EINVALIDALGORITHM (PJSIP_ERRNO_START_PJSIP + 102) /* 171102 */ 
     308/** 
     309 * @hideinitializer 
     310 * Invalid/unsupported qop. 
     311 */ 
     312#define PJSIP_EINVALIDQOP       (PJSIP_ERRNO_START_PJSIP + 103) /* 171103 */ 
     313/** 
     314 * @hideinitializer 
     315 * Invalid/unsupported authentication scheme. 
     316 */ 
     317#define PJSIP_EINVALIDAUTHSCHEME (PJSIP_ERRNO_START_PJSIP + 104)/* 171104 */ 
     318/** 
     319 * @hideinitializer 
     320 * No previous challenge. 
     321 */ 
     322#define PJSIP_EAUTHNOPREVCHAL   (PJSIP_ERRNO_START_PJSIP + 105) /* 171105 */ 
     323/** 
     324 * @hideinitializer 
     325 * No authorization is found. 
     326 */ 
     327#define PJSIP_EAUTHNOAUTH       (PJSIP_ERRNO_START_PJSIP + 106) /* 171106 */ 
     328/** 
     329 * @hideinitializer 
     330 * Account not found. 
     331 */ 
     332#define PJSIP_EAUTHACCNOTFOUND  (PJSIP_ERRNO_START_PJSIP + 107) /* 171107 */ 
     333/** 
     334 * @hideinitializer 
     335 * Account is disabled. 
     336 */ 
     337#define PJSIP_EAUTHACCDISABLED  (PJSIP_ERRNO_START_PJSIP + 108) /* 171108 */ 
     338/** 
     339 * @hideinitializer 
     340 * Invalid realm. 
     341 */ 
     342#define PJSIP_EAUTHINVALIDREALM (PJSIP_ERRNO_START_PJSIP + 109) /* 171109 */ 
     343/** 
     344 * @hideinitializer 
     345 * Invalid digest. 
     346 */ 
     347#define PJSIP_EAUTHINVALIDDIGEST (PJSIP_ERRNO_START_PJSIP+110)  /* 171110 */ 
     348 
    272349 
    273350PJ_END_DECL 
Note: See TracChangeset for help on using the changeset viewer.