- don't forward DTMF if in NT-mode and the line is not connected yet.
This commit is contained in:
parent
76c580033a
commit
cdb1fc1592
14
chan_capi.c
14
chan_capi.c
|
@ -2579,12 +2579,14 @@ static void capi_handle_facility_indication(_cmsg *CMSG, unsigned int PLCI, unsi
|
||||||
dtmf = (FACILITY_IND_FACILITYINDICATIONPARAMETER(CMSG))[dtmfpos];
|
dtmf = (FACILITY_IND_FACILITYINDICATIONPARAMETER(CMSG))[dtmfpos];
|
||||||
cc_verbose(1, 1, VERBOSE_PREFIX_4 "%s: c_dtmf = %c\n",
|
cc_verbose(1, 1, VERBOSE_PREFIX_4 "%s: c_dtmf = %c\n",
|
||||||
i->name, dtmf);
|
i->name, dtmf);
|
||||||
if ((dtmf == 'X') || (dtmf == 'Y')) {
|
if ((!(i->ntmode)) || (i->state == CAPI_STATE_CONNECTED)) {
|
||||||
capi_handle_dtmf_fax(i->owner);
|
if ((dtmf == 'X') || (dtmf == 'Y')) {
|
||||||
} else {
|
capi_handle_dtmf_fax(i->owner);
|
||||||
fr.frametype = AST_FRAME_DTMF;
|
} else {
|
||||||
fr.subclass = dtmf;
|
fr.frametype = AST_FRAME_DTMF;
|
||||||
pipe_frame(i, &fr);
|
fr.subclass = dtmf;
|
||||||
|
pipe_frame(i, &fr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dtmflen--;
|
dtmflen--;
|
||||||
dtmfpos++;
|
dtmfpos++;
|
||||||
|
|
Loading…
Reference in New Issue