Joe Diamond CPA
Active Member
- Joined
- May 5, 2022
- Messages
- 310
- Reaction score
- 115
Hi everyone, after about 30 hours of research i was having issues with IPBX 2026 receiving faxes. i followed Ward's nerd vittles faxing with IPBX 2027 and added the code along with the additional code there mentioned for IPBX 2026, in addition i added the additional code that ward mentioned :::::::::::::::::::::::::::::::::::::::::::::::
Asterisk 22/23 have MAJOR plumbing changes. To receive faxes, follow the existing tutorial and then add these additions in /etc/asterisk/extensions_custom.conf for Incredible PBX 2026. No User Manager setup required. Sending a fax still works as documented in the existing tutorial.
1. Add the following code at top of file just below [from-internal-custom]:
Code:
exten => fax,1,Noop(Global internal fallback caught fax tone!)
exten => fax,2,Goto(custom-fax-iaxmodem,s,1)
2. Add the following code at the bottom of the file:
Code:
[macro-dialout-one-predial-hook]
exten => s,1,Noop(Enforcing global inheritance for fax detection)
; This line forces any fax detection on this channel to jump out to our custom handler
exten => s,n,Set(CHANNEL(faxdetect)=yes)
exten => s,n,Set(CONNECTEDLINE(name,i)=Fax Catch Active)
exten => s,n,Return()
; Create a standalone global context that Asterisk can fall back to
[dialOne-with-exten]
exten => fax,1,Noop(Global intercept captured fax tone!)
exten => fax,2,Goto(custom-fax-iaxmodem,s,1)
[macro-exten-vm]
exten => fax,1,Noop(Global intercept captured fax tone!)
exten => fax,2,Goto(custom-fax-iaxmodem,s,1)
[from-pstn-custom]
exten => fax,1,Noop(Global trunk fallback caught fax tone!)
exten => fax,2,Goto(custom-fax-iaxmodem,s,1)
3. Run: asterisk -rx "dialplan reload"
4. Run: asterisk -rx "core reload"
BUT, still issues receiving faxes................................so this is the adjustments that had to be made...............................
/etc/asterisk/extensions_custom.conf
in [custom-fax-iaxmodem] changed
exten => s,n,ReceiveFax(${FAXDEST}/${tempfax}.tif)
TO
exten => s,n,ReceiveFax(${FAXDEST}/${tempfax}.tif,f)
the f option lets asterisk fall back to regular G.711 audio fax when the trunk won't do T.38. voip.ms refuses T.38, so without it ReceiveFax just aborted with "Audio FAX not allowed ... T.38 negotiation failed"
then asterisk -rx "core reload"
backup of the old file is extensions_custom.conf.bak-20261119
/root/sendfax.sh (outgoing, sendfax2027 from the nerdvittles guide)
set callerid to "DIAMOND FINANCL" <8166000071>, faxheader DIAMOND FINANCL, faxstationid 847-884-8507
same f option on the send, changed data: $mytif to data: $mytif,f
touch /etc/pbx/.sendfax to skip the setup prompt
THAT FIXED IT!!!!!!!!!!!!!!!!!!! AS FAR AS THE SETTINGS IN THE PBX FOR INCOMING ROUTES AND TRUNKS, THOSE STILL ARE AS WARD MENTIONED.
Asterisk 22/23 have MAJOR plumbing changes. To receive faxes, follow the existing tutorial and then add these additions in /etc/asterisk/extensions_custom.conf for Incredible PBX 2026. No User Manager setup required. Sending a fax still works as documented in the existing tutorial.
1. Add the following code at top of file just below [from-internal-custom]:
Code:
exten => fax,1,Noop(Global internal fallback caught fax tone!)
exten => fax,2,Goto(custom-fax-iaxmodem,s,1)
2. Add the following code at the bottom of the file:
Code:
[macro-dialout-one-predial-hook]
exten => s,1,Noop(Enforcing global inheritance for fax detection)
; This line forces any fax detection on this channel to jump out to our custom handler
exten => s,n,Set(CHANNEL(faxdetect)=yes)
exten => s,n,Set(CONNECTEDLINE(name,i)=Fax Catch Active)
exten => s,n,Return()
; Create a standalone global context that Asterisk can fall back to
[dialOne-with-exten]
exten => fax,1,Noop(Global intercept captured fax tone!)
exten => fax,2,Goto(custom-fax-iaxmodem,s,1)
[macro-exten-vm]
exten => fax,1,Noop(Global intercept captured fax tone!)
exten => fax,2,Goto(custom-fax-iaxmodem,s,1)
[from-pstn-custom]
exten => fax,1,Noop(Global trunk fallback caught fax tone!)
exten => fax,2,Goto(custom-fax-iaxmodem,s,1)
3. Run: asterisk -rx "dialplan reload"
4. Run: asterisk -rx "core reload"
BUT, still issues receiving faxes................................so this is the adjustments that had to be made...............................
/etc/asterisk/extensions_custom.conf
in [custom-fax-iaxmodem] changed
exten => s,n,ReceiveFax(${FAXDEST}/${tempfax}.tif)
TO
exten => s,n,ReceiveFax(${FAXDEST}/${tempfax}.tif,f)
the f option lets asterisk fall back to regular G.711 audio fax when the trunk won't do T.38. voip.ms refuses T.38, so without it ReceiveFax just aborted with "Audio FAX not allowed ... T.38 negotiation failed"
then asterisk -rx "core reload"
backup of the old file is extensions_custom.conf.bak-20261119
/root/sendfax.sh (outgoing, sendfax2027 from the nerdvittles guide)
set callerid to "DIAMOND FINANCL" <8166000071>, faxheader DIAMOND FINANCL, faxstationid 847-884-8507
same f option on the send, changed data: $mytif to data: $mytif,f
touch /etc/pbx/.sendfax to skip the setup prompt
THAT FIXED IT!!!!!!!!!!!!!!!!!!! AS FAR AS THE SETTINGS IN THE PBX FOR INCOMING ROUTES AND TRUNKS, THOSE STILL ARE AS WARD MENTIONED.