T38Modem Help(已解決)
最近在測試使用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 編輯 ]
《解決方案》
沒人回答//..................
《解決方案》
試下加個參數 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 編輯 ]
《解決方案》
都有用過,--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:
-p --ptty 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]
: 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/98) 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的意思.找不出是哪裡設置錯了.:( :( :(
《解決方案》
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輸出到文件中,屏幕上可能太快了,來不及看
《解決方案》
回復 #5 newgzhdj 的帖子
T38Modem我用的是1.0.0的, 可以發個你fax成功的log給我嗎?
《解決方案》
經戰數月,終得告破,可喜可賀:lol: