summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsua-lib/pjsua.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip/include/pjsua-lib/pjsua.h')
-rw-r--r--pjsip/include/pjsua-lib/pjsua.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index e730790c..56c3c82a 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -477,6 +477,10 @@ typedef struct pjsua_reg_info
{
struct pjsip_regc_cbparam *cbparam; /**< Parameters returned by
registration callback. */
+ pjsip_regc *regc; /**< Client registration
+ structure. */
+ pj_bool_t renew; /**< Non-zero for registration and
+ zero for unregistration. */
} pjsua_reg_info;
@@ -907,6 +911,16 @@ typedef struct pjsua_callback
* unregistration.
*/
void (*on_reg_started)(pjsua_acc_id acc_id, pj_bool_t renew);
+
+ /**
+ * This is the alternative version of the \a on_reg_started() callback with
+ * \a pjsua_reg_info argument.
+ *
+ * @param acc_id The account ID.
+ * @param info The registration info.
+ */
+ void (*on_reg_started2)(pjsua_acc_id acc_id,
+ pjsua_reg_info *info);
/**
* Notify application when registration status has changed.