Call Barging for Free Pbx Distro 2.11

We have Free Pbx Distro 2.11 version but we are unable to barge the selected Extension , to make this work, pl.suggest me what to do? After dialing 555 barging last call.We need to enter selected Extension with P.w
Thanks in Advance

add small script in the extensions_custom.conf file will be blank u need to copy the below script and past ( change “X” to the preferred number to barge )
exten => XXX,1,Macro(user-callerid)
exten => XXX,2,Authenticate( anypassword )
exten => XXX,3,Read(SPYNUM,agent-newlocation)
exten => XXX,4,ChanSpy(SIP/${SPYNUM))