From 72549c62dbda8bcdc5afab24c468f701728fb3d7 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Tue, 7 Sep 2010 05:10:25 +0000 Subject: Fixed #1118: Add last error code to PJSUA-LIB account info structure git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3303 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsua-lib/pjsua.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pjsip/include/pjsua-lib') diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index 7c770e05..7510a4fc 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -2340,6 +2340,14 @@ typedef struct pjsua_acc_info */ pjsip_status_code status; + /** + * Last registration error code. When the status field contains a SIP + * status code that indicates a registration failure, last registration + * error code contains the error code that causes the failure. In any + * other case, its value is zero. + */ + pj_status_t reg_last_err; + /** * String describing the registration status. */ -- cgit v1.2.3