Asterisk dropping call before leaving voicemail

I’m running into problems when dialing using an iax2 trunk. The extensions seem to ring but when its time to leave a voicemail the call is dropped and this is what I get on the CLI screen.

Aug 7 16:30:17 NOTICE[311314]: channel.c:1691 ast_set_write_format: Unable to find a path from UNKN to G729A
Aug 7 16:30:17 WARNING[311314]: file.c:779 ast_streamfile: Unable to open voicemail/default/201/unavail (format G729A): No such file or directory
Aug 7 16:30:17 NOTICE[311314]: channel.c:1691 ast_set_write_format: Unable to find a path from GSM to G729A
Aug 7 16:30:17 WARNING[311314]: file.c:779 ast_streamfile: Unable to open vm-intro (format G729A): No such file or directory

If anyone could help I’d greatly appreciate.

Hi

Do you have G729 codec licences ?

If you do how many

Ian