- 论坛徽章:
- 0
|
this bug will let the system can not make outgoing calls when system boots up, you have to make incoming call first to enable the status. the problem caused by chan_dahdi.c, to solve the problem, please patch that. this is a diff for asterisk-1.6.2.2
--- org_chan_dahdi.c 2010-02-04 21:33:34.000000000 -0500
+++ new_chan_dahdi.c 2010-02-04 21:35:48.000000000 -0500
@@ -198,7 +198,7 @@
* before dialing on it. Certain FXO interfaces always think they're out of
* service with this method however.
*/
-/* #define DAHDI_CHECK_HOOKSTATE */
+#define DAHDI_CHECK_HOOKSTATE
/*! \brief Typically, how many rings before we should send Caller*ID */
#define DEFAULT_CIDRINGS 1
@@ -10685,12 +10685,16 @@
/* When "onhook" that means no battery on the line, and thus
it is out of service..., if it's on a TDM card... If it's a channel
bank, there is no telling... */
+#ifdef DAHDI_CHECK_HOOKSTATE
if (par.rxbits > -1)
return 1;
if (par.rxisoffhook)
return 1;
else
return 0;
+#else
+ return 1;
+#endif
} 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 */
more details:
https://issues.asterisk.org/file ... =23171&type=bug |
|