Summary: | ASTERISK-17239: Local channel: variables do not propagate on masquerade until Wait() | ||||
Reporter: | Kirill Katsnelson (kkm) | Labels: | |||
Date Opened: | 2011-01-13 08:51:32.000-0600 | Date Closed: | 2011-01-14 14:02:25.000-0600 | ||
Priority: | Minor | Regression? | No | ||
Status: | Closed/Complete | Components: | Channels/chan_local | ||
Versions: | Frequency of Occurrence | ||||
Related Issues: |
| ||||
Environment: | Attachments: | ( 0) 18613.ael ( 1) 18613.call | |||
Description: | Variables set in the inner PBX script of the Local channel (before masquerade) are not available in the outer script, after masquerade, until that script executes a short Wait().
****** STEPS TO REPRODUCE ****** AEL: {noformat} context test-local { _[!-z]. => { NoCDR(); __QUUX=42; DumpChan(); Dial(SIP/250); } }; context test-remote { _[!-z]. => { NoCDR(); Verbose(1,test-remote before wait); DumpChan(); Wait(0.05); Verbose(1,test-remote after wait); DumpChan(); Hangup(); } }; {noformat} .call file: {noformat} CallerID: "" <8885550101> Channel: Local/Sample@test-local Extension: 13105550202 Priority: 1 Context: test-remote WaitTime: 120 {noformat} From DumpChan() in test-local: {noformat} QUUX=42 {noformat} First DumpChan() in test-remote: {noformat} (no variables) {noformat} Second DumpChan() in test-remote: {noformat} BRIDGEPEER=Local/Sample@test-local-af1f;2 DIALEDPEERNUMBER=250 SIPCALLID=0e5c30bd5c12cbcb718f433c0dcbd2f8@10.20.0.81:5060 QUUX=42 {noformat} | ||||
Comments: | By: Russell Bryant (russell) 2011-01-14 14:02:25.000-0600 This expected behavior. The local channel optimization doesn't happen until frames are flowing through the channels. |