- softdtmf=on lets asterisk generate DTMF tones
QSIG: - added some debugging output for APDU type
This commit is contained in:
parent
5452ed6952
commit
7d31b498d0
11
chan_capi.c
11
chan_capi.c
|
@ -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)
|
||||
{
|
||||
/* 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;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
int myidx = *idx;
|
||||
char *APDU_STR[] = {"IGNORE", "REJECT CALL", "CLEAR CALL"};
|
||||
|
||||
/* First byte after Facility Length */
|
||||
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++];
|
||||
/* TODO: implement real reject or clear call ? */
|
||||
*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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue