Abhi1
October 13, 2023, 7:53am
1
i get the incoming call, then create a bridge and add incoming channel to that bridge and started recording on that bridge,
//AFTER ADD CHANNEL TO BRIDGE
this.bridge.record({
format: “wav”,
name: file
}, function (err, recording) {
log_errors(“start_call_recording”, err);
recording.on(“RecordingFinished”, this.move_recording);
});
move_recording = async (event, recording) => {
console.log(‘move_recording event>>>’,event);
let file = recording.name;
//MOVE FILE CODE
}
But after this getting RecordingFinished event at any time.
but i need after a call disconnect.
jcolp
October 13, 2023, 10:42am
2
I don’t understand the question or issue. Recording should continue until either you stop it, or the bridge is terminated.
1 Like
Abhi1
October 13, 2023, 11:38am
3
hello jcolp, thanks for your attention.
i didn’t call stop() from anywhere and bridge is also not terminate but i guest the situation whenever i will try to add new channel to bridge then that bridge’s recording will be stopped and i get the RecordingFinished event.
can u suggest anything in this.
thanks for advance.
jcolp
October 13, 2023, 11:40am
4
I would suggest actually providing a complete trace of events and HTTP requests/responses.
Abhi1
October 13, 2023, 11:47am
5
actually sorry jcolp, i’m unable to do that can u refer me any suitable example or document for this case. using ARI
jcolp
October 13, 2023, 11:49am
6
No. I can’t remember any issues for such a thing, and don’t recall of anyone mentioning it. I don’t have an example.
Pooh
October 13, 2023, 11:52am
7
Why start recording when a channel gets added to the bridge?
Why not start recording when the bridge is created, and stop when it is
destroyed, no matter what channels join or leave in the meantime?
Antony.
Abhi1
October 13, 2023, 12:23pm
9
still getting stop on add channel in bridge, thanks for your efforts Antony.
Abhi1
October 16, 2023, 6:28am
10
I’m getting this warning in asterisk logs at the same time when i get RecordingFinish event, if anyone have a idea about this then please share.
app.c:1941 __ast_play_and_record: No audio available on Recorder/ARI-
system
Closed
November 15, 2023, 6:28am
11
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.