Hello! I need a little help.
I am trying to get Rtcp stats using ARI, after the channel hangup (StasisEnd or Channel Destroyed events). But I always get the following error: “Provided channel not found”, when I try to execute CHANNEL(rtcp,all). I assume that’s because when I process those events the channel has already left the application.
Using the dialplan I am able to get the information I am looking for, but I was wondering if there is a way to do the same within ARI.
[default]
exten => _X.,1, NoOp()
same => n, Set(CHANNEL(hangup_handler_push)=hdlr1,s,1(args))
same => n, Stasis(ari)
same => n, Hangup()
exten => _ST.,1, NoOp()
same => n, Stasis(ari)
same => n, Hangup()
exten => _sipp-out,1, NoOp()
same => n, Stasis(ari)
same => n, Hangup()
[hdlr1]
exten => s,1,Verbose(0, Executed First)
same => n, Set(RTCP_data=${CHANNEL(rtcp,all)})
same => n, NoOp(RTCP Values : ${RTCP_data})
same => n, Return()