|
|
@ -2701,6 +2701,7 @@ static int dahdi_call(struct ast_channel *ast, char *rdest, int timeout)
|
|
|
|
case SIG_SS7:
|
|
|
|
case SIG_SS7:
|
|
|
|
/* We'll get it in a moment -- but use dialdest to store pre-setup_ack digits */
|
|
|
|
/* We'll get it in a moment -- but use dialdest to store pre-setup_ack digits */
|
|
|
|
p->dialdest[0] = '\0';
|
|
|
|
p->dialdest[0] = '\0';
|
|
|
|
|
|
|
|
p->dialing = 1;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
ast_debug(1, "not yet implemented\n");
|
|
|
|
ast_debug(1, "not yet implemented\n");
|
|
|
@ -3514,6 +3515,7 @@ static int dahdi_hangup(struct ast_channel *ast)
|
|
|
|
p->onhooktime = time(NULL);
|
|
|
|
p->onhooktime = time(NULL);
|
|
|
|
#if defined(HAVE_PRI) || defined(HAVE_SS7)
|
|
|
|
#if defined(HAVE_PRI) || defined(HAVE_SS7)
|
|
|
|
p->proceeding = 0;
|
|
|
|
p->proceeding = 0;
|
|
|
|
|
|
|
|
p->dialing = 0;
|
|
|
|
p->progress = 0;
|
|
|
|
p->progress = 0;
|
|
|
|
p->alerting = 0;
|
|
|
|
p->alerting = 0;
|
|
|
|
p->setup_ack = 0;
|
|
|
|
p->setup_ack = 0;
|
|
|
@ -3778,6 +3780,7 @@ static int dahdi_answer(struct ast_channel *ast)
|
|
|
|
/* Send a pri acknowledge */
|
|
|
|
/* Send a pri acknowledge */
|
|
|
|
if (!pri_grab(p, p->pri)) {
|
|
|
|
if (!pri_grab(p, p->pri)) {
|
|
|
|
p->proceeding = 1;
|
|
|
|
p->proceeding = 1;
|
|
|
|
|
|
|
|
p->dialing = 0;
|
|
|
|
res = pri_answer(p->pri->pri, p->call, 0, !p->digital);
|
|
|
|
res = pri_answer(p->pri->pri, p->call, 0, !p->digital);
|
|
|
|
pri_rel(p->pri);
|
|
|
|
pri_rel(p->pri);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -6103,6 +6106,7 @@ static int dahdi_indicate(struct ast_channel *chan, int condition, const void *d
|
|
|
|
ast_log(LOG_WARNING, "Unable to grab PRI on span %d\n", p->span);
|
|
|
|
ast_log(LOG_WARNING, "Unable to grab PRI on span %d\n", p->span);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
p->proceeding = 1;
|
|
|
|
p->proceeding = 1;
|
|
|
|
|
|
|
|
p->dialing = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_SS7
|
|
|
|
#ifdef HAVE_SS7
|
|
|
@ -11328,8 +11332,12 @@ static void *pri_dchannel(void *vpri)
|
|
|
|
ast_dsp_set_features(pri->pvts[chanpos]->dsp, pri->pvts[chanpos]->dsp_features);
|
|
|
|
ast_dsp_set_features(pri->pvts[chanpos]->dsp, pri->pvts[chanpos]->dsp_features);
|
|
|
|
pri->pvts[chanpos]->dsp_features = 0;
|
|
|
|
pri->pvts[chanpos]->dsp_features = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Bring voice path up */
|
|
|
|
|
|
|
|
f.subclass = AST_CONTROL_PROGRESS;
|
|
|
|
|
|
|
|
dahdi_queue_frame(pri->pvts[chanpos], &f, pri);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pri->pvts[chanpos]->progress = 1;
|
|
|
|
pri->pvts[chanpos]->progress = 1;
|
|
|
|
|
|
|
|
pri->pvts[chanpos]->dialing = 0;
|
|
|
|
ast_mutex_unlock(&pri->pvts[chanpos]->lock);
|
|
|
|
ast_mutex_unlock(&pri->pvts[chanpos]->lock);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -11359,6 +11367,7 @@ static void *pri_dchannel(void *vpri)
|
|
|
|
dahdi_queue_frame(pri->pvts[chanpos], &f, pri);
|
|
|
|
dahdi_queue_frame(pri->pvts[chanpos], &f, pri);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pri->pvts[chanpos]->proceeding = 1;
|
|
|
|
pri->pvts[chanpos]->proceeding = 1;
|
|
|
|
|
|
|
|
pri->pvts[chanpos]->dialing = 0;
|
|
|
|
ast_mutex_unlock(&pri->pvts[chanpos]->lock);
|
|
|
|
ast_mutex_unlock(&pri->pvts[chanpos]->lock);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|