免费注册 查看新帖 |

Chinaunix

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

T38Modem Help(已解决) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-16 20:52 |只看该作者 |倒序浏览
最近在测试使用Hylafax+T38Modem+Opal通过SIP发送传真,但现在卡在一个问题过不去,不知有没有哪位朋友已经完成了的,请教下.感谢呀

当前情况:

1.  T38Modem 可正常启动.

Canon:/# faxstat
HylaFAX scheduler on localhost.localdomain: Running
Modem ttyT38-1 (): Running and idle
Canon:/#


2.  可以正常拨号到指定的SIP Server上面.

3.  问题出现了,当拨号到传真机上面后,一开始双方沟通正常,但传真机给出了传真信号后T38Modem能接收到传真机发回的传真音,但就是  不会开始发送传真.


可能的原因:

1. 当前T38Modem不是使用传真协议与对方沟通,而是使用语音协议.

2. 没有可使用的Code

3. T38Modem 启动命令有错
   启动命令:   t38modem -ttttttt -p +/dev/ttyT38-1 T.38-UDP --route "modem:.*=sip:<dn>@192.168.0.174:5060"



附件是从开始拨号到挂机的LOG

[ 本帖最后由 itnow 于 2009-10-14 08:44 编辑 ]

T38 fax log.rar

14.33 KB, 下载次数: 77

论坛徽章:
0
2 [报告]
发表于 2008-09-18 17:19 |只看该作者
没人回答//..................

论坛徽章:
0
3 [报告]
发表于 2008-09-19 09:41 |只看该作者
试下加个参数 t38modem --sip-old-asn
t38modem --no-h323 -u T38modem --sip-listen udp\$192.168.16.156:6060 --ptty +/dev/ttyT38-1,+/dev/ttyT38-2,+/dev/ttyT38-3 --route "modem:.*=sip:<dn>@192.168.16.156:50600" --route "sip:.*=modem:<dn>"  --sip-old-asn

好象你的参数少很多啊

[ 本帖最后由 newgzhdj 于 2008-9-19 09:45 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2008-09-22 21:59 |只看该作者
都有用过,--old-asn是Cisco GW用的,下面这些参数都有试过

T38MODEM(1)                         User Commands                           T38MODEM(1)

NAME
       T38Modem - manual page for T38Modem Version 0.8.0

DESCRIPTION
       T38Modem Version 0.8.0

              by OpenH323 Project on Unix Linux (2.6.13-x86_64)

       Usage : T38Modem [options] Options:

       -p --ptty [num@]tty[,...] : Pseudo ttys (mandatory).
              Can  be  used  multiple times.  If tty prefixed by num@ then tty
              will accept incoming calls only for  numbers  with  prefix  num.
              Use none@tty to disable incoming calls.  See Drivers section for
              supported tty's formats.

       --route prefix@host[,...] : Route numbers with prefix num to host.
              Can be used multiple times.  Discards prefix num        from  numbers.
              Use 'all' to route all numbers.  Mandatory if not using GK.

       --redundancy I[L[H]]
              :  Set  redundancy  for  error  recovery for (I)ndication, (L)ow
              speed and (H)igh speed IFP packets.  'I', 'L' and 'H'  are  dig-
              its.

       --old-asn
              :  Use original ASN.1 sequence in T.38 (06/9 Annex A (w/o COR-
              RIGENDUM No. 1 fix).

       -i --interface ip
              : Bind to a specific interface.

       --no-listenport
              : Disable listen for incoming calls.

       --listenport port
              : Listen on a specific port.

       --connectport port
              : Connect to a specific port.

       -g --gatekeeper host
              : Specify gatekeeper host.

       -n --no-gatekeeper
              : Disable gatekeeper discovery.

       --require-gatekeeper
              : Exit if gatekeeper discovery fails.

       -F --fastenable
              : Enable fast start.

       -T --h245tunneldisable
              : Disable H245 tunnelling.

       -G --g7231enable
              : Enable G.723.1 codec, rather than G.711.

       -D --disable codec
              : Disable the specified codec.  Can be used multiple times.

       -P --prefer codec
              : Prefer the specified codec.  Can be used multiple times.

       -u --username str
              : Set the local endpoint name to str.

       -t --trace
              : Enable trace, use multiple times for more detail.

       -o --output
              : File for trace output, default is stderr.

       --save : Save arguments in configuration file and exit.

       -v --version
              : Display version.

       -h --help
              : Display this help message.


现在问题原因可能是t38modem一直处于voice模式,双方沟通正常,从拨号,接通,挂断.而普通传真机给了信号后t38modem还是处于voice状态.也就是说传真机已经给了fax信号,可以开始接收fax的了,但t38modem就是没理会,一直到普通传真机timeout.所以从头到尾t38modem都是处于voice状态.没有要fax的意思.找不出是哪里设置错了.

论坛徽章:
0
5 [报告]
发表于 2008-09-27 15:04 |只看该作者
T38Modem Version 0.8.0 是不支持sip的
  --sip-old-asn 是支持旧的同步协议,不一定是Cisco GW
我公司的sip GW就用的旧的方式,
我用的是Hylafax+T38Modem+Opal+asterisk ,虽然调试了很久,现在总算是一切ok

Opal 的lookup DSN SVR 特别慢,明明是个ip地址,还要去找DSN解析,不知道为什么,
以致于在asterisk 里面用dial时候,15秒钟都超时了,根本不通
我把这些lookup DSN SVR 代码都屏蔽掉了,就可以了
你可以看看t38modem的log,看能不能看出什么问题,用-o输出到文件中,屏幕上可能太快了,来不及看

论坛徽章:
0
6 [报告]
发表于 2008-10-07 20:18 |只看该作者

回复 #5 newgzhdj 的帖子

T38Modem我用的是1.0.0的, 可以发个你fax成功的log给我吗?

论坛徽章:
0
7 [报告]
发表于 2009-10-14 08:46 |只看该作者
经战数月,终得告破,可喜可贺
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP