diff options
author | Jeff Peeler <jpeeler@digium.com> | 2009-04-15 14:57:20 +0000 |
---|---|---|
committer | Jeff Peeler <jpeeler@digium.com> | 2009-04-15 14:57:20 +0000 |
commit | 2fd695d23c4e9e53e9aa7cba8c42067fa1a992b2 (patch) | |
tree | 2c28380cdc4d4ba93a224eec95e283f71901ed6d /channels/chan_dahdi.c | |
parent | f26878feb29981ff69185d8b8c7e06b645e8b108 (diff) |
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
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r-- | channels/chan_dahdi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index c380fd228..dd2048fa0 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -12255,7 +12255,9 @@ static void dahdi_pri_error(struct pri *pri, char *s) #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) && @@ -12263,6 +12265,7 @@ tryanotherpos: 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; @@ -12280,6 +12283,7 @@ tryanotherpos: goto tryanotherpos; } } +#endif /* Mark the channel as resetting and restart it */ pri->pvts[pri->resetpos]->resetting = 1; |