参考
http://brunoplum.iteye.com/blog/593263yum install libxml2-devel
yum install ncurses-devel
yum install openssl-devel
yum install zlib-devel
yum install mysql-devel
wget
http://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/certified-asterisk-1.8.11-cert2.tar.gztar zxvf certified-asterisk-1.8.11-cert2.tar.gz
cd certified-asterisk-1.8.11-cert2
./configure
make menuselect (窗口太小可能弹不出选择界面 从新选择 make distclean ./configure)
add-ons 选择 res_config_mysql app_mysql cdr_mysql
applications 增加选择 app_voicemail
channel drivers 增加选择 chan-dahdi
vi apps/app_queue.c
try_calling((struct queue_ent *qe, 下面
char k_exten[15] = "";;
int k9i = 0;
int k9j = 0;
int k9_flag = 0;
bridge = ast_bridge_call(qe->chan,peer, &bridge_config); 前面
for(;k9i < 15;k9i++){
if(member->interface[k9i]=='/'){
k9_flag=1;
continue;
}
if(member->interface[k9i]=='@'){
k9_flag=0;
break;
}
if(k9_flag){
k_exten[k9j++]=member->interface[k9i];
}
}
play_file(qe->chan, "number-report-begin");
ast_say_digit_str(qe->chan, k_exten, AST_DIGIT_ANY, qe->chan->language);
play_file(qe->chan, "number-report-end");
play_file(peer, "beep");
make
make install
vi /etc/asterisk/queues.conf
[general] 下面加入
setinterfacevar=yes
/Files/byc/wav.zip