H3C VG8080 PCM抓包方法
1. 进入vdsm语音隐藏视图。
<VG80>sys
System View: return to User View with Ctrl+Z.
[VG80]voice-setup
Enter voice-setup mode !
[VG80-voice]vdsm
Please input password: //密码是qjzzhwdmyt
[VG80-voice-vdsm]
2.使用命令 h-dsp pcm free清空pcm buffer
如果之前没有进行pcm抓包操作,提示如下
[VG80-voice-vdsm]h-dsp pcm free
PCM buffer has no malloc!
如果已经启动抓包动作,提示如下:
[VG80-voice-vdsm]h-dsp pcm free
The PCM Data Channel 0 have been shutdown in the fdsp of board 6 port 0
3.在指定端口上进行PCM抓包——使用命令h-dsp pcm voiceboard
VG80的24FXO24FXS语音单板的0~23端口是FXO,24~47端口是FXS,具体使用到的端口号可以查看调试信息:
<VG80>debug physical event
<VG80>terminal debugging
<VG80>terminal monitor
*Jan 11
(Subscriber-Line6/27)PHY/EVT:
Slot <6> channel <27> receive command from board:
command : 0x31, HOOK_OFF
Argument1: 0x00, Argument2: 0x00
Argument3: 0x00, Argument4: 0x00
24FXO24FXS语音单板有fdsp和bdsp,bdsp只能在使用到bdsp才能抓PCM包。抓取0端口fdsp的pcm包,方法如下:
[VG80-voice-vdsm]h-dsp pcm voiceboard 6 fdsp 0
The PCM Data Channel 0 have been switched on in the fdsp of board 6 port 0
在抓包过程中可以使用该命令,查看到当前PCM数据包的大小。
[VG80-voice-vdsm]h-dsp pcm voiceboard 6 fdsp 0
Board 6 port 0 Channel 0 has been capturing PCM data packet, size:139200, addr:0x1ce06424
please h-dsp pcm free first.
4.保存PCM数据包。——使用h-dsp pcm save
当PCM数据包达到983040大小时,此时可以进行保存。
[VG80-voice-vdsm] h-dsp pcm save
Now saving the PCM data into the cf card.
Please wait...
The PCM data has been saved to the cf card successfully.
此时,系统会在CF卡中生成一个文件名为pcm的文件。
[VG80-voice-vdsm]return
<VG80>dir
Directory of cf:/
1 -rw- 987136
注意:当PCM data buffer未满时,不能进行pcm的save操作。系统会提示Can't save PCM buffer now, please try to save it when PCM data buffer is full!
5. 下载到PC
使用文件传输工具,如ftp、tftp等,就可以将该文件下载到本地PC上。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作