I am initiating a call in ARI application in the following steps:
- create a channel using ari.channels.create()
- Dial the channel using ari.channels.Dial()
Now when I try to start a recording on the originated channel it fails with the following message on asterisk console:
ERROR res_stasis_recording.c: Cannot record channel while in bridge
I can also see in the asterisk console that the originated channel was placed into the bridge while being added to the Stasis App. Is this the default behavior?
How can I do a recording on this channel now?
I tried to listen to ChannelEnteredBridge event on the created channel in order to get the bridge id so that I can call record on the bridge instead but I never get this event.