In order to build it add it to telegraf/plugins/inputs and rebuild telegraf
Telegraf input plugin for asterisk