There isn’t an official way of doing this.
See Freepbx Survey and How to get Inputs from IVR freepbx?