При компиляции Asterisk с модулем res-fax_spandsp возникает ошибка.

   [CC] res_fax_spandsp.c -> res_fax_spandsp.o
res_fax_spandsp.c:114: error: field fax_state has incomplete type
res_fax_spandsp.c:115: error: field t38_state has incomplete type
res_fax_spandsp.c: In function spandsp_fax_start:
res_fax_spandsp.c:573: error: dereferencing pointer to incomplete type
res_fax_spandsp.c:586: error: dereferencing pointer to incomplete type
res_fax_spandsp.c: In function spandsp_fax_cli_show_session:
res_fax_spandsp.c:675: error: dereferencing pointer to incomplete type
res_fax_spandsp.c:675: error: dereferencing pointer to incomplete type
make[1]: *** [res_fax_spandsp.o] Error 1
make: *** [res] Error 2

http://soft-switch.org/downloads/spandsp/spandsp-0.0.6.tar.gz

Требуется обновить SpanDSP

Error loading module ‘res_fax_psandsp.so’ : libspandsp.so.2 cannot open shared object file: No such file or directory

 ln /usr/local/lib/libspandsp.so.2.0.0  /lib/libspandsp.so.2

Connected to Asterisk 12.5.0

localhost*CLI> module load res_fax_spandsp.so
Loaded res_fax_spandsp.so
       > Registering module res_fax_spandsp
       > Unregistering module res_fax_spandsp
       > Registering module res_fax_spandsp
    -- Registered handler for 'Spandsp' (Spandsp FAX Driver)
 Loaded res_fax_spandsp.so => (Spandsp G.711 and T.38 FAX Technologies)