!
fax receive called-subscriber $d$
fax interface-type fax-mail
mta send server mail.example.com port 25
mta send subject Incoming Fax Received
mta send postmaster postmaster@example.com
mta send mail-from hostname example.com
mta send mail-from username $s$
!
call application voice onramp flash:app_faxmail_onramp.2.0.1.3.tcl
!
dial-peer voice 103 pots
 application onramp
 incoming called-number 5125551212
 direct-inward-dial
!
dial-peer voice 104 mmoip
 application fax_on_vfc_onramp_app out-bound
 max-conn 10
 destination-pattern 5125551212
 information-type fax
 session target mailto:$d$@example.com
!