- softdtmf=on lets asterisk generate DTMF tones

QSIG:
 - added some debugging output for APDU type
This commit is contained in:
MelwareDE 2007-05-31 20:28:03 +00:00
parent 5452ed6952
commit 7d31b498d0
2 changed files with 12 additions and 2 deletions

View File

@ -696,7 +696,16 @@ static int capi_send_info_digits(struct capi_pvt *i, char *digits, int len)
*/ */
static int pbx_capi_send_digit_begin(struct ast_channel *c, char digit) static int pbx_capi_send_digit_begin(struct ast_channel *c, char digit)
{ {
/* Not needed */ struct capi_pvt *i = CC_CHANNEL_PVT(c);
if ((i->state == CAPI_STATE_CONNECTED) && (i->isdnstate & CAPI_ISDN_STATE_B3_UP)) {
/* we have a real connection, so send real DTMF */
if ((capi_controllers[i->controller]->dtmf == 0) || (i->doDTMF > 0)) {
/* let * fake it */
return -1;
}
}
return 0; return 0;
} }
#endif #endif

View File

@ -300,6 +300,7 @@ int cc_qsig_add_invoke(unsigned char * buf, unsigned int *idx, struct cc_qsig_in
unsigned int cc_qsig_check_facility(unsigned char *data, int *idx, int *apduval, int protocol) unsigned int cc_qsig_check_facility(unsigned char *data, int *idx, int *apduval, int protocol)
{ {
int myidx = *idx; int myidx = *idx;
char *APDU_STR[] = {"IGNORE", "REJECT CALL", "CLEAR CALL"};
/* First byte after Facility Length */ /* First byte after Facility Length */
if (data[myidx] != (unsigned char)(0x80 | protocol)) { if (data[myidx] != (unsigned char)(0x80 | protocol)) {
@ -322,7 +323,7 @@ unsigned int cc_qsig_check_facility(unsigned char *data, int *idx, int *apduval,
*apduval = data[myidx++]; *apduval = data[myidx++];
/* TODO: implement real reject or clear call ? */ /* TODO: implement real reject or clear call ? */
*idx = myidx; *idx = myidx;
/* cc_verbose(1, 1, VERBOSE_PREFIX_3 "QSIG: Facility has APDU %s", APDU_STR[*apduval]); */ cc_verbose(1, 1, VERBOSE_PREFIX_3 "QSIG: Facility has APDU - What to do if INVOKE is unknown: %s\n", APDU_STR[*apduval]);
} }
return 1; return 1;
} }