Sriram
Sriram

Reputation: 10558

Record and playback simultaneously - Asterisk

I am trying to build an application where I am required to record and playback simultaneously. The application needs to go live on an asterisk telephony server. My problem is:

  1. A user calls the asterisk server and starts to speak.
  2. The voice packets being sent by the user are recorded in a wav file on the system.
  3. A copy of the voice packets are sent as feedback simultaneously.

I have taken a look at ChanSpy, but it will not work if one is using Record.

My questions:
1. If a user calls an asterisk server, does that channel become a simplex or half-duplex channel?
2. Are there any commands etc. that allow us to do the above?
3. If not, does that mean I need to go into C programming for asterisk (agi-bin)?

P.S: Please let me know in case more information is needed.

Upvotes: 2

Views: 1426

Answers (2)

Matt Tew
Matt Tew

Reputation: 1621

You are wanting to feed to voice channel from the caller back to the same caller correct?

Have you tried the Echo command?

Upvotes: 1

rdegges
rdegges

Reputation: 33824

Why not try MixMonitor? That allows you to record the call, and doesn't interfere with ChanSpy usage. ChanSpy IS the best way to do this, by the way.

Upvotes: 1

Related Questions