cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2118
Views
0
Helpful
8
Replies

configuring offramp fax on voice gateway

Andrey128
Level 1
Level 1

Hello, All,

I've configured offramp fax on voice gateway (ISR 3825), but it does't work. When I send a mail to fax gateway, I recive an error messages "5.3.0 smtp; 554 5.3.0 An unknown error occurred> #SMTP#..."

On debug information I see that gateway try to send an offram fax to number which I need, but then goes the information:

Oct 15 11:41:07.898: //-1/D40B60558FA1/SMTPS/esmtp_server_engine_work_routine:
   context(0x672EB038), state=4
Oct 15 11:41:07.898: //-1/D40B60558FA1/SMTPS/esmtp_server_engine_dot_check:
   Not found the terminating Dot!
Oct 15 11:41:07.898: //-1/D40B60558FA1/SMTPS/esmtp_server_engine_dot_check:
   Not found the terminating Dot!

and then get an smtp e-mail error message.

Can you please give a hint what is wrong

8 Replies 8

Felipe Garrido
Cisco Employee
Cisco Employee

We'll need more information to assist. Please provide the following,

show version

show run

What type of SMTP server is in use?

What error does it come back with?

Is authentication required?

Is the SMTP server local to the voice gateway?

Is Onramp configured and does it work?

Does the fax fail with and without a TIFF attachment?

-Felipe

Hello, Felipe,

------------------------------------------------------------------------

piece  of running config for offramp:


version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname gw2.domain.com
!
boot-start-marker
boot system flash flash:c3825-spservicesk9-mz.124-4.T.bin
boot system flash:c3825-spservicesk9-mz.124-6.T3.bin
boot-end-marker
!
logging buffered 4096 debugging
!
no aaa new-model
!
resource policy
!
memory-size iomem 30
clock timezone EET 2
clock summer-time EEST recurring last Sun Mar 1:00 last Sun Oct 2:00
network-clock-participate wic 2
network-clock-select 1 E1 0/2/0

!
!
ip cef
!
!
ip domain name domain.com
ip name-server 172.168.10.26
ip name-server 172.168.10.7
isdn switch-type primary-net5
voice-card 0
no dspfarm
!
!
!
!
voice service voip
fax protocol none
sip
!
!
!
!
!
!
!
!
!
!
!
fax receive called-subscriber $d$
fax send transmitting-subscriber $s$
fax send left-header $a$
fax send center-header $d$
fax send right-header $t$
fax send coverpage enable
fax send coverpage show-detail
fax send coverpage email-controllable
fax interface-type fax-mail
mta send server smtp-server.com port 25
mta send subject "New fax"
mta send postmaster postmaster@domain.com
mta send mail-from hostname fax.domain.com
mta send mail-from hostname gw2.domain.com
mta send mail-from username $s$
mta send return-receipt-to username $s$
mta receive aliases fax.domain.com
mta receive maximum-recipients 20
mta receive generate mdn
mta receive generate permanent-error
!
application
service onramp_app flash:app_faxmail_onramp.2.0.1.3.tcl
  param authen-list fax
  param authen-method gateway
  param accounting-list fax
!
service offramp_app flash:app_faxmail_offramp.2.0.1.1.tcl
  param authen-method gateway
  param accounting-list fax
  param authen-list fax
!
service fax_detect flash:app_fax_detect.2.1.2.2.tcl
!
!
controller E1 0/2/0
framing NO-CRC4
pri-group timeslots 1-31
!
!
interface GigabitEthernet0/0
description $ETH-LAN$
ip address 172.16.10.10 255.255.255.0
  duplex auto
speed auto
media-type rj45
negotiation auto
!
!
interface Serial0/2/0:15
no ip address
encapsulation hdlc
isdn switch-type primary-net5
isdn protocol-emulate network
isdn incoming-voice voice
isdn sending-complete
no cdp enable
!
!
dial-peer voice 103 mmoip
service offramp_app
information-type fax
incoming called-number .T
image encoding MH
image resolution standard
!

----------------------------------------------------------------------------

sh ver

Cisco IOS Software, 3800 Software (C3825-SPSERVICESK9-M), Version 12.4(6)T3, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 21-Jul-06 17:43 by kellythw

ROM: System Bootstrap, Version 12.3(11r)T2, RELEASE SOFTWARE (fc1)

gw2 uptime is 21 hours, 42 minutes
System returned to ROM by reload at 18:04:13 EEST Thu Oct 14 2010
System restarted at 18:05:32 EEST Thu Oct 14 2010
System image file is "flash:c3825-spservicesk9-mz.124-6.T3.bin"


