Related to ticket #61: Added PJSIP_ESESSIONINSECURE error code in sip_errno to require that secure session shall be used (needed by SRTP)

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1732 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2008-01-23 20:25:39 +00:00
parent b2f20e1200
commit 5b221d4fa6
2 changed files with 7 additions and 1 deletions

View File

@ -428,7 +428,12 @@ PJ_BEGIN_DECL
* Invalid session state for the specified operation.
*/
#define PJSIP_ESESSIONSTATE (PJSIP_ERRNO_START_PJSIP+141) /* 171141 */
/**
* @hideinitializer
* The feature being requested requires the use of secure session or
* transport.
*/
#define PJSIP_ESESSIONINSECURE (PJSIP_ERRNO_START_PJSIP+142) /* 171142 */
/************************************************************
* TLS TRANSPORT ERRORS

View File

@ -114,6 +114,7 @@ static const struct
/* Invite session. */
PJ_BUILD_ERR( PJSIP_ESESSIONTERMINATED, "INVITE session already terminated" ),
PJ_BUILD_ERR( PJSIP_ESESSIONSTATE, "Invalid INVITE session state" ),
PJ_BUILD_ERR( PJSIP_ESESSIONINSECURE, "Require secure session/transport"),
/* SSL errors */
PJ_BUILD_ERR( PJSIP_TLS_EUNKNOWN, "Unknown TLS error" ),