I have some configuration that need to be carried from which i create custom config files via the Config Edit feature of trixbox. I have though upgraded FreePBX to 2.4 and no when i try to create some of the extras when I make additional trunks and so on the changes i have made are removed and returned to previous configuration.
I do not make any changes to existing configuration I only add custom configuration.
An example
extension_additional.conf
[macro-outbound-callerid]
include => macro-outbound-callerid-custom
exten => s,3,GotoIf($["${REALCALLERIDNUM:1:2}" != “”]?start)
exten => s,n,Set(REALCALLERIDNUM=${CALLERID(number)})
exten => s,n(start),Noop(REALCALLERIDNUM is ${REALCALLERIDNUM})
exten => s,n,GotoIf($["${KEEPCID}" != “TRUE”]?normcid)
exten => s,n,GotoIf($[“x${OUTKEEPCID_${ARG1}}” = “xon”]?normcid)
exten => s,n,GotoIf($[“foo${REALCALLERIDNUM}” = “foo”]?normcid)
exten => s,n,Set(USEROUTCID=${REALCALLERIDNUM})
exten => s,n,GotoIf($[“foo${DB(AMPUSER/${REALCALLERIDNUM}/device)}” = “foo”]?bypass:normcid)
exten => s,n(normcid),Set(USEROUTCID=${DB(AMPUSER/${REALCALLERIDNUM}/outboundcid)})
exten => s,n(bypass),Set(EMERGENCYCID=${DB(DEVICE/${REALCALLERIDNUM}/emergency_cid)})
exten => s,n,Set(TRUNKOUTCID=${OUTCID_${ARG1}})
exten => s,n,GotoIf($["${EMERGENCYROUTE:1:2}" = “”]?trunkcid)
exten => s,n,GotoIf($["${EMERGENCYCID:1:2}" = “”]?trunkcid)
exten => s,n,Set(CALLERID(all)=${EMERGENCYCID})
exten => s,n,Goto(report)
exten => s,n(trunkcid),GotoIf($["${TRUNKOUTCID:1:2}" = “”]?usercid)
exten => s,n,Set(CALLERID(all)=${TRUNKOUTCID})
exten => s,n(usercid),GotoIf($["${USEROUTCID:1:2}" = “”]?report)
exten => s,n,Set(CALLERID(all)=${USEROUTCID})
exten => s,n,GotoIf($[“x${CALLERID(name)}”!=“xhidden”]?report:hidecid)
exten => s,n(hidecid),SetCallerPres(prohib_passed_screen)
exten => s,n(report),Noop(CallerID set to ${CALLERID(all)})
; end of [macro-outbound-callerid]
I then add directly underneath
[macro-outbound-callerid-custom]
exten => s,1,Set(headerinfo=${SIP_HEADER(from)})
exten => s,2,Set(pseudodid=${CUT(headerinfo,",-2)})
; end of [macro-outbound-callerid-custom]
click update and the updates are updated.
When i add a trunk for example and the click submit and then apply, all of the modifications have disappeared.
Is this normal? and how can I stop the resetting?
By the way, i know the above configuration does not reset on FreePBX 2.3