Media
Fax on Asterisk with spandsp
Fax still runs on some operator and enterprise routes. Asterisk has a fax framework, but no engine until one is built into it. We build spandsp into the platform, so fax is available on the same server as everything else.
The problem
A call-processing platform without a fax engine cannot answer a fax call, so the choice is a separate fax gateway to buy, run and monitor, or lost traffic. Mixing a fax gateway into an otherwise software-only chain also adds a failure point.
What we change
- The spandsp library (0.0.6pre21) is built with the platform and installed on the build host.
- The resulting
res_fax_spandspmodule is enabled in the build, giving Asterisk's generic fax framework (res_fax) its engine. - Calls are then handled with the standard
ReceiveFAXandSendFAXdialplan applications.
; extensions.conf
exten => fax,1,Answer()
same => n,ReceiveFAX(/var/spool/fax/${UNIQUEID}.tif)
same => n,Hangup()
Verify
*CLI> module show like fax
res_fax.so
res_fax_spandsp.so
*CLI> fax show capabilities
| Module | res_fax_spandsp |
|---|---|
| Library | spandsp 0.0.6pre21 |
| Since | Version 3.0 |
Related
Need this on your platform? Tell us the Asterisk version and the interconnect, and we reply within 24 hours.
Request a quote