Making trunk compile again.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@307752 65c4cc65-6c06-0410-ace0-fbb531ad65f3
10-digiumphones
Tilghman Lesher 15 years ago
parent 7800a1c330
commit c0e33b03c3

@ -1236,17 +1236,18 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d
} }
break; break;
case AST_CONTROL_RINGING: case AST_CONTROL_RINGING:
if (ast->_state == AST_STATE_RING || ast->_state == AST_STATE_RINGING) { if (ast->_state == AST_STATE_RING || ast->_state == AST_STATE_RINGING) {
if (!p->alertsent) { if (!p->alertsent) {
if (gH323Debug) { if (gH323Debug) {
ast_debug(1, "Sending manual ringback for %s, res = %d\n", ast_debug(1, "Sending manual ringback for %s, res = %d\n",
callToken, callToken,
ooManualRingback(callToken)); ooManualRingback(callToken));
} else { } else {
ooManualRingback(callToken); ooManualRingback(callToken);
}
p->alertsent = 1;
} }
p->alertsent = 1; }
}
break; break;
case AST_CONTROL_SRCUPDATE: case AST_CONTROL_SRCUPDATE:
ast_rtp_instance_update_source(p->rtp); ast_rtp_instance_update_source(p->rtp);
@ -4095,7 +4096,7 @@ static int ooh323_set_udptl_peer(struct ast_channel *chan, struct ast_udptl *udp
memset(&p->udptlredirip, 0, sizeof(p->udptlredirip)); memset(&p->udptlredirip, 0, sizeof(p->udptlredirip));
ast_mutex_unlock(&p->lock); ast_mutex_unlock(&p->lock);
free(callToken); /* free(callToken); */
return 0; return 0;
} }

@ -56,7 +56,7 @@ int ooCreateCallCmdConnection(OOH323CallData* call)
OOTRACEINFO2("INFO: create cmd connect for call: %lx\n", call); OOTRACEINFO2("INFO: create cmd connect for call: %lx\n", call);
call->CmdChanLock = ast_calloc(1, sizeof(ast_mutex_t)); call->CmdChanLock = calloc(1, sizeof(ast_mutex_t));
ast_mutex_init(call->CmdChanLock); ast_mutex_init(call->CmdChanLock);

Loading…
Cancel
Save