Summary: | ASTERISK-28142: res_agi: asterisk will execute continuation of agi file in situation of simultaneous hangup in both side (caller and callee) | ||
Reporter: | robert robert (robert_anderson) | Labels: | |
Date Opened: | 2018-10-31 01:59:48 | Date Closed: | 2020-01-14 11:13:41.000-0600 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Resources/res_agi |
Versions: | 13.18.4 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | centos7 | Attachments: | ( 0) log.txt |
Description: | agi continues to its work after call comes out from it and i h exten i see in log AGISTATUS is not success and its hangup,
but it does the code after the place it comes out from agi ang go to h exten of main context | ||
Comments: | By: Asterisk Team (asteriskteam) 2018-10-31 01:59:49.384-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. 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]. By: robert robert (robert_anderson) 2018-10-31 02:03:40.428-0500 all of my incoming calls go to an agi file, and in file i use " $agi->exec(“DIAL LOCAL/”.$queue."@from-internal,g"); " for connecting to queue and then come back to agi. after this line in file i call an external api URL to log the call events in another server for some reasons: “http://10.1.10.59:11257/api/ca/v1/common/callevents’” when agent hangup the call first , call come back to agi file and then api URL willbe called, (no problem) when caller hangup the call first, call wont come back to agi so in h exten of main context , i call api URL with no problem BUT when agent and caller hangup the call simultaneous , api URL willbe called 2 times one time form agi and another time form h exten of dialplan and it makes an error in my call event server in my logs call wont come back to agi and h exten executed , but in fact agi is executing too , maybe in background. it's a bug in asterisk that continues agi when i log i can see agi status is not success and it's 'Hangup' surprisingly i can't see any log in asterisk that that mentioned part of agi is executing , i see just h exten is executing but in api server i can see that agi works too By: George Joseph (gjoseph) 2018-10-31 08:55:17.960-0500 I'm looking into this but in the mean time can you... * Provide a minimal sample diaplan snippet and AGI script that demonstrates the issue * Provide the log output showing the issue with the following options turned on... ** CLI> core set verbose 4 ** CLI> core set debug 3 res_agi.so * Try the latest Asterisk version (13.23.1) Thanks. By: Joshua C. Colp (jcolp) 2018-11-20 06:47:32.978-0600 In the future do not comment large amounts of text such as logs and configuration, attach them as files. By: Joshua C. Colp (jcolp) 2018-11-27 11:20:40.058-0600 In your AGI you have the following: {noformat} $agi->exec(“DIAL LOCAL/”.$queue."@from-internal,g"); {noformat} The 'g' option is used to continue in the dialplan if the destination channel hangs up. Is there a reason you are using this and if you remove it does the behavior change? It may have an interaction with AGI when used in there. By: Asterisk Team (asteriskteam) 2018-12-11 12:00:02.290-0600 Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1]. [1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines |