Skip to content
Snippets Groups Projects
Commit 2fd695d2 authored by Jeff Peeler's avatar Jeff Peeler
Browse files

Don't try to do anything in pri_check_restart with service messages unless

libpri supports it.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@188515 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent f26878fe
Branches
Tags
No related merge requests found
...@@ -12255,7 +12255,9 @@ static void dahdi_pri_error(struct pri *pri, char *s) ...@@ -12255,7 +12255,9 @@ static void dahdi_pri_error(struct pri *pri, char *s)
#if defined(HAVE_PRI) #if defined(HAVE_PRI)
static int pri_check_restart(struct dahdi_pri *pri) static int pri_check_restart(struct dahdi_pri *pri)
{ {
#ifdef HAVE_PRI_SERVICE_MESSAGES
tryanotherpos: tryanotherpos:
#endif
do { do {
pri->resetpos++; pri->resetpos++;
} while ((pri->resetpos < pri->numchans) && } while ((pri->resetpos < pri->numchans) &&
...@@ -12263,6 +12265,7 @@ tryanotherpos: ...@@ -12263,6 +12265,7 @@ tryanotherpos:
pri->pvts[pri->resetpos]->call || pri->pvts[pri->resetpos]->call ||
pri->pvts[pri->resetpos]->resetting)); pri->pvts[pri->resetpos]->resetting));
if (pri->resetpos < pri->numchans) { if (pri->resetpos < pri->numchans) {
#ifdef HAVE_PRI_SERVICE_MESSAGES
char db_chan_name[20], db_answer[5], state; char db_chan_name[20], db_answer[5], state;
int why; int why;
   
...@@ -12280,6 +12283,7 @@ tryanotherpos: ...@@ -12280,6 +12283,7 @@ tryanotherpos:
goto tryanotherpos; goto tryanotherpos;
} }
} }
#endif
   
/* Mark the channel as resetting and restart it */ /* Mark the channel as resetting and restart it */
pri->pvts[pri->resetpos]->resetting = 1; pri->pvts[pri->resetpos]->resetting = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment