Hi everybody,
I’ve added an inbound route for DIDs to an old PBX (closed: do not permit any modification) sitting behind a new FreePBX installation.
N.B:
for outbound route, I can pas calls without any problems0
So that my incoming calls pass I must carry the following changes to the extensions_additional.conf file:
From :
[ext-did-catchall]
include => ext-did-catchall-custom
exten => _.,1,Noop(Catch-All DID Match - Found ${EXTEN} - You probably want a DID for this.) ==> line to modifiy
exten => _.,n,Goto(ext-did,s,1)
; end of [ext-did-catchall]
To :
[ext-did-catchall]
include => ext-did-catchall-custom
exten => _.,1,Set(CUSTID=${EXTEN}) ==> modified line
exten => _.,n,Goto(ext-did,s,1)
; end of [ext-did-catchall]
From :
[ext-did-0001]
include => ext-did-0001-custom
exten => s,1,Set(__FROM_DID=${EXTEN}) ==> line to modifiy
exten => s,n,ExecIf($[ “${CALLERID(name)}” = “” ] ,Set,CALLERID(name)=${CALLERID(num)})
exten => s,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => s,n,SetCallerPres(allowed_not_screened)
exten => s,n(dest-ext),Goto(astrtr,s,1)
; end of [ext-did-0001]
To:
[ext-did-0001]
include => ext-did-0001-custom
exten => s,1,Set(__FROM_DID=${CUSTID}) ==> modified line
exten => s,n,ExecIf($[ “${CALLERID(name)}” = “” ] ,Set,CALLERID(name)=${CALLERID(num)})
exten => s,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => s,n,SetCallerPres(allowed_not_screened)
exten => s,n(dest-ext),Goto(astrtr,s,1)
; end of [ext-did-0001]
And that’s work while I do not execute amportal restart (override extensions_additional.conf).
Now I need to know if there is a mean to do that with another file like extensions_override_freepbx.conf in order to keep modifications.
I appreciate any idea or help.
Best regards.