[Oct 7 20:46:29] WARNING[4860] app_dial.c: Unable to create channel of type 'DAHDI' (cause 34 - Circuit/channel congestion)
这个bug 在asterisk-1.4.XX 出现过,但是asterisk-1.6.2.2 出现了这个问题。
当系统启动以后,用户必须先呼入,然后再可以呼出。比较笨的办法办法:
1) 把 FXO 的线拔出来,然后再插回去。这样系统就正常了。
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
歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) | Powered by Discuz! 7.2 |