[asterisk-dev] Local channel variable propagation: expired hack or a bug?

Kirill Katsnelson kkm at smartaction.com
Tue Jan 3 21:38:29 CST 2017


With Asterisk 1.8 we were relying on the behavior of Originate with 
Local channels as mentioned in 
https://issues.asterisk.org/jira/browse/ASTERISK-17239. This no longer 
works in Asterisk 13.

Specifically, when a call is originated (e. g. via AMI) between 
"channel" Local/x at local-side and "extension" y at remote-side, the 
local-side runs on the Local/xxx;1 channel, and sets some variables in 
the dialplan. The old, 1.8 behavior, was to propagate the variables to 
the Local/xxx;2 channel when it gets it's turn to execute dialplan 
(y at remote-side in the example), after an infinitesimal Wait(), as the 
ticket explains.

This does not happen anymore in Asterisk 13. In fact, no variables are 
set on the remote-side, Local/xxx;2 channel; none of BRIDGEPEER, 
DIALEDPEERNUMBER, SIPCALLID from the ticket flow are set.

Local channel optimization does not occur in this example, as there is 
only one bridge (and the LocalBridge between the Local channels)

So my question is, did we use an undocumented hack, and therefore must 
find a different solution, or the current implementation has a bug that 
should be fixed? I honestly cannot remember where I got the idea 
initially, and whether or not it was documented.

  -kkm



More information about the asterisk-dev mailing list