-1

First of all I need to get a list of current live calls and then I need to pause and unpause the live recording pragmatically using asterisk ARI,AMI , anything that can achieve what I need

anyone has a clue what should I do?

Cœur
  • 37,241
  • 25
  • 195
  • 267

2 Answers2

0

Asterisk have nothing to do with your playback.

Asterisk is pbx. You can DOWNLOAD recording. Doesn't metter if your browser/app play it or show as "downloaded", on asterisk side it will be DOWNLOAD.

So you have deal with it on your side.

If you want pause playback in Dialplan(via phone), use ControlPlayback app.

There are no current calls tracking, asterisk track only channels. For see it use AMI command

COMMAND core show channels

You can do current calls tracking using dialplan+db.

arheops
  • 15,544
  • 1
  • 21
  • 27
  • Thanks for the answer ,yeah they are currently doing it via the phone by pressing a certain key but is there a way to do it pragmatically perhaps by simulating the phone press on this channel or i am just talking nonsense :) – haythamforever Jul 11 '18 at 13:01
  • Yes, you can use AMI SendDTMF action or change code of app_controlplayback.c – arheops Jul 11 '18 at 16:36
  • that's what i am currently trying to do using Asterisk ARI on an active channel , i am using the c# wrapper but i am getting Forbidden response ,any thoughts what may be wrong – haythamforever Jul 11 '18 at 16:58
0

You can definietly do this with AMI if you know the Channel ID.

asterisk*cli> manager show command PauseMonitor
[Syntax]
Action: PauseMonitor
[ActionID:] <value>
Channel: <value>

asterisk*cli> manager show command UnpauseMonitor
[Syntax]
Action: UnpauseMonitor
[ActionID:] <value>
Channel: <value>
viktike
  • 717
  • 4
  • 7