asterisk1-6.2.2 bug for offhook checking
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 usen", p->channel);
/* Not available when the other end is off hook */
more details:
https://issues.asterisk.org/file ... =23171&type=bug
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论