In my development, I am trying to record everything during a call.
1- Record the agent speaking to a customer inside a bridge
2- Let’s say the customer has an answering machine, in this case i will play a voicemail for him
3- When I play the voicemail, the customer must be removed from the bridge before that, so the agent can make other calls.
This is my scenario.
So the recording is working fine on step (1). I can record everything in the bridge. After that, the customer is removed from the bridge and I start recording only his channel. But when I try to play the voicemail on his channel,
- POST /ari/channels/1513884679.215/record?name=recording_ch_outbound_10115.ulaw&format=ulaw&maxDurationSeconds=0&ifExists=append
The response I get in the websocket is that this request was queued
And it is not being played. The customer can’t hear that voicemail.
As soon as the customer hangs up, I can see a log error on asterisk
[Dec 21 14:34:20] WARNING[C-0000004c]: res_stasis_playback.c:250 playback_final_update: 1513884679.215: Playback failed for sound:/var/lib/asterisk/sounds/sc_voicemail/VM_24_831
So it seems to me I can’t record a channel + play voicemail on it.
I couldn’t find anywhere in the documentation that says so, and for me its probably something i am missing there. Do you know what might be wrong?
I am working with Asterisk 13, and I am developing a server on c++ to communicate with Asterisk using ARI only. My dialplan basically only runs the Stasis() function.