[asterisk-commits] jpeeler: trunk r160319 - /trunk/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 2 12:00:25 CST 2008


Author: jpeeler
Date: Tue Dec  2 12:00:24 2008
New Revision: 160319

URL: http://svn.digium.com/view/asterisk?view=rev&rev=160319
Log:
(closes issue #13786)
Reported by: tzafrir

Readding DAHDI_CHECK_HOOKSTATE define that was removed in r134260 which fixes not being able to make outgoing calls on some FXO adapters:
http://lists.digium.com/pipermail/asterisk-users/2008-November/thread.html#221553


Modified:
    trunk/channels/chan_dahdi.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=160319&r1=160318&r2=160319
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Tue Dec  2 12:00:24 2008
@@ -172,6 +172,13 @@
  * even though their web site says they support their products for life.
  */
 /* #define ZHONE_HACK */
+
+/*! \note
+ * Define if you want to check the hook state for an FXO (FXS signalled) interface
+ * before dialing on it.  Certain FXO interfaces always think they're out of
+ * service with this method however.
+ */
+/* #define DAHDI_CHECK_HOOKSTATE */
 
 /*! \note
  * Define if you want to check the hook state for an FXO (FXS signalled) interface
@@ -9097,7 +9104,11 @@
 			} else if (par.rxisoffhook) {
 				ast_debug(1, "Channel %d off hook, can't use\n", p->channel);
 				/* Not available when the other end is off hook */
+#ifdef DAHDI_CHECK_HOOKSTATE
 				return 0;
+#else
+				return 1;
+#endif
 			}
 		}
 		return 1;




More information about the asterisk-commits mailing list