[asterisk-bugs] [JIRA] (ASTERISK-30145) GET FULL VARIABLE CHANNEL not working

Fabian Borot (JIRA) noreply at issues.asterisk.org
Wed Jul 20 16:21:08 CDT 2022


    [ https://issues.asterisk.org/jira/browse/ASTERISK-30145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=259766#comment-259766 ] 

Fabian Borot commented on ASTERISK-30145:
-----------------------------------------

thank you Joshua ... your explanation makes sense, if I pass the A channel that hasn't reached the "h" extension yet it works

<PJSIP/16983-0000009e>AGI Rx << GET FULL VARIABLE RTPSTATS=${CHANNEL(rtcp,all)} PJSIP/16983-0000009e
<PJSIP/16983-0000009e>AGI Tx >> 200 result=1 (RTPSTATS=ssrc=1121921469;themssrc=0;lp=0;rxjitter=0.000000;rxcount=0;txjitter=0.000000;txcount=162;rlp=0;rtt=0.000000)

 which is why  this one works also (no passing the channelname at all, it uses the 'current' channel

<PJSIP/16983-0000009e>AGI Rx << GET FULL VARIABLE ${CHANNEL(rtcp,all)}
<PJSIP/16983-0000009e>AGI Tx >> 200 result=1 (ssrc=1121921469;themssrc=0;lp=0;rxjitter=0.000000;rxcount=0;txjitter=0.000000;txcount=162;rlp=0;rtt=0.000000)

I know this ticket will get closed now, but I do need to find a way to retrieve the RTCP stats for the B channel.. when and how can I do it if I need to do so after the call is gone?

I also tried this: I assign a hang-up handler in the Dial command and in the handler I  do call the function 

exten => s,n,Set(BLEGRTPQOS=${CHANNEL(rtcp,all)})
then in the console you can see that the var BLEGRTPQOS is populated as shown below log BUT when reading the var from the AGI it comes out empty

 Executing [s at BLegEndCall:5] Set("PJSIP/C10270-T360-0000009f", "BLEGRTPQOS=ssrc=935255637;themssrc=145215432;lp=0;rxjitter=0.000000;rxcount=165;txjitter=0.000097;txcount=0;rlp=0;rtt=0.000000") in new stack

<PJSIP/16983-0000009e>AGI Rx << GET VARIABLE BLEGRTPQOS
<PJSIP/16983-0000009e>AGI Tx >> 200 result=1 ()

any ideas how I can solve my problem?




> GET FULL VARIABLE CHANNEL not working
> -------------------------------------
>
>                 Key: ASTERISK-30145
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30145
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/General
>    Affects Versions: 18.12.1
>         Environment: linux ubuntu 20
>            Reporter: Fabian Borot
>
> it seems that the AGI command:
>  GET FULL VARIABLE CHANNELNAME
>  is not working when using the channel name as argument
> example1, without sending the channel name it works
> <PJSIP/16983-0000008a>AGI Rx << GET FULL VARIABLE RTPSTATS=${CHANNEL(rtcp,all)}
> <PJSIP/16983-0000008a>AGI Tx >> 200 result=1 (RTPSTATS=ssrc=454163183;themssrc=0;lp=0;rxjitter=0.000000;rxcount=0;txjitter=0.000000;txcount=168;rlp=0;rtt=0.000000)
> example 2 another version that works
> <PJSIP/16983-0000008a>AGI Rx << GET FULL VARIABLE ${CHANNEL(rtcp,all)}
> <PJSIP/16983-0000008a>AGI Tx >> 200 result=1 (ssrc=454163183;themssrc=0;lp=0;rxjitter=0.000000;rxcount=0;txjitter=0.000000;txcount=168;rlp=0;rtt=0.000000)
> these examples however do not work
> <PJSIP/16983-0000008a>AGI Rx << GET FULL VARIABLE RTPSTATS=${CHANNEL(rtcp,all)} PJSIP/C10270-T360-00000089
> <PJSIP/16983-0000008a>AGI Tx >> 200 result=0
> <PJSIP/16983-0000008a>AGI Rx << GET FULL VARIABLE RTPSTATS=${CHANNEL(rtcp,all)} ${CHANNEL}
> <PJSIP/16983-0000008a>AGI Tx >> 200 result=0
> I also tested expanding the ${CHANNEL} var alone and that works
> <PJSIP/16983-0000008a>AGI Rx << GET FULL VARIABLE ${CHANNEL}
> <PJSIP/16983-0000008a>AGI Tx >> 200 result=1 (PJSIP/16983-0000008a)
> As per the documentation it seems that I am sending the command properly.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list