Hi folks,
I’m trying to build an alaw to T.38 fax gateway using Asterisk, so I have built newest version from source with res_fax module included.
According to wiki (wiki.asterisk.org/wiki/display/ … ax+Gateway), I should put following code in dialplan (modified according to my needs, of course):
exten => 1,1,NoOp()
exten => 1,n,Set(FAXOPT(gateway)=yes)
exten => 1,n,Dial(SIP/mypeer,20)
exten => 1,n,Verbose(Failed to dial ‘SIP/mypeer’: ${DIALSTATUS})
exten => 1,n,Set(FAXOPT(gateway)=no)
exten => 1,n,ReceiveFax(myreceivedfile.tiff,d)
But…
If I use res_fax, I get following error when receiving alaw fax:
[Dec 9 21:33:44] ERROR[1098][C-00000001]: res_fax.c:1063 fax_session_new: Could not locate a FAX technology module with capabilities (V21)
[Dec 9 21:33:44] ERROR[1098][C-00000001]: res_fax.c:3989 acf_faxopt_write: Error attaching T.38 gateway to channel SIP/192.168.226.141-00000001.
…
[Dec 9 21:33:54] ERROR[1098][C-00000001]: res_fax.c:946 fax_session_reserve: Could not locate a FAX technology module with capabilities (RECEIVE)
[Dec 9 21:33:54] ERROR[1098][C-00000001]: res_fax.c:1876 receivefax_exec: Unable to reserve FAX session.
And if I use app_fax, I get following error :
[Dec 9 21:38:46] ERROR[5356][C-00000000]: pbx.c:3912 ast_func_write: Function FAXOPT not registered
Last error is quite expected, since FAXOPT is part of res_fax.
If I use app_fax, I can receive fax w/o problem, but no T.38 gateway for me.
Please, let me know if there’s any way I could make it work.
Thanks,
Denis