"unknown error" Sending fax ONLY to some fax machines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 01:25 AM - edited 03-15-2019 11:54 AM
Hi all,
we've got a very annoying issue. We have delevoped an application that belongs to Cisco router esmtp server to send fax thrtough isdn/fxo interfaces.
With most faxes machines all works great, but with some fax machines happens this:
- 2821 router establish the link with remote fax machine
- handshake begin and terminate correctly.
- begin the trasmission of the page.
- remote fax machine terminate the connection and router send me an "unknown error".
If i use a fax machine instead of router with the same tel number, all works. So the problem is 2821 router with that (is not only one) fax machine.
I've tried many things but i cannot identify the problem.
this is a very basic configuration that i use where this issues exists:
interface BRI0/0/0
no ip address
isdn switch-type basic-net3
isdn overlap-receiving
isdn point-to-point-setup
isdn incoming-voice voice
isdn send-alerting
isdn sending-complete
isdn static-tei 0
!
interface BRI0/0/1
no ip address
isdn switch-type basic-net3
isdn point-to-point-setup
isdn incoming-voice voice
isdn send-alerting
isdn sending-complete
!
ip forward-protocol nd
!
ip http server
ip http access-class 23
ip http authentication local
ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
!
!
!
!
control-plane
!
!
!
voice-port 0/0/0
input gain -2
echo-cancel coverage 32
echo-cancel mode 1
non-linear comfort-noise attenuation 9db
compand-type a-law
cptone IT
description ISDN BRI
threshold noise -90
!
voice-port 0/0/1
no vad
compand-type a-law
cptone IT
timeouts call-disconnect 3
description ISDN BRI
bearer-cap Speech
!
voice-port 0/1/0
no vad
compand-type a-law
cptone IT
timeouts call-disconnect 3
connection plar 0422920169
impedance complex2
description ANALOGICA PRINCIPALE
bearer-cap Speech
!
voice-port 0/1/1
!
!
!
!
!
dial-peer voice 1 pots
description OUTGOING PSTN
destination-pattern .T
port 0/0/0
forward-digits all
!
dial-peer voice 2 mmoip
description FAX OFFRAMP
service offramp-app
information-type fax
incoming called-number .T
!
dial-peer voice 10 pots
description RICEZIONE FAX SU ISDN
service onramp-app
incoming called-number xxxx
fax rate disable
direct-inward-dial
port 0/0/0
forward-digits all
!
dial-peer voice 30 mmoip
description MMOIP ISDN
service fax_on_vfc_onramp_app out-bound
destination-pattern xxxx
information-type fax
session target mailto:xxxxxxx
!
This the error:
554 5.3.0 An unknown error occurred
- Labels:
-
Other IP Telephony

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 02:55 AM
Hi, configure:
network-clock-participate wic 0
network-clock-select 1 bri 0/0/0
Please rate if it helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 03:20 AM
thank you for your answer.
I have posted only a partial part of the configuration file, and these commands is already entered on router. But the problem persists.
Thank you anyway!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 03:41 AM
Can you try to take "show network-clocks" when the fax is handshaking ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 03:47 AM
this is the output:
test_sendfax#sh network-clocks
Network Clock Configuration
---------------------------
Priority Clock Source Clock State Clock Type
1 BRI0/0/0 GOOD BRI
10 Backplane GOOD PLL
For me Handshacking goes right. This is what i see on display of the remote fax machine:
- receving call
- receiving page 1
- trasmission error
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 03:57 AM
using command debug fax relay t300 all-level-1 i see:
*Jul 11 11:58:58.435: %MARS_NETCLK-3-CLK_TRANS: Network clock source transitioned from priority 10 to priority 1
timestamp=5545109 fr-msg-det CSI
timestamp=5545799 fr-msg-det DIS
timestamp=5546529 fr-msg-tx DCS
timestamp=5555229 fr-msg-tx DCS
timestamp=5561009 fr-msg-det CFR
*Jul 11 11:59:18.607: 0/0/0 (22) 5564789 fr-pkt-loss 36
timestamp=5572239 fr-msg-tx EOP
what is thath pkt-loss?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 03:59 AM
I did not see that you're using an esmtp application.
Not sure about fax relay error, in reality this should be store-and-forward, not realy.
A more comphresive look at the configuation should be needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 04:04 AM
this is the remaining parts of conf file:
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname test_sendfax
!
boot-start-marker
boot system flash:c2800nm-ipvoicek9-mz.124-18.bin
boot-end-marker
!
logging buffered 51200 warnings
!
no aaa new-model
network-clock-participate wic 0
network-clock-select 1 BRI0/0/0
!
!
ip cef
!
!
ip domain name sendfax.xxxx.com
isdn switch-type basic-net3
!
voice-card 0
codec complexity medium
no dspfarm
!
!
voice call send-alert
voice call disc-pi-off
voice call convert-discpi-to-prog
voice call carrier capacity active
voice rtp send-recv
!
voice service pots
!
voice service voip
fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback cisco
h323
h245 caps mode restricted
modem passthrough nse codec g711ulaw
!
!
voice class codec 1
codec preference 1 g729r8
!
!
!
voice class h323 1
h225 timeout tcp establish 1
h225 timeout setup 1
call start fast
!
!
!
!
!
!
!
fax receive called-subscriber $d$
fax interface-type fax-mail
mta send server 172.16.10.215 port 25
mta send subject "Fax from personal fax"
mta send with-subject both
mta send postmaster postmaster@sendfax.xxxx.com
mta receive aliases sendfax.xxxx.com
mta receive maximum-recipients 5
mta receive generate mdn
!
application
service onramp-app flash://app_faxmail_onramp.2.0.1.3.tcl
!
service faxdetect flash:fax_detect_2.1.2.0.tcl
!
service offramp-app flash://app_faxmail_offramp.2.0.1.1.tcl
!
!
thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 04:07 AM
You need to do fax relay, store-and forward, or both ? Specific debug for the intended use should be enabled then.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 04:17 AM
store-and-forward .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 04:25 AM
Disable relay the:
voice service voip
fax protocol none
fax-relay sg3-to-g3
To troubleshoot i would check "debug voice application script" to see if the scripts are invoked, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 04:39 AM
*Jul 11 12:39:42.531: //33//TCL :/tcl_InfotagObjCmd: infotag get cfg_avpair_exists accounting-list
*Jul 11 12:39:42.531: //33//TCL :/tcl_InfotagGetObjCmd: infotag get cfg_avpair_exists accounting-list
*Jul 11 12:39:42.531: //33//AFW_:/vtr_cf_avpair_exists: argc 3 argindex 2
*Jul 11 12:39:42.531: //33//TCL :/tcl_InfotagObjCmd: infotag get cfg_avpair accounting-list
*Jul 11 12:39:42.531: //33//TCL :/tcl_InfotagGetObjCmd: infotag get cfg_avpair accounting-list
*Jul 11 12:39:42.531: //33//AFW_:/vtr_cf_avpair: argc 3 argindex 2
*Jul 11 12:39:42.531: //33//PACK:/tcl_ParamReadObjCmd: accounting-list
*Jul 11 12:39:42.531: //33//TCL :/tcl_PutsObjCmd: Accounting method is fax
*Jul 11 12:39:42.531:
*Jul 11 12:39:42.531: //33//TCL :/tcl_InfotagObjCmd: infotag get cfg_gateway_id
*Jul 11 12:39:42.531: //33//TCL :/tcl_InfotagGetObjCmd: infotag get cfg_gateway_id
*Jul 11 12:39:42.531: //33//AFW_:/vtr_cf_gateway_id: argc 2
*Jul 11 12:39:42.531: //33//TCL :/tcl_InfotagObjCmd: infotag get leg_incoming
*Jul 11 12:39:42.531: //33//TCL :/tcl_InfotagGetObjCmd: infotag get leg_incoming
*Jul 11 12:39:42.531: //33//AFW_:/vtr_lg_incoming: argc 2
*Jul 11 12:39:42.531: //33//TCL :/tcl_HandoffObjCmd: handoff appl 33 lib_off_app au-ctrl=0, acc-ctrl=0, au-method=4, accounting-list=fax, au-status=1, account=test_sendfax.sendfax.xxxx.com
*Jul 11 12:39:42.531: //33//TCL :/tcl_handoff_common: appl 33 lib_off_app au-ctrl=0, acc-ctrl=0, au-method=4, accounting-list=fax, au-status=1, account=test_sendfax.sendfax.xxxx.com
*Jul 11 12:39:42.531: //33//Tcl :/tcl_parseCallID_vartagObj: VARTAG Translation Leg Count=1
*Jul 11 12:39:42.531: //33//TCL :/tcl_handoff_common: Handing off Legs [33 ] to lib_off_app with args=au-ctrl=0, acc-ctrl=0, au-method=4, accounting-list=fax, au-status=1, account=test_sendfax.sendfax.xxxx.com

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 04:54 AM
Hi,
I think you've to go over the troubleshooting guide:
http://www.cisco.com/en/US/tech/tk652/tk777/technologies_tech_note09186a00801fe5d9.shtml
For offramp is the following:
http://www.cisco.com/en/US/tech/tk652/tk777/technologies_tech_note09186a00801fe5dc.shtml
To find out what's happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 05:44 AM
i have already read these documents, but nothing useful.
I have tests with other ios version:
- with 12.4.15.T and 12.4.15.T1 with 200 sent faxes 20% of them are not sent (same numbers every time)
- with 12.4.15.T4 number that with 12.4.15.T works with T4 does not work.
I think there is a relationship between IOS and TCL scripts. But i cannot see any error or differences debugging with different IOS on same numbers.
Any ideas?
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2008 05:49 AM
For sure there can be problems using different IOS. You can also try 12.4(3j) that is one of the most stable.
For the numbers that don't work you could compare debug to one that works. Sometime lowering speed and disabling EC is necessary to make fax work.
