Evaluate return value of send dtmf function.

This commit is contained in:
MelwareDE 2007-07-22 15:16:14 +00:00
parent e8059e664b
commit 8ec9a8f46a
1 changed files with 2 additions and 2 deletions

View File

@ -791,7 +791,7 @@ static int pbx_capi_send_digit(struct ast_channel *c, char digit)
return ret;
} else {
/* if PROGRESS arrived, we sent as DTMF */
capi_send_dtmf_digits(i, digit);
ret = capi_send_dtmf_digits(i, digit);
cc_mutex_unlock(&i->lock);
return ret;
}
@ -799,7 +799,7 @@ static int pbx_capi_send_digit(struct ast_channel *c, char digit)
if (i->state == CAPI_STATE_CONNECTED) {
/* we have a real connection, so send real DTMF */
capi_send_dtmf_digits(i, digit);
ret = capi_send_dtmf_digits(i, digit);
}
cc_mutex_unlock(&i->lock);
return ret;