Search This Blog

Thursday, December 17, 2015

Voice PCM capture

I figured two articles in one day would be cool....  Anyways, in my last article I wrote about a PCM capture.  This essentially lets you capture the voice stream after digitization from the DSPs and play it back.  I know that can be scary since you can listen to anyone's conversation but it was required and authorized in my case since I needed to find out if everything was worky worky on the PRI side of things.  So below is the script you need to capture voice, please use this responsibly.


  1. Debug mgcp packet (if applicable)
  2. Debug isdn q931
  3. voice hpi capture buffer 1000000
  4. voice hpi capture destination flash:pcm.dat
  5. exit
  6. test voice port 0/0/0:23.23 pcm-dump caplog 7 30
  7. :::::::::Make Test Call::::::::::::;
  8. test voice port 0/0/0:23.23 pcm-dump disable
  9. conf t
  10. no voice hpi capture buffer 1000000
  11. no voice hpi capture destination flash:pcm.dat

Note this is for prior to IOS 15.  Also, your voice ports are going to be different based on whichever channel gets opened for the bearer channel  for IOS 15 and later:



voice pcm capture buffer 200000
voice pcm capture destination flash:
exit
!
test voice port 0/1/3 pcm-dump caplog 7


:::::::::Make Test Call::::::::::::;

test voice port 0/1/3 pcm-dump disable


conf t
no voice pcm capture buffer 200000
no voice pcm capture destination flash:


On dial peer:
conf t
voice pcm capture buffer 80000000
voice pcm capture destination flash:
dial-peer voice 1
pcm-dump caplog FFFFFFF 254
!

After the all is done, to stop:

conf t
no voice pcm capture buffer 80000000
no voice pcm capture destination flash:
dial-peer voice 1
pcm-dump caplog disable
!

No comments:

Post a Comment