[layer23] Call application sends CC Capability on incoming call

It is required to make DTMF work on incoming calls also.
This commit is contained in:
Andreas.Eversberg 2010-11-07 10:48:12 +00:00
parent fea95d89e7
commit 2ac17ed9fa
1 changed files with 5 additions and 0 deletions

View File

@ -434,6 +434,11 @@ int mncc_recv_mobile(struct osmocom_ms *ms, int msg_type, void *arg)
else if (data->bearer_cap.speech_ver[1] >= 0
|| speech_ver != 0)
mncc_set_bearer(ms, speech_ver, &mncc);
/* CC capabilities (optional) */
if (ms->settings.cc_dtmf) {
mncc.fields |= MNCC_F_CCCAP;
mncc.cccap.dtmf = 1;
}
mncc_send(ms, MNCC_CALL_CONF_REQ, &mncc);
if (first_call)
LOGP(DMNCC, LOGL_INFO, "Ring!\n");