we knew extensions_additional.conf is auto generated by freepbx,
i added a subroute for inbound route, when finished then restart freepbx.
Gosub(sub-send-notification,s,1)
[sub-send-notification] is wrote in extensions_custom.conf,
when i have new settings, then apply config, i need add this subroute for each one again, I have a few inbound routes, so add it serval times, and [fwconsole restart] to make it Taking effect
Is there any method to add it dynamically, please help me!
exten => s/_96110,1,ExecIf($["${FROM_DID}" = ""]?Set(__FROM_DID=${EXTEN}))
exten => s/_96110,n,Gosub(sub-record-check,s,1(in,${EXTEN},dontcare))
exten => s/_96110,n,Set(returnhere=1)
exten => s/_96110,n,Gosub(app-blacklist-check,s,1())
exten => s/_96110,n(did),Set(CDR(did)=${FROM_DID})
exten => s/_96110,n,GotoIf(${LEN(${BLDEST})}?${BLDEST})
exten => s/_96110,n(callerid),ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)}))
exten => s/_96110,n,Gosub(sub-send-notification,s,1)
exten => s/_96110,n,Set(CHANNEL(musicclass)=thai)
exten => s/_96110,n,Set(__MOHCLASS=thai)
exten => s/_96110,n,Set(__REVERSAL_REJECT=FALSE)
exten => s/_96110,n,GotoIf($["${REVERSAL_REJECT}"!="TRUE"]?post-reverse-charge)
exten => s/_96110,n,GotoIf($["${CHANNEL(reversecharge)}"="1"]?macro-hangupcall)
exten => s/_96110,n(post-reverse-charge),Noop()
exten => s/_96110,n,Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)})
exten => s/_96110,n,Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)})
exten => s/_96110,n,Set(CALLERID(name-pres)=allowed_not_screened)
exten => s/_96110,n,Set(CALLERID(num-pres)=allowed_not_screened)
exten => s/_96110,n(did-cid-hook),Noop(CallerID Entry Point)
exten => s/_96110,n(dest-ext),Goto(from-did-direct,1000,1)