Is there a way to find the status of a mixmonitor file

I would like to know whether a mixmonitor file is still being written or done with.
it there a way through AMI/ARI?

You could shell to lsof.

isnt there a better way?

I think you can specify a script to run when it is closed.

thanks for the suggestions. i am guessing there is no way through AMI/ARI, correct?

If having a notification on “stop” is acceptable then these options may work for you:

  1. Switch to use Monitor instead of MixMonitor. Monitor raises AMI events when starting/stopping. However your setup may not be conducive to swapping applications.

  2. Raise a UserEvent from the dialplan when it’s done. For example:

    exten => 100,1,NoOp()
    same => n,Answer()
    same => n,MixMonitor(/tmp/mixmonitor.wav,a)
    same => n,Playback(demo-congrats)
    same => n,UserEvent(mixmonitor, status: done)
    same => n,Hangup()
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.