If you require further assistance please contact us by sending email to
export@cisco.com.

Cisco 3825 (revision 1.0) with 184320K/77824K bytes of memory.
Processor board ID FCZ100172SU
2 Gigabit Ethernet interfaces
26 Serial interfaces
1 terminal line
2 Channelized E1/PRI ports
8 Voice FXS interfaces
1 cisco service engine(s)
DRAM configuration is 64 bits wide with parity enabled.
479K bytes of NVRAM.
62720K bytes of ATA System CompactFlash (Read/Write)

Configuration register is 0x2102
-------------------------------------------------------------------------------

What type of SMTP server is in use?  I send an e-mail from my outlook via corporate Exchange server to FAX=...number...@gw2.domain.com

and I see that with recieving is all ok, it seems that gateway has a problem with  sending attachment

What error does it come back with? I set: debug fax mta all
debug fax foip all
debug fax fmsp send t30
debug fax fmsp receive t30

and get (each time I send offramp) a bunch information and can't read all events. How  to solve this?

Is authentication required? no

Is the SMTP server local to the voice gateway? voice gateway has a listen port 25 on his LAN interface

Is Onramp configured and does it work?  onramp service works fine

Does the fax fail with and without a TIFF attachment?  yes, I send e-mails just with .tiff attachments.

Can you try sending an email without a TIFF attachment? Does it work?

-Felipe

without .tiff I get the same:

ct 15 13:36:08.321: //-1/xxxxxxxxxxxx/SMTPC/esmtp_client_engine_getln:
   (C)R: 250 2.1.0 <>... Sender ok
Oct 15 13:36:08.321: //-1/xxxxxxxxxxxx/SMTPC/esmtp_client_engine_writeln:
   (C)S: RCPT TO:<Andrey@domain.com>
Oct 15 13:36:08.321: //-1/xxxxxxxxxxxx/SMTPC/esmtp_client_engine_write:
   return code=0
Oct 15 13:36:08.485: //-1/xxxxxxxxxxxx/SMTPC/esmtp_client_engine_getln:
   (C)R: 250 2.1.5 <Andrey@domain.com>... Recipient ok
...

and on syslog server I see ISDN-6-CONNECT: Interface Serial0/2/0:0 is now connected to .....fax_number... N/A   - so gateway try to dial to fax_number from my e-mail

but without any attachments I also get  an e-mail message with error: #5.3.0 smtp; 554 5.3.0 An unknown error occurred> #SMTP ....

from the debug snips....

T.37 offramp application did not receive a "terminating dot" from Outlook/MS
indicating the end of the ESMTP session. Term dot is the ESMTP data terminator
( a sequence of CR LF . CR LF). Without the terminating dot being received,

receiving fax machine will terminate the call, thereby leading to session termination

on the GW side.
Issue appears to be on Mail server/Outlook and not the GW.


Are u able to send a test fax using following procedure:

Step 4: Verify that the Router Receives and Delivers the Message
http://www.cisco.com/en/US/products/sw/voicesw/ps2237/products_tech_note09186a0080387d4b.shtml#t5

Are u able to send a test fax using following procedure:

Step 4: Verify that the Router Receives and Delivers the Message
http://www.cisco.com/en/US/products/sw/voicesw/ps2237/products_tech_note09186a0080387d4b.shtml#t5

did you that mean?:

220 fax.domain.com Cisco NetWorks ESMTP server
ehlo
hello [172.16.10.96] (really )
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-PIPELINING
250-HELP
250-DSN
250 XACCOUNTING
mail from:andrey@domain.com
250 2.5.0 Sender <andrey@domain.com> ok
rcpt to:fax=90545555555@gw2.domain.com
250 2.1.5 Recipient <fax=90545555555@gw2.domain.com> ok, maps to `905455555555' (cp=yes)
data
354 Enter mail, end with a single "."
test
.             - here even dot "." can't end or brake DATA field, only command quit brakes this and ends telnet session.

quit

hi, do you know how to break the DATA FIELD? the "." does not work.  do you know how to?

Hi Andrey,

More than likely the problem is the TIFF file.  Off-ramp will only work with TIFF files that are RFC-2701/2702 (Internet FAX) compliant which leaves out all of the Mocrosoft products and most of the others.  Try recieving a fax via On-ramp, thenb send it back out through Off-ramp.  Do not open the attachment or the email, simply forward it back out and see if it completes.  If it does then you will need to get an RFC compliant TIFF generator.

Frank