summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@digium.com>2008-12-02 18:00:24 +0000
committerJeff Peeler <jpeeler@digium.com>2008-12-02 18:00:24 +0000
commitb4d8a5b7713e5c2d299fab2201fae084400fad0e (patch)
tree1ee5f6c074b9542c6b78df737eda2eef6510e0f6
parentf96547b0b909eb168e3bcf202ef285304ff9167a (diff)
(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 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@160319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_dahdi.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 75734d8fe..c8325a823 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -180,6 +180,13 @@ static struct ast_jb_conf global_jbconf;
*/
/* #define DAHDI_CHECK_HOOKSTATE */
+/*! \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 */
+
/*! \brief Typically, how many rings before we should send Caller*ID */
#define DEFAULT_CIDRINGS 1
@@ -9097,7 +9104,11 @@ static inline int available(struct dahdi_pvt *p, int channelmatch, ast_group_t g
} 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;