Add AGI To All Sip Extensions

Hopefully this is the right place for this question.

I have an AGI script that needs to be inserted every time that I add a new extension via FreePBX.
I have narrowed it down to the file and the “[ext-local]” portion of the extensions_additional.conf file.

I am hoping I don’t have to hack into the file, it seems like there would be an easier way.

Basically FreePBX adds in all of the data for the extension
exten => *842000,1,Goto(app-campon-toggle,*84,1)

exten => *842000,hint,ccss:SIP/2000
exten => *842005,1,Goto(app-campon-toggle,*84,1)

exten => *842005,hint,ccss:SIP/2005


I need to have this line added, where the “2000” would be the extension id.
exten => 2000,1,AGI(sip_show_peer.php, ${CALLERID(num)}, ${CALLERID(name)}, ${EXTEN}, ${SIPCALLID}, ${UNIQUEID})

added for every extension, where the “2000” would be the