Summary: | ASTERISK-24682: app_dial: Multiple DialEnd events emitted when MACRO_RESULT or GOSUB_RESULT are an unexpected value | ||
Reporter: | Matt Jordan (mjordan) | Labels: | |
Date Opened: | 2015-01-13 19:52:37.000-0600 | Date Closed: | 2015-01-21 07:14:14.000-0600 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Applications/app_dial Core/Stasis |
Versions: | 13.1.0 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | When a mid-Dial Macro or GoSub is used and the {{MACRO_RESULT}} or {{GOSUB_RESULT}} is set to a non-expected value, multiple DialEnd messages will be raised - one with the result of the channel variable, and another with ANSWER.
As an example, setting {{MACRO_RESULT}} to {{HANGUP}} will result in the following two events: {noformat} [1421118888] DEBUG[24059] manager.c: Examining AMI event: Event: DialEnd^M Privilege: call,all^M Channel: Local/200@foo-0000092d;2^M ChannelState: 4^M ChannelStateDesc: Ring^M CallerIDNum: 211^M CallerIDName: 211^M ConnectedLineNum: 200^M ConnectedLineName: 211^M Language: en^M AccountCode: ^M Context: foo^M Exten: 200^M Priority: 2^M Uniqueid: 1412477167.957^M DestChannel: PJSIP/200-00001f70^M DestChannelState: 6^M DestChannelStateDesc: Up^M DestCallerIDNum: 200^M DestCallerIDName: 211^M DestConnectedLineNum: 211^M DestConnectedLineName: 211^M DestLanguage: en^M DestAccountCode: ^M DestContext: dial-process-no-fax^M DestExten: 200^M DestPriority: 1^M DestUniqueid: 1421118887.68161^M DialStatus: HANGUP^M [1421118888] DEBUG[24059] manager.c: Examining AMI event: Event: DialEnd^M Privilege: call,all^M Channel: Local/200@foo-0000092d;2^M ChannelState: 4^M ChannelStateDesc: Ring^M CallerIDNum: 211^M CallerIDName: 211^M ConnectedLineNum: 200^M ConnectedLineName: 211^M Language: en^M AccountCode: ^M Context: foo^M Exten: 200^M Priority: 2^M Uniqueid: 1412477167.957^M DestChannel: PJSIP/200-00001f70^M DestChannelState: 6^M DestChannelStateDesc: Up^M DestCallerIDNum: 200^M DestCallerIDName: 211^M DestConnectedLineNum: 211^M DestConnectedLineName: 211^M DestLanguage: en^M DestAccountCode: ^M DestContext: foo^M DestExten: 200^M DestPriority: 1^M DestUniqueid: 1421118887.68161^M DialStatus: ANSWER^M ^M {noformat} | ||
Comments: | By: Matt Jordan (mjordan) 2015-01-13 21:02:19.574-0600 Patch on Review Board: https://reviewboard.asterisk.org/r/4336/ Tests updated to cover the wackiness: https://reviewboard.asterisk.org/r/4337/ |