--- a/pjnath/include/pjnath/ice_strans.h +++ b/pjnath/include/pjnath/ice_strans.h @@ -845,6 +845,8 @@ PJ_DECL(pj_status_t) pj_ice_strans_sendt int dst_addr_len); +PJ_DECL(pj_ice_sess *) pj_ice_strans_get_ice_sess(pj_ice_strans *ice_st); + /** * @} */ diff --git a/pjnath/src/pjnath/ice_strans.c b/pjnath/src/pjnath/ice_strans.c index eded121..ea15b8b 100644 --- a/pjnath/src/pjnath/ice_strans.c +++ b/pjnath/src/pjnath/ice_strans.c @@ -1462,6 +1462,12 @@ PJ_DEF(pj_status_t) pj_ice_strans_sendto( pj_ice_strans *ice_st, return PJ_EINVALIDOP; } +PJ_DECL(pj_ice_sess *) pj_ice_strans_get_ice_sess( pj_ice_strans *ice_st ) +{ + return ice_st->ice; +} + + /* * Callback called by ICE session when ICE processing is complete, either * successfully or with failure.