summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-01-23 20:25:39 +0000
committerBenny Prijono <bennylp@teluu.com>2008-01-23 20:25:39 +0000
commit33a56290728f2ad3eee2c9ce5ee807fbe1a101d1 (patch)
treeeba96f0545025e81f0096ea2291cd948581dd1cd /pjsip
parente3e47e64c7868619f3e7a3d72c76f4359e6edb5e (diff)
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: http://svn.pjsip.org/repos/pjproject/trunk@1732 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/include/pjsip/sip_errno.h7
-rw-r--r--pjsip/src/pjsip/sip_errno.c1
2 files changed, 7 insertions, 1 deletions
diff --git a/pjsip/include/pjsip/sip_errno.h b/pjsip/include/pjsip/sip_errno.h
index f1614fd5..eb29bcfa 100644
--- a/pjsip/include/pjsip/sip_errno.h
+++ b/pjsip/include/pjsip/sip_errno.h
@@ -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
diff --git a/pjsip/src/pjsip/sip_errno.c b/pjsip/src/pjsip/sip_errno.c
index d30281fd..4fe6671c 100644
--- a/pjsip/src/pjsip/sip_errno.c
+++ b/pjsip/src/pjsip/sip_errno.c
@@ -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" ),