diff -rupN pjproject-2.5.5/pjnath/include/pjnath/ice_strans.h pjproject-2.5.5-new/pjnath/include/pjnath/ice_strans.h --- pjproject-2.5.5/pjnath/include/pjnath/ice_strans.h 2016-06-08 05:17:45.000000000 +0200 +++ pjproject-2.5.5-new/pjnath/include/pjnath/ice_strans.h 2017-01-05 14:15:09.449516245 +0100 @@ -930,6 +930,7 @@ 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 -rupN pjproject-2.5.5/pjnath/src/pjnath/ice_strans.c pjproject-2.5.5-new/pjnath/src/pjnath/ice_strans.c --- pjproject-2.5.5/pjnath/src/pjnath/ice_strans.c 2017-01-05 14:15:09.257518125 +0100 +++ pjproject-2.5.5-new/pjnath/src/pjnath/ice_strans.c 2017-01-05 14:15:09.449516245 +0100 @@ -1465,6 +1465,11 @@ PJ_DEF(pj_status_t) pj_ice_strans_sendto 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.