#if defined(HAVE_PRI)
static int pri_check_restart(struct dahdi_pri *pri)
{
+#ifdef HAVE_PRI_SERVICE_MESSAGES
tryanotherpos:
+#endif
do {
pri->resetpos++;
} while ((pri->resetpos < pri->numchans) &&
pri->pvts[pri->resetpos]->call ||
pri->pvts[pri->resetpos]->resetting));
if (pri->resetpos < pri->numchans) {
+#ifdef HAVE_PRI_SERVICE_MESSAGES
char db_chan_name[20], db_answer[5], state;
int why;
goto tryanotherpos;
}
}
+#endif
/* Mark the channel as resetting and restart it */
pri->pvts[pri->resetpos]->resetting = 1;