int resetting;
int prioffset;
int alreadyhungup;
+#ifdef PRI_EVENT_PROCEEDING
+ int proceeding;
+#endif
#endif
#ifdef ZAPATA_R2
int r2prot;
index = zt_get_index(ast, p, 0);
if (index == SUB_REAL) {
#ifdef ZAPATA_PRI
+#ifdef PRI_EVENT_PROCEEDING
+ if (p->sig == SIG_PRI && ast->_state == AST_STATE_DIALING && !p->proceeding) {
+#else
if (p->sig == SIG_PRI && ast->_state == AST_STATE_DIALING) {
+#endif
pri_information(p->pri->pri,p->call,digit);
} else {
#else
p->faxhandled = 0;
p->pulsedial = 0;
p->onhooktime = time(NULL);
+ p->proceeding = 0;
if (p->dsp) {
ast_dsp_free(p->dsp);
p->dsp = NULL;
}
}
break;
+#ifdef PRI_EVENT_PROCEEDING
+ case PRI_EVENT_PROCEEDING:
+ chan = e->proceeding.channel;
+ if ((chan >= 1) && (chan <= pri->channels))
+ if (pri->pvt[chan])
+ pri->pvt[chan]->proceeding=1;
+ break;
+#endif
default:
ast_log(LOG_DEBUG, "Event: %d\n", e->e);
}