Summary: | ASTERISK-30145: GET FULL VARIABLE CHANNEL not working | ||
Reporter: | Fabian Borot (fborot) | Labels: | |
Date Opened: | 2022-07-20 14:28:04 | Date Closed: | 2022-07-20 16:29:42 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Applications/General |
Versions: | 18.12.1 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | linux ubuntu 20 | Attachments: | |
Description: | 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. | ||
Comments: | By: Asterisk Team (asteriskteam) 2022-07-20 14:28:05.218-0500 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur. Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/]. By: Joshua C. Colp (jcolp) 2022-07-20 15:29:44.225-0500 This is not a bug. At the time "GET FULL VARIABLE" was executed the channel was not present for querying. This is the only case where result will be 0. If the channel has hung up, there is no guarantee it will still be present at the time another channel uses "GET FULL VARIABLE". By: Fabian Borot (fborot) 2022-07-20 16:20:50.549-0500 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@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? By: Asterisk Team (asteriskteam) 2022-07-20 16:20:50.806-0500 This issue has been reopened as a result of your commenting on it as the reporter. It will be triaged once again as applicable. By: Joshua C. Colp (jcolp) 2022-07-20 16:29:42.529-0500 The issue tracker isn't a support forum, you already have a thread open on the community forum. I'd suggest continuing there and waiting. |