安装了tdm400p卡,拨9不通,但sip可以往外拨。

[i=s] 本帖最后由 wangxh 于 2009-8-5 13:07 编辑 [/i]

[b]安装了tdm400p卡,拨9不通,但sip可以往外拨。[/b]
[b]安装了tdm400p卡,拨9不通,但sip可以往外拨。PSTN电话线也接通了。为什么呢?[/b]
[b]问题:sip通了,可以用分机通过sip往外拨,可是拨9,走zap就不行,日志在下面的日志。[/b]
另外,
[b]lsmod |grep zap[/b]
[root@astercc1 asterisk]# lsmod |grep zap
zaptel 186500 14 xpp,wcusb,wcfxo,wctdm24xxp,wcte11xp,wct1xxp,wcte12xp,wct4xxp,tor2,wctdm
oslec 13848 1 zaptel
crc_ccitt 6337 1 zapte

[b]zttool[/b]
显示
l OK Wildcard TDM400P REV I Board 1

看来驱动没有问题

但是 zap show channels 提示没有这个命令。
为什么?

[b] ztcfg -vvv[/b]

Zaptel Version: 1.4.11
Echo Canceller: OSLEC
Configuration
======================

Channel map:

Channel 01: FXS Kewlstart (Default) (Slaves: 01)

1 channels to configure.

