cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
780
Views
0
Helpful
1
Replies

Is it possible to record separate voice-files for the voices of caller and callee in Tapi-C++ ?

AnuragD21
Level 1
Level 1

Hello,

Is it possible to record separate voice-files for the voices of caller and callee in Tapi (with C/C++) ?

If it is possible, could you please  guide on the code to implement this.

I could not find any option for recording only the caller or callee voice in the relevant recording functions as below

(document: CUCM_TAPI_Dev_Guide.pdf):-

(1)  The waveInOpen function opens the given waveform-audio input device for recording.

MMRESULT waveInOpen( LPHWAVEIN phwi,   UINT uDeviceID, LPWAVEFORMATEX pwfx, DWORD dwCallback, DWORD  wCallbackInstance, DWORD fdwOpen );

(2)  The waveInPrepareHeader function prepares a buffer for waveform-audio input.

MMRESULT waveInPrepareHeader( HWAVEIN hwi, LPWAVEHDR pwh, UINT );

(3) The waveInAddBuffer function sends an input buffer to the given waveform-audio input device.

When the buffer is filled, the application receives notification.

MMRESULT waveInAddBuffer( HWAVEIN hwi, LPWAVEHDR pwh, UINT cbwh );

(4) The waveInStart function starts input on the given waveform-audio input device.

MMRESULT waveInStart( HWAVEIN hwi );

Thanks a lot..

Regards,

Anurag

1 Reply 1

jocreed
Cisco Employee
Cisco Employee

I do not know if it is possible with TAPI, however your recorder could be customized to make a separate recording on each device through the RTP streams.  Typically what would happen is the recorder receives two SIP message invites in order to fork each call and then receives the RTP stream from each device, however most of the time the recorder combines the two RTP streams into one recording.  You should be able to also record each RTP stream for each device as separate recordings.