This is a very basic sample configuration of creating Fax-2-Email on your UC-500, a couple of things you should know.
1. You must have the TCL script to support this, if you do not then you will need to download them from Cisco's software download repository.
2. It's best to have the latest stable release of the IOS this will make sure that it has the feature sets to support Fax-2-Email.
3. This is if you are not using any other application to program up the Fax-2-Email, keep in mind that other applications might see this as an OOB configuration, and MAY want to delete it.
4. It is a very basic guide, it may come up with errors depending on your current system configuration, IOS version, or even its code structure (What works for one system may not be the same for others i have discovered).
##############Fax-2-Email Configuration procedure#################
voice service voip
no supplementary-service sip refer
no supplementary-service sip moved-temporarily
### Remove these lines if they are there by using the no command###
###Enabling the Fax Code, be Aware the UC-500 will need a reboot###
fax interface-type fax-mail
!!!!!!!!!You must reload the router!!!!!!!!!!!!!
fax receive called-subscriber
mta send subject Faxmail message
mta send postmaster mailer@xyz.yourdomain.com
mta send mail-from hostname yourdomain.com
mta send mail-from username $s$
mta send server port
###This section is pretty straight forward, use a station ID number that wont###
###Conflict with any other assigned numbers, so far tests have shown you can###
###Use up too 6 characters for this, no problems have been encoutered doing so###
########Setting up your Dial-Peer section############
dial-peer voice 2500 mmoip
description FAX to EMAIL
service fax_on_vfc_onramp_app out-bound
destination-pattern 123AAAA123
information-type fax
session target mailto:faxmail@yourdomain.com
###This can be pretty much kept the way it is, you dont really###
###Need to change much other then the obvious mailto: ###
###Make sure 2500 does not conflict with another DP Entry###
###Check this by typing "sh run | s dial-peer voice 2500 mmoip"###
###If nothing shows up then you can use this number otherwise###
###Pick create a new one that wont conflict with any other one###
###PRI Inbound DID management for ###
voice translation-rule 19
rule 1 /^12345678900$/ /123AAAA123/
###Replace 12345678900 with your fax line number###
###Matching translation profile###
voice translation-profile DID_Called_XX
translate called XX
translate calling 1111
###Where XX is shown, put in there the respective number, this could be###
###Your existing translation profile for your Fax line, it can be used###
### Just modify the translate calling to suit what ever is allready###
###Coded into your system, if this is not correct it may not work###
###PRI DID Inbound###
dial-peer voice 2501 pots
description DID PRI-12345678900-XX
service onramp
translation-profile incoming XXXXXXXXXXFax_Called_19
incoming called-number 12345678900
direct-inward-dial
port 0/2/0:15
###Again "X" is used to replace what should be there, or might be there###
###This is all dependent on how you programmed it to begin with###
###Where 12345678900 is used, please put in there your FAX DID###
###Note if you are using a service number such as 1800.. for your###
###Fax Line, make sure you use the DID number this Special number is###
###Pointing to at the carrier end##########################################