Automating mp3 select during freepbx 13 install

following the instructions here:
http://wiki.freepbx.org/display/FOP/Installing+FreePBX+13+on+CentOS+7
I’m working on a script that will install freepbx automatically in centos 7. When it gets to Compile and install Asterisk/make menuselect is there a way or a command to automate the selection of ‘format mp3’?
I’ve tried xdotool but had no joys with that.

https://wiki.asterisk.org/wiki/display/AST/Using+Menuselect+to+Select+Asterisk+Options

you need to run the

./contrib/scripts/get_mp3_source.sh

from the source directory before you “make menuselect” it.

thanks for the responses here, I think I got it. The command to automatically enable mp3 is:

menuselect/menuselect --enable format_mp3 menuselect.makeopts

I hope that’s correct. I ran make ‘make menuselect’ again and saw that format mp3 was already checked so I’m assuming the command worked.

https://wiki.asterisk.org/wiki/display/AST/Using+Menuselect+to+Select+Asterisk+Options

Will largely explain all you wanted to know about ’ menuselect’, why you need to run that script, how to give it options from bash to bypass the tui . and perhaps a bit more :slight_smile: