diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-02-19 15:37:19 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-02-19 15:37:19 +0000 |
commit | 51f0bc5a46378786d98caf84df2cf31bb169e45b (patch) | |
tree | e17a65e4ebdf98d4f46857f51d26afe7f1fb2aa7 /pjsip/include/pjsip-ua | |
parent | c1fa8a21eda0357a8c25a63b634615f6785e4d48 (diff) |
SIMPLE test with FWD, and added more info in UI
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@201 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsip-ua')
-rw-r--r-- | pjsip/include/pjsip-ua/sip_regc.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pjsip/include/pjsip-ua/sip_regc.h b/pjsip/include/pjsip-ua/sip_regc.h index 12959916..d86c330e 100644 --- a/pjsip/include/pjsip-ua/sip_regc.h +++ b/pjsip/include/pjsip-ua/sip_regc.h @@ -59,6 +59,7 @@ struct pjsip_regc_cbparam pjsip_regc *regc; void *token; int code; + pj_status_t status; pj_str_t reason; pjsip_rx_data *rdata; int contact_cnt; @@ -70,6 +71,24 @@ struct pjsip_regc_cbparam /** Type declaration for callback to receive registration result. */ typedef void pjsip_regc_cb(struct pjsip_regc_cbparam *param); +/** + * Client registration information. + */ +struct pjsip_regc_info +{ + pj_str_t server_uri; /**< Server URI, */ + pj_str_t client_uri; /**< Client URI (From header). */ + pj_bool_t is_busy; /**< Have pending transaction? */ + pj_bool_t auto_reg; /**< Will register automatically? */ + int interval; /**< Registration interval (seconds). */ + int next_reg; /**< Time until next registration (seconds). */ +}; + +/** + * @see pjsip_regc_info + */ +typedef struct pjsip_regc_info pjsip_regc_info; + /** * Get the module instance for client registration module. @@ -106,6 +125,18 @@ PJ_DECL(pj_status_t) pjsip_regc_create( pjsip_endpoint *endpt, void *token, PJ_DECL(pj_status_t) pjsip_regc_destroy(pjsip_regc *regc); /** + * Get registration info. + * + * @param regc The client registration structure. + * @param info Client registration info. + * + * @return PJ_SUCCESS on success. + */ +PJ_DECL(pj_status_t) pjsip_regc_get_info( pjsip_regc *regc, + pjsip_regc_info *info ); + + +/** * Get the memory pool associated with a registration client handle. * * @param regc The client registration structure. |