Sending fax using res_fax_digium and ARI module

As far as I can tell, I have followed the instructions properly for installing res_fax_digium and the send fax ARI module that someone wrote, including the mods in comments. (LINK)

I can receive faxes no problem, but I am unable to send them. This is what happens when I try:
[2014-07-31 11:37:04] WARNING[5941][C-00000118]: res_fax.c:4105 acf_faxopt_write: channel ‘Local/[email protected];1’ set FAXOPT(filename) to ‘/tmp/1991611483.tif’ is unhandled!
– Executing [[email protected]:2] Set(“Local/[email protected];1”, “FAXOPT(ecm)=yes”) in new stack
– Executing [[email protected]:3] Set(“Local/[email protected];1”, “FAXOPT(headerinfo)=from User([email protected])”) in new stack
– Executing [[email protected]:4] Set(“Local/[email protected];1”, “FAXOPT(localstationid)=8885552600”) in new stack
– Executing [[email protected]:5] Set(“Local/[email protected];1”, “FAXOPT(maxrate)=14400”) in new stack
– Executing [[email protected]:6] Set(“Local/[email protected];1”, “FAXOPT(minrate)=9600”) in new stack
– Executing [[email protected]:7] SendFAX(“Local/[email protected];1”, “/tmp/1991611483.tif,d”) in new stack
– Channel ‘Local/[email protected];1’ sending FAX:
– /tmp/1991611483.tif
– Channel ‘Local/[email protected];1’ FAX session ‘2’ started
– FAX handle 0: [ 000.000558 ], STAT_EVT_STRT_TX st: IDLE rt: IDLENSTX
– FAX handle 0: [ 000.000790 ], STAT_EVT_TX_HW_RDY st: WT_TX_HW_RDY rt: TRDYNHTY
– FAX handle 0: [ 000.000974 ], P30EVN_SEND_STARTED
– Executing [[email protected]:1] Macro(“Local/[email protected];2”, “hangupcall,”) in new stack
– Executing [[email protected]:1] GotoIf(“Local/[email protected];2”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]:3] ExecIf(“Local/[email protected];2”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]:4] Hangup(“Local/[email protected];2”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘Local/[email protected];2’ in macro ‘hangupcall’
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on ‘Local/[email protected];2’
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on ‘Local/[email protected];2’ in macro ‘dialout-trunk’
== Spawn extension (outbound-allroutes, 8005551234, 5) exited non-zero on ‘Local/[email protected];2’
* Channel ‘Local/[email protected];1’ fax session ‘2’, [ 000.586900 ], stack sent 28 frames (560 ms) of energy.
* Channel ‘Local/[email protected];1’ fax session ‘2’, [ 001.972704 ], channel sent 97 frames (1940 ms) of silence.
* Channel ‘Local/[email protected];1’ fax session ‘2’, [ 003.566990 ], stack sent 149 frames (2980 ms) of silence.
* Channel ‘Local/[email protected];1’ fax session ‘2’, [ 004.087018 ], stack sent 26 frames (520 ms) of energy.
* Channel ‘Local/[email protected];1’ fax session ‘2’, [ 005.752916 ], channel sent 189 frames (3780 ms) of energy.
* Channel ‘Local/[email protected];1’ fax session ‘2’, [ 005.813010 ], channel sent 3 frames (60 ms) of silence.
[2014-07-31 11:37:10] WARNING[14545][C-00000118]: chan_sip.c:10353 process_sdp: Failed to initialize UDPTL, declining image stream
[2014-07-31 11:37:10] WARNING[14545][C-00000118]: chan_sip.c:10518 process_sdp: Failing due to no acceptable offer found
– FAX handle 0: [ 006.117235 ], STAT_EVT_TMR_INT_EXP st: WT_DIS rt: XXXXNTIX
– FAX handle 0: [ 006.172687 ], STAT_EVT_FSC_ERR st: WT_HW_CLS rt: UNEXPECT
– FAX handle 0: [ 008.616396 ], STAT_EVT_HW_CLOSE st: WT_HW_CLS rt: WCLSNCLS
– FAX handle 0: [ 008.616461 ], STAT_SES_COMPLETE
– FAX handle 0: [ 008.616492 ], P30EVN_COMPLETE
[2014-07-31 11:37:20] ERROR[5941][C-00000118]: res_fax.c:1539 generic_fax_exec: channel ‘SIP/SIPBOUND-00000152’ FAX session ‘2’ failure, reason: ‘fax session timed-out’ (TIMEOUT)
== Spawn extension (outboundfax, s, 7) exited non-zero on ‘SIP/SIPBOUND-00000152’
– Executing [[email protected]:1] NoOp(“SIP/SIPBOUND-00000152”, “FAXOPT(ecm) : yes”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/SIPBOUND-00000152”, “FaxStatus : FAILED”) in new stack
– Executing [[email protected]:3] NoOp(“SIP/SIPBOUND-00000152”, “FaxStatusString : remote channel hungup”) in new stack
– Executing [[email protected]:4] NoOp(“SIP/SIPBOUND-00000152”, “FaxError : HANGUP”) in new stack
– Executing [[email protected]:5] NoOp(“SIP/SIPBOUND-00000152”, "RemoteStationID : ") in new stack
– Executing [[email protected]:6] NoOp(“SIP/SIPBOUND-00000152”, “FaxPages : 0”) in new stack
– Executing [[email protected]:7] NoOp(“SIP/SIPBOUND-00000152”, "FaxBitRate : ") in new stack
– Executing [[email protected]:8] NoOp(“SIP/SIPBOUND-00000152”, "FaxResolution : ") in new stack
[2014-07-31 11:37:20] NOTICE[5941]: pbx_spool.c:402 attempt_thread: Call completed to Local/[email protected]

Does anybody know what I need to look at or change to resolve this?

That module is not built or maintained by us and I have never seen it before. You will need to talk with whoever builds and maintains that 3rd party module.

It looks like “udptl.conf” contains no instructions. I’m considering the FaxPRO module too, but not sure if the company is ready to spend $150 on it.

Last year we lowered the price from the prior $250 license cost, and the year before that you had to pay additional for each concurrent fax license. The Fax Pro license at its current price is a great value at $150.

It works nicely in the new FreePBX 12 User Control Panel as well, I sent a fax this weekend from my android phone.

You don’t have to convince me; I’m well aware of the time and money that this would save us long-term. However, our company’s upper management sees things like this as an unnecessary spend. The way I see it is this:

Fax Machine: $100-200 PER OFFICE (we have 3 offices)
Fax Service: $10-30/month PER OFFICE
Toner: $100 per 1600 pages
+Fax Machine needs replacing every ~5 years
+1 DID : 1 fax machine ratio
+Must print document before sending fax
+Must be in the office to send fax

FreePBX Fax Pro: $150 for ALL offices
DID: $1/month
+License is good for 25 years
+Essentially unlimited number of DIDs can be assigned fax
+Can send PDF
+Can send fax from anywhere at any time

Math is called “the universal language”, but like all languages, it is subjectively interpreted by the person it is being communicated to. When I was younger and worked in computer retail, I was once told this by a man (whose wife was with him): “Don’t tell me how much I’m saving - I want to know how much I’m spending. When she comes home from the mall with bags of clothes, when she tells me she got half off and saved $800, that means she still SPENT $800”.

That’s how my bosses see this; as SPENDING $150. Doesn’t matter if it saves the company $120 in one year (they’re considering going to an e-fax service that’s $10/mo), which means a net of +$90 after two years for us; it’s still pulling teeth to get the $150. We’re paying enough monthly now to justify the spend in my head…If anybody knows how to put it into CEO speak, let me know…

1 Like

Not knowing the specifics of your business, you’ll want to just speak to the ROI… break it into smaller pieces for them $150 total, $50 per office… 4 dollars per month per office, they probably spend more than that on toilet paper and coffee stirrers. Employees can both send and receive faxes from anywhere. Not sure what business you are in, but this typically equates to more timely information for your staff, which can impact various parts of your business… accounting has a shorter period of time it takes to process invoices, which improves cash flow… sales push contracts faster… and that little side effect of being more connected to your work, your employees will put in more hours than you are paying them for… yes if an important fax comes in on the weekend that needs a signature, or a contract or form needs an autograph, you can use an app like camscanner, to upload a PDF and send it on it’s way. Typically just one use in any of these scenarios will cover the cost of the application.