永发信息网

Asterisk怎样实现通话录音

答案:2  悬赏:0  手机版
解决时间 2021-03-14 16:52
  • 提问者网友:献世佛
  • 2021-03-14 12:42
Asterisk怎样实现通话录音
最佳答案
  • 五星知识达人网友:山有枢
  • 2021-03-14 13:26
extensions.conf
[default]
exten => _xxxx,1,set(dynamic_features=nway-start)
exten => _xxxx,n,dial(sip/${exten})

[dynamic-nway-invite]
exten => 0,1,noop(dynamic-nway-invite)
exten => 0,n,read(dest,dial,,i)
exten => 0,n,set(dynamic_features=nway-inv#nway-noinv)
exten => 0,n,dial(local/${dest}@dynamic-nway-dest,,g)
;exten => 0,n,set(dynamic_features=)
exten => 0,n,goto(dynamic-nway,8600,1)
exten => i,1,goto(dynamic-nway,8600,1)
[dynamic-nway-dest]
exten => _xxxx,1,noop(dynamic-nway-dest)
exten => _xxxx,n,dial(sip/${exten})
[dynamic-nway]
exten => _xxxx,1,noop(dynamic-nway)
exten => _xxxx,n,answer
exten => _xxxx,n,set(meetme_exit_context=dynamic-nway-invite)
exten => _xxxx,n,set(dynamic_features=nway-inv#nway-noinv)
exten => _xxxx,n,meetme(${exten},pdmx)
exten => _xxxx,n,set(dynamic_features=)
exten => _xxxx,n,hangup
[macro-nway-start]
exten => s,1,noop(macro-nway-start)
exten => s,n,set(confno=8600)
exten => s,n,channelredirect(${bridgepeer},dynamic-nway,${confno},1)
exten => s,n,read(dest,dial,,i)
exten => s,n,set(dynamic_features=nway-noinv#nway-inv)
exten => s,n,dial(local/${dest}@dynamic-nway-dest,,gtt)
exten => s,n,set(dynamic_features=)
exten => s,n,meetme(${confno},pdmx)
exten => s,n,goto(dynamic-nway,${confno},1)
[macro-nway-ok]
exten => s,1,noop(macro-nway-ok)
exten => s,n,channelredirect(${bridgepeer},dynamic-nway,8600,1)
[macro-nway-notok]
exten => s,1,noop(macro-nway-notok)
exten => s,n,softhangup(${bridgepeer})
features.conf
nway-start => *00,caller,macro,nway-start
nway-inv => *11,caller,macro,nway-ok
nway-noinv => *33,caller,macro,nway-notok
全部回答
  • 1楼网友:duile
  • 2021-03-14 14:51
Monitor():用于记录通话过程中录音的功能。 语法:Monitor(ext,basename,flags) ext: 用于指定改录音文件的格式,默认的将是wav文件 basename: 该录音文件的文件名 flags : 。。。。。。。。。。。。 实例一: 复制代码 exten => _x.,1,Answer() exten => _x.,n,Wait(1) exten => _x.,n,Monitor(wav,asterisk-help) exten => _x.,n,Dial(SIP/${EXTEN}) exten => _x.,n,Hangup() 当呼分机后,将在 “/var/spool/asterisk/monitor”目录下生成 "asterisk-help-in.wav"和"asterisk-help-out.wav"两个文件 实例二:指定录音路径 复制代码 exten => _x.,1,Answer() exten => _x.,n,Wait(1) exten => _x.,n,Monitor(wav,/root/asterisk-help) ;这里还可以指定到录音到/root目录下 exten => _x.,n,Dial(SIP/${EXTEN}) exten => _x.,n,Hangup()
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