Summary: | ASTERISK-23232: LocalBridge AMI Event LocalOptimization value is opposite to what's expected | ||
Reporter: | Leon Roy (leonroy) | Labels: | |
Date Opened: | 2014-01-31 10:10:00.000-0600 | Date Closed: | 2014-02-05 14:46:01.000-0600 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Channels/chan_local |
Versions: | 11.3.0 11.7.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | OS: Ubuntu 12.04 HW: Xeon i3 | Attachments: | |
Description: | Executing the below Originate with /n suffixed to the channel. It should if I understand correctly prevent Local Channel Optimization.
However the subsequent AMI LocalBridge event shows LocalOptimization as Yes when really you’d expect it to show No. Tested on 11.3.0 but looking at the code for 11.7.0 the code in channels/chan_local.c appears to be identical: Here’s the Originate I’m sending: {code} :20140131150855GMT >>> action: Originate - >>> actionid: 1273308587_5# - >>> callerid: 6001 - >>> async: true - >>> variable: actionId=1391180912854 - >>> variable: tsInterest=leon_office_vmstsp_default - >>> variable: tsCalledId=3805 - >>> variable: tsDtmf=true - >>> variable: tsIvr=true - >>> variable: tsMoh=false - >>> variable: tsMakeCallTimeout=30 - >>> variable: tsExtension=6001 - >>> variable: tsParty=first - >>> variable: tsCallerId=6001 - >>> variable: tsCallbackTimeout=10 - >>> priority: 1 - >>> context: divoiceint - >>> exten: 3805 - >>> channel: LOCAL/6001@divoiceint/n - >>> timeout: 60000 - >>> -20140131150855GMT <<< Response: Success -20140131150855GMT <<< ActionID: 1273308587_5# {code} Response received: {code} :20140131150855GMT <<< Event: LocalBridge <<< Privilege: call,all <<< Channel1: Local/6001@divoiceint-0000002d;1 <<< Channel2: Local/6001@divoiceint-0000002d;2 <<< Uniqueid1: 1391180966.162 <<< Uniqueid2: 1391180966.163 <<< Context: divoiceint <<< Exten: 6001 <<< LocalOptimization: Yes {code} | ||
Comments: | By: Matt Jordan (mjordan) 2014-01-31 12:32:09.389-0600 Yup, it's just swapped in the code: {noformat} ast_test_flag(p, LOCAL_NO_OPTIMIZATION) ? "Yes" : "No"); {noformat} |