« Back to Cisco JTAPI Questions

Voice Recording in JTAPI

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi All,
 
  One of our module in our project deals with a scenario where a number is called and the called party is played a sound file asking him to record a message. That recorded message is then saved as a .wav file. So in brief it consists of 3 parts.
 
1 Calling a number.
2. Playing a file.
3. Recording his voice and saving as a wav file.
 
We are able to develop the first two but are stuck in the recording part. Can you please help us with this? Some of the main queries are.
 
1. In our case the call is initiated from a CTI port to an external number. In that case ,we are not getting a recording option/recording profile option for a  number configured in the CTI port?
 
2. While we can capture the RTPInput ev and RTPOutput events , and the IP and port information, how do we capture the exact RTP stream, which is required for recording?
 
Thanks,
Manas Varma

There may be some confusion about what you mean by 'recording':
 
- JTAPI recording feature that is implemented via forking media from a Cisco IP phone to a SIP trunk based recording server.  This is not possible using a CTI port
- Capturing RTP audio at a CTI port via the application, which then 'records' the audio in some way internall
 
The latter is where I believe you will want to focus, and should be basically the reverse concept of the audio playback which you seem to have already accomplished: check the RTP input event for IP/port/codec, open a UDP port and start receiving audio packets.