Changes to extensions_custom.conf not working

I want to edit the ‘macro-outisbusy’ in extensions_additional.conf to play a different message (people hear “all circuits are busy” and assume the phone system has gone down). I’ve tried adding an amended copy of the macro to extensions_custom.conf as macro-outisbusy-custom, but it doesn’t have any affect and the same message still plays. If I make those changes in extensions_additional.conf it plays the correct message, but only until the next FreePBX change is applied of course (plus it’s messy).

The content of the two macros is below. Where am I going wrong?

extensions_additional.conf

[macro-outisbusy]
include => macro-outisbusy-custom
exten => s,1,Progress
exten => s,n,GotoIf($["${EMERGENCYROUTE}" = "YES"]?emergency,1)
exten => s,n,GotoIf($["${INTRACOMPANYROUTE}" = "YES"]?intracompany,1)
exten => s,n,Playback(all-circuits-busy-now&pls-try-call-later, noanswer)
exten => s,n,Congestion(20)
exten => s,n,Hangup
exten => intracompany,1,Playback(all-circuits-busy-now&pls-try-call-later, noanswer)
exten => intracompany,n,Congestion(20)
exten => intracompany,n,Hangup
exten => emergency,1,Playback(all-circuits-busy-now&pls-try-call-later)
exten => emergency,n,Congestion(20)
exten => emergency,n,Hangup
; end of [macro-outisbusy]

extensions_custom.conf

[macro-outisbusy-custom]
exten => s,1,Progress
exten => s,n,GotoIf($["${EMERGENCYROUTE}" = "YES"]?emergency,1)
exten => s,n,GotoIf($["${INTRACOMPANYROUTE}" = "YES"]?intracompany,1)
exten => s,n,Playback(the-number-u-dialed&is-curntly-unavail, noanswer)
exten => s,n,Congestion(20)
exten => s,n,Hangup
exten => intracompany,1,Playback(the-number-u-dialed&is-curntly-unavail, noanswer)
exten => intracompany,n,Congestion(20)
exten => intracompany,n,Hangup
exten => emergency,1,Playback(the-number-u-dialed&is-curntly-unavail)
exten => emergency,n,Congestion(20)
exten => emergency,n,Hangup

; end of [macro-outisbusy-custom]

You want to be using the file extensions_override_freepbx.conf, it allows you to rewrite changes in FreePBX generated dialplan. Using this file is discouraged, because you can never be sure that your edits will be compatible with some future update. Always throw in a NoOp line reminding yourself that you have made changes so at least there will be a log entry if something blows up down the road:

exten => x,1,noop(Entering user defined context, ${CONTEXT} defined in extensions_override_freepbx.conf)

Thanks lgaetz, looks like that’s worked prefectly.

1 Like