[b]cat /proc/zaptel/*[/b]
Span 1: WCTDM/0 “Wildcard TDM400P REV I Board 1” (MASTER)

1 WCTDM/0/0 FXSKS
2 WCTDM/0/1
3 WCTDM/0/2
4 WCTDM/0/3

[b]ls -l /usr/lib/asterisk/modules/chan_zap.so [/b]
-rw-r—– 1 root asterisk 260520 Sep 9 2008 /usr/lib/asterisk/modules/chan_zap.so
说明chan_zap.so也是有的

[b]下面是zapata.conf[/b]
vi /etc/asterisk/zapata.conf
;# Flash Operator Panel will parse this file for zap trunk buttons
;# AMPLABEL will be used for the display labels on the buttons

;# %c Zap Channel number
;# %n Line number
;# %N Line number, but restart counter
;# Example:
;# ;AMPLABEL:Channel %c – Button %n

;# For Zap/* buttons use the following
;# (where x=number of buttons to dislpay)
“/etc/asterisk/zapata.conf” 34L, 730C
;# Flash Operator Panel will parse this file for zap trunk buttons
;# AMPLABEL will be used for the display labels on the buttons

;# %c Zap Channel number
;# %n Line number
;# %N Line number, but restart counter
;# Example:
;# ;AMPLABEL:Channel %c – Button %n

;# For Zap/* buttons use the following
;# (where x=number of buttons to dislpay)
;# ;AMPWILDCARDLABEL(x):MyLabel

[channels]
language=cn

; include zap extensions defined in AMP
#include zapata_additional.conf
#include zapata-channels.conf
; XTDM20B Port #1,2 plugged into PSTN
;AMPLABEL:Channel %c – Button %n
context=from-zaptel
signalling=fxs_ks
faxdetect=incoming
usecallerid=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
group=0
channel=1-2

下面是日志:请大家帮助分析一下

astercc1*CLI>
astercc1*CLI>
astercc1*CLI>
astercc1*CLI>
astercc1*CLI>
astercc1*CLI>
— Executing [913910682506@from-internal:1] Macro(“SIP/8001-08e2b4e0”, “user-callerid|SKIPTTL|”) in new stack
— Executing [s@macro-user-callerid:1] Set(“SIP/8001-08e2b4e0”, “AMPUSER=8001”) in new stack
— Executing [s@macro-user-callerid:2] GotoIf(“SIP/8001-08e2b4e0”, “0?report”) in new stack
— Executing [s@macro-user-callerid:3] ExecIf(“SIP/8001-08e2b4e0”, “1|Set|REALCALLERIDNUM=8001”) in new stack
— Executing [s@macro-user-callerid:4] Set(“SIP/8001-08e2b4e0”, “AMPUSER=8001”) in new stack
— Executing [s@macro-user-callerid:5] Set(“SIP/8001-08e2b4e0”, “AMPUSERCIDNAME=8001”) in new stack
— Executing [s@macro-user-callerid:6] GotoIf(“SIP/8001-08e2b4e0”, “0?report”) in new stack
— Executing [s@macro-user-callerid:7] Set(“SIP/8001-08e2b4e0”, “AMPUSERCID=8001”) in new stack
— Executing [s@macro-user-callerid:8] Set(“SIP/8001-08e2b4e0”, “CALLERID(all)=”8001” <8001>“) in new stack
— Executing [s@macro-user-callerid:9] Set(“SIP/8001-08e2b4e0”, “REALCALLERIDNUM=8001”) in new stack
— Executing [s@macro-user-callerid:10] ExecIf(“SIP/8001-08e2b4e0”, “0|Set|CHANNEL(language)=”) in new stack
— Executing [s@macro-user-callerid:11] GotoIf(“SIP/8001-08e2b4e0”, “1?continue”) in new stack
— Goto (macro-user-callerid,s,20)
— Executing [s@macro-user-callerid:20] NoOp(“SIP/8001-08e2b4e0”, “Using CallerID “8001” <8001>“) in new stack
— Executing [913910682506@from-internal:2] Set(“SIP/8001-08e2b4e0”, “_NODEST=”) in new stack
— Executing [913910682506@from-internal:3] Macro(“SIP/8001-08e2b4e0”, “record-enable|8001|OUT|”) in new stack
— Executing [s@macro-record-enable:1] GotoIf(“SIP/8001-08e2b4e0”, “1?check”) in new stack
— Goto (macro-record-enable,s,4)
— Executing [s@macro-record-enable:4] AGI(“SIP/8001-08e2b4e0”, “recordingcheck|20090805-110406|1249441446.8”) in new stack
— Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20090805-110406|1249441446.8: Outbound recording enabled.
recordingcheck|20090805-110406|1249441446.8: CALLFILENAME=OUT8001-20090805-110406-1249441446.8
— AGI Script recordingcheck completed, returning 0
— Executing [s@macro-record-enable:999]MixMonitor(“SIP/8001-08e2b4e0″,”OUT8001-20090805-110406-1249441446.8.gsm||”) in new stack
— Executing [913910682506@from-internal:4] Macro(“SIP/8001-08e2b4e0”, “dialout-trunk|1|13910682506||”) in new stack
— Executing [s@macro-dialout-trunk:1] Set(“SIP/8001-08e2b4e0”, “DIAL_TRUNK=1”) in new stack
— Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/8001-08e2b4e0”, “0?sub-pincheck|s|1”) in new stack
— Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/8001-08e2b4e0”, “0?disabletrunk|1”) in new stack
— Executing [s@macro-dialout-trunk:4] Set(“SIP/8001-08e2b4e0”, “DIAL_NUMBER=13910682506”) in new stack
— Executing [s@macro-dialout-trunk:5] Set(“SIP/8001-08e2b4e0”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
— Executing [s@macro-dialout-trunk:6] Set(“SIP/8001-08e2b4e0”, “OUTBOUND_GROUP=OUT_1”) in new stack
— Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/8001-08e2b4e0”, “1?nomax”) in new stack
— Goto (macro-dialout-trunk,s,9)
— Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/8001-08e2b4e0”, “0?skipoutcid”) in new stack
— Executing [s@macro-dialout-trunk:10] Set(“SIP/8001-08e2b4e0”, “DIAL_TRUNK_OPTIONS=”) in new stack
— Executing [s@macro-dialout-trunk:11] Macro(“SIP/8001-08e2b4e0”, “outbound-callerid|1”) in new stack
— Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/8001-08e2b4e0”, “0|SetCallerPres|”) in new stack
— Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/8001-08e2b4e0”, “0|Set|REALCALLERIDNUM=8001”) in new stack
— Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/8001-08e2b4e0”, “1?normcid”) in new stack
— Goto (macro-outbound-callerid,s,6)
— Executing [s@macro-outbound-callerid:6] Set(“SIP/8001-08e2b4e0”, “USEROUTCID=01069573797”) in new stack
— Executing [s@macro-outbound-callerid:7] Set(“SIP/8001-08e2b4e0”, “EMERGENCYCID=”) in new stack
— Executing [s@macro-outbound-callerid:8] Set(“SIP/8001-08e2b4e0”, “TRUNKOUTCID=01069573797”) in new stack
— Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/8001-08e2b4e0”, “1?trunkcid”) in new stack
— Goto (macro-outbound-callerid,s,12)
— Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/8001-08e2b4e0”, “1|Set|CALLERID(all)=01069573797”) in new stack
— Executing [s@macro-outbound-callerid:13] GotoIf(“SIP/8001-08e2b4e0”, “0?exit”) in new stack
— Executing [s@macro-outbound-callerid:14] Set(“SIP/8001-08e2b4e0”, “CALLERID(all)=01069573797”) in new stack
— Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/8001-08e2b4e0”, “0|SetCallerPres|prohib_passed_screen”) in new stack
— Executing [s@macro-dialout-trunk:12] ExecIf(“SIP/8001-08e2b4e0”, “1|AGI|fixlocalprefix”) in new stack
— Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
== Begin MixMonitor Recording SIP/8001-08e2b4e0
> fixlocalprefix: Using pattern .
== fixlocalprefix: Dialpattern . matched. 13910682506 -> 13910682506
— AGI Script fixlocalprefix completed, returning 0
— Executing [s@macro-dialout-trunk:13] Set(“SIP/8001-08e2b4e0”, “OUTNUM=13910682506”) in new stack
— Executing [s@macro-dialout-trunk:14] Set(“SIP/8001-08e2b4e0”, “custom=ZAP/g0”) in new stack
— Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/8001-08e2b4e0”, “0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)”) in new stack
— Executing [s@macro-dialout-trunk:16] Macro(“SIP/8001-08e2b4e0”, “dialout-trunk-predial-hook|”) in new stack
— Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/8001-08e2b4e0”, “”) in new stack
— Executing [s@macro-dialout-trunk:17] GotoIf(“SIP/8001-08e2b4e0”, “0?bypass|1”) in new stack
— Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/8001-08e2b4e0”, “0?customtrunk”) in new stack
— Executing [s@macro-dialout-trunk:19] Dial(“SIP/8001-08e2b4e0”, “ZAP/g0/13910682506|300|”) in new stack
== Everyone is busy/congested at this time (1:0/0/1)
— Executing [s@macro-dialout-trunk:20] Goto(“SIP/8001-08e2b4e0”, “s-CHANUNAVAIL|1”) in new stack
— Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
— Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf(“SIP/8001-08e2b4e0”, “1?noreport”) in new stack
— Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
— Executing [s-CHANUNAVAIL@macro-dialout-trunk:3]NoOp(“SIP/8001-08e2b4e0”, “TRUNK Dial failed due to CHANUNAVAIL(hangupcause: 66) – failing through to other trunks”) in new stack
— Executing [913910682506@from-internal:5] Macro(“SIP/8001-08e2b4e0”, “outisbusy|”) in new stack
— Executing [s@macro-outisbusy:1] Playback(“SIP/8001-08e2b4e0”, “all-circuits-busy-now|noanswer”) in new stack
Playing ‘all-circuits-busy-now’ (language ‘en’)
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
== Spawn extension (macro-outisbusy, s, 1) exited non-zero on ‘SIP/8001-08e2b4e0’ in macro ‘outisbusy’
== Spawn extension (macro-outisbusy, s, 1) exited non-zero on ‘SIP/8001-08e2b4e0’
== End MixMonitor Recording SIP/8001-08e2b4e0

主题测试文章,只做测试使用。发布者:zhangyang,转转请注明出处:https://www.voip88.com/%e5%ae%89%e8%a3%85%e4%ba%86tdm400p%e5%8d%a1%ef%bc%8c%e6%8b%a89%e4%b8%8d%e9%80%9a%ef%bc%8c%e4%bd%86sip%e5%8f%af%e4%bb%a5%e5%be%80%e5%a4%96%e6%8b%a8%e3%80%82/

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022年 8月 26日 下午3:23
下一篇 2022年 8月 26日 下午3:23

相关推荐

  • 美国B2C2009行业数据

    在全美B2C市场2008年1800亿美元销售额中,TOP500占了69%,TOP100占了55%,TOP20占了38%,TOP10占了28%; TOP1 AMAZON一家占了11%。 TOP500构成:41%是纯B2C;30%是传统零售企业;17%是DM/电视购物企业;11%是品牌厂商。 年销售额超过10亿美元的B2C有21家。 TOP500中72%在SNS…

    文档 2022年 8月 26日
    1600
  • 求救!!Asterisk 网卡问题

    大家好!我买个Intel ATOM 330的板子 网卡是8111C linux内核是2.6.19 把网卡识别是8169的驱动。ping不通。重新装的驱动都不行。一直ping不通!!!急啊!折腾好久了,希望高手帮忙啊!先说声感谢!

    文档 2022年 8月 26日
    1400
  • 求助!三方通话失败

    目前使用的环境是elastix2.0+BT200话机,电话呼出呼入,转接,代接都正常,按照话机手册进行三方通话时遇到问题: A与B正常通话中,按下conference键拨C号码(无论什么号码),一直提示忙音all-circuits-busy-now&pls-try-call-later,而A直拨C则可以正常通话 拨C号码时日志为: — …

    文档 2022年 8月 26日
    3900
  • Elastix_cn 中文整合版 1.3.2【20090319】

    Elastix_cn 中文整合版安装ISO【20090319】[table][tr][td]========================================Elastix_cn 中文整合版安装ISO(最新版本)======================================== ———程序说明&…

    文档 2022年 8月 26日
    1100
  • 求助,关于trixbox会议室问题

    有这么一个问题,我现在有8条外线电话,号分别从3356110,3356111。。。一直到3356117,我用的A800P语音卡+8FXO模块,这8条外线专门用于电话会议使用。现在创建一个1000的会议室,大家用外线电话拨入,如果3356110被使用,则自动转到3356111,依次类推,直到8个人都登入会议室。请问这个用trixbox能实现吗,应该怎么实现? …

    文档 2022年 8月 26日
    1000

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信
自6.2开始主题新增页头通知功能,购买用户可免费升级到最新版体验