I’m trying to do monitor like job in ARI, if I do record in bridge, I got one file with both caller and callee, if I do record on channel, I can’t join the channel into a bridge (got Channel currently recording), so how can I get separated recording files for caller and callee in ARI?
You would need to use the snoop route[1] to create a snoop channel from each party and then direct each snoop channel to their own record. This allows you to implement your own MixMonitor for example.
So I have to create two snoop channels on caller and callee channel, is that more resource consuming compare to monitor? if I want to mix them to one file, do I have timestamp issue?
Underneath it operates very much the same, uses the same underlying stuff. If you want to mix them it should be fine. You could also take one and snoop on both directions and record that to a single file. That would be exactly like MixMonitor.
As ARI is an API for writing telephony applications that is how it is done. You are writing your own Monitor/MixMonitor, not using an existing implementation. ARI gives the primitives to do what you want.