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.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index ecafb25d..8d4d0a97 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -843,6 +843,25 @@ typedef struct pjsua_callback
*/
void (*on_mwi_info)(pjsua_acc_id acc_id, pjsua_mwi_info *mwi_info);
+ /**
+ * This callback is called when transport state is changed. See also
+ * #pjsip_tp_state_callback.
+ *
+ * @param tp The transport instance.
+ * @param state The transport state, this may contain single or
+ * combination of transport state types defined in
+ * #pjsip_transport_state_type.
+ * @param info The transport state info.
+ *
+ * @return When TLS verification fails and peer verification in
+ * #pjsip_tls_setting is not set, application may return
+ * PJ_TRUE to ignore the verification result and continue
+ * using the transport. On other cases, this return value
+ * is currently not used and will be ignored.
+ */
+ pj_bool_t (*on_transport_state)(pjsip_transport *tp, pj_uint32_t state,
+ const pjsip_transport_state_info *info);
+
} pjsua_callback;