Enable TALK_DETECT for channel originated via ARI

675 views Asked by At

I'm trying to figure out a way to enable TALK_DETECT for an outgoing channel, but this does not seem possible for channel which his originated via ARI.

I thought about using a pre-dial handler for this, but it only seems possible when using the dialplan's Dial() function, not when originating with ARI endpoint.

I can't use a Local channel and direct the flow via a dialplan context, because due to asterisk's stupid architecture it causes all sorts of issues for me, so I'm pretty much locked out of using a dialplan.

Any ideas please?

3

There are 3 answers

2
Nicolas On

Managed to enable TALK_DETECT using the /channels/{channelId}/variable endpoint. It does not behave as expected though, which leads me to suspect it is listening on the transmitting side instead of the receiving one.

2
QuickDanger On

I haven't gotten a chance to use ARI much, but have you tried the record endpoint? You can tell it to record for a maxSilenceDuration and it will return the talking_duration. You could use this to poll in a loop while you do something else.

0
Rawshan Iajdani On

Just add the TALK_DETECT variable when creating the channel by ARI. That should do it.