git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1224 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-04-22 01:21:53 +00:00
parent 377090fa46
commit 77b7a209e2
1 changed files with 7 additions and 0 deletions

View File

@ -307,6 +307,9 @@ static int do_candidates(struct private_object *tech_pvt, int force)
assert(channel != NULL);
tech_pvt->next_cand += DL_CAND_WAIT;
if (switch_test_flag(tech_pvt, TFLAG_BYE)) {
return -1;
}
if (force || !switch_test_flag(tech_pvt, TFLAG_RTP_READY)) {
ldl_candidate_t cand[1];
@ -384,6 +387,10 @@ static int do_describe(struct private_object *tech_pvt, int force)
tech_pvt->next_desc += DL_CAND_WAIT;
if (switch_test_flag(tech_pvt, TFLAG_BYE)) {
return -1;
}
memset(payloads, 0, sizeof(payloads));
if (!tech_pvt->num_codecs) {