1. freeswitch自带的音频文件转换工具,如wav转G729流文件:
./fs_encode -l mod_bcg729 /mnt/voice/12073412.wav a.G729
2. 通过fs_cli进行外呼,对接到IP为192.168.10.21端口为5060的网关,如下:
./fs_cli -x "originate {origination_caller_id_number=10086,origination_caller_id_name=10086}sofia/external/1356xxx6714@192.168.10.21:5060 &echo"