- don't forward DTMF if in NT-mode and the line is not connected yet.

This commit is contained in:
MelwareDE 2005-12-13 14:56:51 +00:00
parent 76c580033a
commit cdb1fc1592
1 changed files with 8 additions and 6 deletions

View File

@ -2579,6 +2579,7 @@ 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 ((!(i->ntmode)) || (i->state == CAPI_STATE_CONNECTED)) {
if ((dtmf == 'X') || (dtmf == 'Y')) { if ((dtmf == 'X') || (dtmf == 'Y')) {
capi_handle_dtmf_fax(i->owner); capi_handle_dtmf_fax(i->owner);
} else { } else {
@ -2586,6 +2587,7 @@ static void capi_handle_facility_indication(_cmsg *CMSG, unsigned int PLCI, unsi
fr.subclass = dtmf; fr.subclass = dtmf;
pipe_frame(i, &fr); pipe_frame(i, &fr);
} }
}
dtmflen--; dtmflen--;
dtmfpos++; dtmfpos++;
} }