From 768e5490d5776cf418c03e222dd6898890ac2861 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 18 Oct 2012 12:01:38 -0400 Subject: [PATCH] FS-4723 --resolve --- src/mod/endpoints/mod_dingaling/mod_dingaling.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_dingaling/mod_dingaling.c b/src/mod/endpoints/mod_dingaling/mod_dingaling.c index 6e36486d7d..78ee260d05 100644 --- a/src/mod/endpoints/mod_dingaling/mod_dingaling.c +++ b/src/mod/endpoints/mod_dingaling/mod_dingaling.c @@ -1589,8 +1589,11 @@ static int do_candidates(struct private_object *tech_pvt, int force) idx += do_tport_candidates(tech_pvt, LDL_TPORT_RTP, &cand[idx], force); idx += do_tport_candidates(tech_pvt, LDL_TPORT_RTCP, &cand[idx], force); - idx += do_tport_candidates(tech_pvt, LDL_TPORT_VIDEO_RTP, &cand[idx], force); - idx += do_tport_candidates(tech_pvt, LDL_TPORT_VIDEO_RTCP, &cand[idx], force); + + if (tech_pvt->transports[LDL_TPORT_VIDEO_RTP].codec_index > -1) { + idx += do_tport_candidates(tech_pvt, LDL_TPORT_VIDEO_RTP, &cand[idx], force); + idx += do_tport_candidates(tech_pvt, LDL_TPORT_VIDEO_RTCP, &cand[idx], force); + } if (idx && cand[0].name) { if (ldl_session_gateway(tech_pvt->dlsession) && switch_test_flag(tech_pvt, TFLAG_OUTBOUND)) { @@ -4349,6 +4352,8 @@ static ldl_status handle_signalling(ldl_handle_t *handle, ldl_session_t *dlsessi break; case LDL_SIGNAL_REDIRECT: do_describe(tech_pvt, 1); + tech_pvt->next_cand = switch_micro_time_now(); + if (channel) switch_channel_mark_ring_ready(channel); break; case LDL_SIGNAL_ERROR: