02-22-2008 04:12 AM - edited 03-15-2019 09:00 AM
Hello,
I've got 2811 (IOS 12.4) with 8 port FXO module as branch VoIP gateway.
FXO ports are connected to PSTN.
I'm trying to implement Fax to Email (fax on-ramp) option.
My config is shown below
voice translation-rule 1
rule 1 /^$/ /3323238/
!
voice translation-profile DNIS-Replace
translate called 1
fax receive called-subscriber SUBSCRIBER
fax interface-type fax-mail
mta send server server.domain port 25
mta send subject Incoming fax
mta send filename Fax-mail date
mta send postmaster user@domain
mta send mail-from hostname XXX
mta send mail-from username XXX
mta send return-receipt-to hostname XXX
mta send return-receipt-to username XXX.YYY
!
application
service faxmail_onramp flash:app_faxmail_onramp.2.0.1.3.tcl
!
!
voice-port 1/0/8
translation-profile incoming DNIS-Replace
cptone RU
caller-id enable
dial-peer voice 3323238 pots
service faxmail_onramp
incoming called-number 3323238
direct-inward-dial
port 1/0/16
dial-peer voice 140 mmoip
service faxmail_onramp out-bound
destination-pattern 3323238
information-type fax
session target mailto:BRANCH@domain
incoming called-number 3323238
mdn
dsn delayed
dsn success
dsn failure
The issue. When I'm calling to number 3323238 FXO port goes to off-hook state.
I hear 2 beeps and then - silence than call terminates on timeout.
debug fax foip all, sh call history fax - shows nothing
from the output of "deb voip ccapi inout"
I can see that
CCAPI handed cid 1406 with tag 3323238 to app "_ManagedAppProcess_faxmail_onramp"
What's going wrong?
02-22-2008 06:09 AM
Try adding 'connection plar 3323238' under the voice-port 1/0/8' to enable single stage dialing and for the call to match on the POTS dial peer that runs the onramp application and then be sent to the mmoip dial peer.
02-22-2008 08:35 AM
Hello Paul,
Thank you for reply.
I've tried to create configuration with connection plar in the voice port and pots dial peer that matches number from plar.
This configuration didn't work.
02-22-2008 09:52 AM
voice-port 1/0/8
cptone RU
timeouts call-disconnect 1
timeouts wait-release 2
connection plar 7777
caller-id enable
dial-peer voice 7777 pots
service faxmail_onramp
destination-pattern 7777
port 1/0/16
forward-digits all
dial-peer voice 140 mmoip
service faxmail_onramp out-bound
destination-pattern 7777
information-type fax
session target mailto:USER@domain
incoming called-number 7777
mdn
dsn delayed
dsn success
dsn failure
====================
deb voice application callsetup output
[...wide debug output omitted...]
Feb 22 19:56:08: //10//Dest:/AFW_M_Destination_Initiate:
Feb 22 19:56:08: //10//Dest:/AFW_M_Destination_Initiate: Outgoing guid : 479B6A32.E0A611DC.801D97D2.54CD2456
Feb 22 19:56:08: Incoming_guid : 00000000.00000000.00000000.00000000
Feb 22 19:56:08: //10//Dest:/DestSetupInitiate:
Feb 22 19:56:08: //10//Dest:/DestMatchDialPeer:
Feb 22 19:56:08: //10//Dest:/DestQueuePeers: Matched peers:
Feb 22 19:56:08: //-1//Dest:/DestQueuePeers: 140
Feb 22 19:56:08: //-1//Dest:/DestQueuePeers: , Total(1)
Feb 22 19:56:08: //10//Dest:/DestDialPeerRotary:
Feb 22 19:56:08: //10//Dest:/DestOutboundCallUsingPeer: dest(7777), numexpDest(7777), numDestDigits(1)
Feb 22 19:56:08: //10//Dest:/DestOutboundCallUsingPeer: prefix(), peer tag(140)
Feb 22 19:56:08: //10//Dest:/DestHandoffOutboundApp:
Feb 22 19:56:08: //10//Dest:/DestHandoffLeg: target app [faxmail_onramp], instance []
Feb 22 19:56:08: //10/479B6A32801D/CCAPI/ccCallApp:
====================
and nothing... Just silence, no fax signals.
May be something goes wrong wit tcl script?
02-22-2008 12:03 PM
I did it!
Here is working config
application
service fax_on-ramp flash:app_faxmail_onramp.2.0.1.3.tcl
!
service fax_detect flash:app_fax_detect.2.1.2.2.tcl
voice-port 1/0/16
no vad
cptone RU
timeouts call-disconnect 1
timeouts wait-release 2
connection plar 3323238
caller-id enable
dial-peer voice 100 pots
service fax_on-ramp
information-type fax
incoming called-number 3323238
direct-inward-dial
port 1/0/16
forward-digits all
dial-peer voice 200 mmoip
service fax_on_vfc_onramp_app
service fax_on_vfc_onramp_app out-bound
max-conn 1
destination-pattern 3323238
information-type fax
session target mailto:USER@DOMAIN
incoming called-number 3323238
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: