File Convert Wildcard Support

Home » Asterisk Users » File Convert Wildcard Support
Asterisk Users 1 Comment

Hello Everyone,

I was just wondering if the cli command “file convert” supports wildcard or entire directories? I am looking at a very long list right now and anxiously waiting a response :).

Kind Regards,

Nick from Toronto.

One thought on - File Convert Wildcard Support

  • DIR=”sounds directory/*”
    cd $DIR

    for f in $DIR; do
    /usr/local/asterisk/sbin/asterisk -rx “file convert $f ${f%.*}.g729”
    done

    Thank you come again.