gpt4 book ai didi

asterisk - 使用 MixMonitor 在 Asterisk 中进行通话录音

转载 作者:行者123 更新时间:2023-12-02 00:02:05 25 4
gpt4 key购买 nike

我刚开始使用 Asterisk 并遵循 O'Reilly Guide设置测试 Asterisk 服务器。我已经用 CentOS 6.4 设置了一个 VM,它有 1GB RAM 和 50GB HDD。

安装后,我在两台PC上成功设置软电话,可以互相通话。我现在必须记录这些电话 - 在搜索时,我找到了 this site并相应地编辑我的 extensions.conf

这是我的 extensions.conf

[globals]

EXT_TESTTWO=SIP/0000FFFF0002
EXT_TESTONE=SIP/0000FFFF0001

[default]
exten => 0000FFFF0001,hint,SIP/0000FFFF0001
exten => 0000FFFF0002,hint,SIP/0000FFFF0002

[Queues]
exten => 7001,1,Verbose(2,${CALLERID(all)} entering the support queue)
same => n,Queue(support)
same => n,Hangup()
exten => 7002,1,Verbose(2,${CALLERID(all)} entering the sales queue)
same => n,Queue(sales)
same => n,Hangup()

[macro-automon]
exten => s,1,Set(MONITOR_FILENAME=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${CALLERID(num)})
same => n,Playback(beep) ; optional - hear when recording starts
same => n,MixMonitor(${MONITOR_FILENAME}.wav,b)

[LocalSets]
include => Queues ; allow phones to call queues
exten => 101,1,Dial(${EXT_TESTONE},20,m) ; Replace 0000FFFF0001 with your device name
same => n,Playback(vm-nobodyavail) ; Play "no one's available"
same => n,Hangup()

exten => 102,1,Noop(Dialing 102);
exten => 102,n,Macro(automon) ; start monitor
exten => 102,n,Dial(SIP/0000FFFF0002,30) ; 30 secs
exten => 102,n,Goto(s-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
exten => 102-NOANSWER,1,Voicemail(20,us) ; If unavailable, send to voicemail w/ unavail announce
exten => 102-NOANSWER,n,Playback(vm-goodbye)
exten => 102-NOANSWER,n,Hangup
exten => 102-BUSY,1,Voicemail(${MACRO_EXTEN},bs) ; If busy, send to voicemail w/ busy announce
exten => 102-BUSY,n,Playback(vm-goodbye)
exten => 102-BUSY,n,Hangup
exten => _102-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answer

;exten => 102,1,Dial(${EXT_TESTTWO},20,m) ;Replace 0000FFFF0002 with your device name
;same => n,Playback(vm-nobodyavail) ; Play "no one's available"
;same => n,Hangup()

从 101 到 102 和 102 到 101 的调用工作正常。但是 /var/spool/asterisk/monitor 下没有记录。此外,在通话期间,我得到以下调试输出:

Read factory 0x7f971001f428 was pretty quick last time, waiting for them.
Read factory 0x7f971001f428 and write factory 0x7f9710020068 both fail to provide 160 samples
No remote address on RTP instance '0x7f9710009258' so dropping frame
Read factory 0x7f971001f428 was pretty quick last time, waiting for them.
Read factory 0x7f971001f428 and write factory 0x7f9710020068 both fail to provide 160 samples
No remote address on RTP instance '0x7f9710009258' so dropping frame
Read factory 0x7f971001f428 was pretty quick last time, waiting for them.
Read factory 0x7f971001f428 and write factory 0x7f9710020068 both fail to provide 160 samples
No remote address on RTP instance '0x7f9710009258' so dropping frame
Read factory 0x7f971001f428 was pretty quick last time, waiting for them.
Read factory 0x7f971001f428 and write factory 0x7f9710020068 both fail to provide 160 samples
No remote address on RTP instance '0x7f9710009258' so dropping frame
Read factory 0x7f971001f428 was pretty quick last time, waiting for them.
Read factory 0x7f971001f428 and write factory 0x7f9710020068 both fail to provide 160 samples
No remote address on RTP instance '0x7f9710009258' so dropping frame
Read factory 0x7f971001f428 was pretty quick last time, waiting for them.

我在这里做错了什么?如何为特定分机上的来电和去电启用通话录音?

最佳答案

当您使用 mixmonitor 时,您会检查您的 sip 设备是否有

directmedia=no

您还可以通过启用调试获得更多信息

关于asterisk - 使用 MixMonitor 在 Asterisk 中进行通话录音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20771374/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com