From c0b7b1af596c4521589958539a09c8e12052c98c Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Fri, 19 Aug 2016 07:25:33 +0000 Subject: Misc (re #1945): fixed STUN server resolution should be retried, as PJSUA_STUN_RETRY_ON_FAILURE is set, in media transport creation after the one in startup failed (thanks Marcus Froeschl for the report). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5423 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsua-lib/pjsua_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pjsip') diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c index 7725be81..55af3ad1 100644 --- a/pjsip/src/pjsua-lib/pjsua_core.c +++ b/pjsip/src/pjsua-lib/pjsua_core.c @@ -1658,7 +1658,8 @@ pj_status_t resolve_stun_server(pj_bool_t wait, pj_bool_t retry_if_cur_error) { PJ_LOG(2,(THIS_FILE, "Ignoring STUN resolution failure (by setting)")); - pjsua_var.stun_status = PJ_SUCCESS; + //pjsua_var.stun_status = PJ_SUCCESS; + return PJ_SUCCESS; } return pjsua_var.stun_status; -- cgit v1.2.3