... in extensions_custom.conf I added the following
[from-fax]
exten => _x.,1,Dial(SIP/GXW/${EXTEN})
exten => _x.,n,Hangup()
where SIP/GXW being my SIP trunk to work with Grandstream analog gateway.
Incoming faxes are working well becasue it is selecting the newly created modem IAX4.
However, when I am trying to send out a fax I am getting "No receiver protocol (T.30 T1 timeout)" error
For example this is the output I got when I trid to send out a fax.
-- Accepting UNAUTHENTICATED call from 127.0.0.1:
> requested format = ulaw,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (ulaw),
> priority = mine
-- Executing [5555555@from-fax:1] Dial("IAX2/iax-fax0-3326", "SIP/GXW/5555555") in new stack
-- Called GXW/5555555
-- SIP/GXW-0a0daec0 is ringing
-- SIP/GXW-0a0daec0 answered IAX2/iax-fax0-3326
== Spawn extension (from-fax, 5555555, 1) exited non-zero on 'IAX2/iax-fax0-3326'
-- Hungup 'IAX2/iax-fax0-3326'
...