[Home]

Summary:ASTERISK-29343: app_queue: Wrong order in queue_log when disconnect PJSIP call while on hold
Reporter:Edi (edmond_dobrova@hotmail.com)Labels:
Date Opened:2021-03-11 16:14:07.000-0600Date Closed:2021-03-19 04:31:05
Priority:MinorRegression?
Status:Closed/CompleteComponents:Applications/app_queue
Versions:16.5.1 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) hold_issue
( 1) holdissue.jpg
( 2) hold_issue.txt
Description:hi, i have switched from local channel to pjsip channel in the queue configuration, but i figure it out that the order is not correct on the pjsip, for example if i put my customer on hold and than the customer disconnects the call while on hold than this is the order that i get:

Local Channel (this is correct):
1) CONNECT
2) HOLD
3) END HOLD
4) COMPLETE

Pjsip:
1)CONNECT
2) HOLD
3)COMPLETE
4)END HOLD
Comments:By: Asterisk Team (asteriskteam) 2021-03-11 16:14:07.817-0600

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: Benjamin Keith Ford (bford) 2021-03-12 10:17:07.322-0600

Can you attach the log, as well as logs from Asterisk with debug and verbose enabled? Does this have any effect on the call itself, or is it just displaying the order wrong in the log?

By: Edi (edmond_dobrova@hotmail.com) 2021-03-12 10:45:20.731-0600

This is affecting my hold time on the reports because it thinks that the call is still on hold, the only reason why i am using pjsip is that it logs the call transfers while the local channel doesn't log call transfers. here is the log from the queue_log:

local channel
9272 1615497852|1615497849.40490|477|199|CONNECT|3|1615497849.40491|1
9273 1615497853|1615497849.40490|477|199|PAUSE|Hold
9274 1615497856|1615497849.40490|477|199|UNPAUSE|Hold
9275 1615497856|1615497849.40490|477|199|COMPLETEAGENT|3|4|1

pjsip
9282 1615497965|1615497961.40496|477|PJSIP/199|CONNECT|3|1615497962.40497|1
9283 1615497966|1615497961.40496|477|PJSIP/199|PAUSE|Hold
9284 1615497973|1615497961.40496|477|PJSIP/199|COMPLETEAGENT|3|8|1
9285 1615497973|1615497961.40496|477|PJSIP/199|UNPAUSE|Hold



By: Benjamin Keith Ford (bford) 2021-03-15 10:23:12.486-0500

Thanks for the feedback. Are you able to provide logs that show the order of events?

By: Edi (edmond_dobrova@hotmail.com) 2021-03-18 08:15:42.174-0500

I just figure it out that it started to count hold time when transferring a call than ended hold time when doing another transfer call, so i have collected the debug information, where do i send the debug file?

By: Joshua C. Colp (jcolp) 2021-03-18 08:17:40.216-0500

Log files should be attached to this issue using the "More" button followed by "Attach Files".

By: Edi (edmond_dobrova@hotmail.com) 2021-03-18 08:33:01.516-0500

here is the debug file that includes answering a call than transferring to another extension

By: Edi (edmond_dobrova@hotmail.com) 2021-03-18 09:02:16.360-0500

here is the screenshot how it looks in my report so you can get an idea .

By: Joshua C. Colp (jcolp) 2021-03-19 04:31:05.830-0500

Based on the log you've attached you appear to be using FreePBX. If you are using the commercial Queue Pro module please file a support ticket, otherwise please file a normal FreePBX ticket. If it is then determined to be an issue with Asterisk it will be coordinated as appropriate.

I'm sending you to them because these log messages:

9283 1615497966|1615497961.40496|477|PJSIP/199|PAUSE|Hold
9285 1615497973|1615497961.40496|477|PJSIP/199|UNPAUSE|Hold

While logged by Asterisk are not actually triggered by Asterisk. FreePBX logic is telling Asterisk to pause and unpause the queue member with a reason of "Hold".