From 8d35b8f739dbad39422332ecb8376cc18a858f2e Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sat, 19 Jun 2010 12:35:33 +0000 Subject: Fixed #1077: In ICE stream transport (ice_strans.c), automaticaly retry allocation once if TURN allocation fails. If this allocation retry also fails, notify the TURN user via on_ice_complete() callback. Details: - added new PJ_ICE_STRANS_OP_KEEP_ALIVE operation - also added new on_ice_transport_error() pjsua callback to allow application to react to the failure. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3212 74dad513-b988-da41-8d7b-12977e46ad98 --- pjnath/include/pjnath/ice_strans.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'pjnath/include') diff --git a/pjnath/include/pjnath/ice_strans.h b/pjnath/include/pjnath/ice_strans.h index 158c303c..91a9a109 100644 --- a/pjnath/include/pjnath/ice_strans.h +++ b/pjnath/include/pjnath/ice_strans.h @@ -123,7 +123,12 @@ typedef enum pj_ice_strans_op PJ_ICE_STRANS_OP_INIT, /** Negotiation */ - PJ_ICE_STRANS_OP_NEGOTIATION + PJ_ICE_STRANS_OP_NEGOTIATION, + + /** This operatino is used to report failure in keep-alive operation. + * Currently it is only used to report TURN Refresh failure. + */ + PJ_ICE_STRANS_OP_KEEP_ALIVE } pj_ice_strans_op; @@ -152,10 +157,10 @@ typedef struct pj_ice_strans_cb unsigned src_addr_len); /** - * Callback to report status. + * Callback to report status of various ICE operations. * * @param ice_st The ICE stream transport. - * @param op The operation + * @param op The operation which status is being reported. * @param status Operation status. */ void (*on_ice_complete)(pj_ice_strans *ice_st, -- cgit v1.2.3