免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2773 | 回复: 0
打印 上一主题 下一主题

asterisk1-6.2.2 bug for offhook checking [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-02-05 11:04 |只看该作者 |倒序浏览
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP