[asterisk-commits] jpeeler: trunk r188515 - /trunk/channels/chan_dahdi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Apr 15 09:57:23 CDT 2009
Author: jpeeler
Date: Wed Apr 15 09:57:20 2009
New Revision: 188515
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=188515
Log:
Don't try to do anything in pri_check_restart with service messages unless
libpri supports it.
Modified:
trunk/channels/chan_dahdi.c
Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=188515&r1=188514&r2=188515
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Wed Apr 15 09:57:20 2009
@@ -12255,7 +12255,9 @@
#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 @@
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 @@
goto tryanotherpos;
}
}
+#endif
/* Mark the channel as resetting and restart it */
pri->pvts[pri->resetpos]->resetting = 1;
More information about the asterisk-commits
mailing list