|
|
@ -3072,9 +3072,9 @@ static int sig_pri_tone_to_dahditone(enum sig_pri_tone tone)
|
|
|
|
#if defined(HAVE_PRI)
|
|
|
|
#if defined(HAVE_PRI)
|
|
|
|
static void my_handle_dchan_exception(struct sig_pri_span *pri, int index)
|
|
|
|
static void my_handle_dchan_exception(struct sig_pri_span *pri, int index)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int x, res;
|
|
|
|
int x;
|
|
|
|
|
|
|
|
|
|
|
|
res = ioctl(pri->fds[index], DAHDI_GETEVENT, &x);
|
|
|
|
ioctl(pri->fds[index], DAHDI_GETEVENT, &x);
|
|
|
|
if (x) {
|
|
|
|
if (x) {
|
|
|
|
ast_log(LOG_NOTICE, "PRI got event: %s (%d) on D-channel of span %d\n", event2str(x), x, pri->span);
|
|
|
|
ast_log(LOG_NOTICE, "PRI got event: %s (%d) on D-channel of span %d\n", event2str(x), x, pri->span);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -11075,7 +11075,7 @@ quit_no_clean:
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static int mwi_send_init(struct dahdi_pvt * pvt)
|
|
|
|
static int mwi_send_init(struct dahdi_pvt * pvt)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int x, res;
|
|
|
|
int x;
|
|
|
|
struct ast_format tmpfmt;
|
|
|
|
struct ast_format tmpfmt;
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_DAHDI_LINEREVERSE_VMWI
|
|
|
|
#ifdef HAVE_DAHDI_LINEREVERSE_VMWI
|
|
|
@ -11112,7 +11112,7 @@ static int mwi_send_init(struct dahdi_pvt * pvt)
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
x = DAHDI_FLUSH_BOTH;
|
|
|
|
x = DAHDI_FLUSH_BOTH;
|
|
|
|
res = ioctl(pvt->subs[SUB_REAL].dfd, DAHDI_FLUSH, &x);
|
|
|
|
ioctl(pvt->subs[SUB_REAL].dfd, DAHDI_FLUSH, &x);
|
|
|
|
x = 3000;
|
|
|
|
x = 3000;
|
|
|
|
ioctl(pvt->subs[SUB_REAL].dfd, DAHDI_ONHOOKTRANSFER, &x);
|
|
|
|
ioctl(pvt->subs[SUB_REAL].dfd, DAHDI_ONHOOKTRANSFER, &x);
|
|
|
|
#ifdef HAVE_DAHDI_LINEREVERSE_VMWI
|
|
|
|
#ifdef HAVE_DAHDI_LINEREVERSE_VMWI
|
|
|
|