diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-06-13 22:21:23 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-06-13 22:21:23 +0000 |
commit | 26af83c5f17911357c683761253a7b25993f321f (patch) | |
tree | 5a206ec979fbf063bd4bc0ebd4294c754d9738ac /pjsip/include | |
parent | f0bcd9121b3833df88a00d7808fc578c1bced67e (diff) |
Added status_text and cause_text in dialog and transaction to capture the real status text in the final response (instead of just the code)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@500 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip-ua/sip_inv.h | 3 | ||||
-rw-r--r-- | pjsip/include/pjsip/sip_transaction.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/pjsip/include/pjsip-ua/sip_inv.h b/pjsip/include/pjsip-ua/sip_inv.h index c85795ab..cdc8b8f9 100644 --- a/pjsip/include/pjsip-ua/sip_inv.h +++ b/pjsip/include/pjsip-ua/sip_inv.h @@ -166,10 +166,11 @@ enum pjsip_inv_option */ struct pjsip_inv_session { - char obj_name[PJ_MAX_OBJ_NAME]; /**< Log identification. */ + char obj_name[PJ_MAX_OBJ_NAME]; /**< Log identification */ pj_pool_t *pool; /**< Dialog's pool. */ pjsip_inv_state state; /**< Invite sess state. */ pjsip_status_code cause; /**< Disconnect cause. */ + pj_str_t cause_text; /**< Cause text. */ pj_bool_t notify; /**< Internal. */ pjsip_dialog *dlg; /**< Underlying dialog. */ pjsip_role_e role; /**< Invite role. */ diff --git a/pjsip/include/pjsip/sip_transaction.h b/pjsip/include/pjsip/sip_transaction.h index 7878ec66..895487dd 100644 --- a/pjsip/include/pjsip/sip_transaction.h +++ b/pjsip/include/pjsip/sip_transaction.h @@ -82,6 +82,7 @@ struct pjsip_transaction * State and status. */ int status_code; /**< Last status code seen. */ + pj_str_t status_text; /**< Last reason phrase. */ pjsip_tsx_state_e state; /**< State. */ int handle_200resp; /**< UAS 200/INVITE retrsm.*/ int tracing; /**< Tracing enabled? */ |