[asterisk-bugs] [JIRA] (ASTERISK-17239) Local channel: variables do not propagate on masquerade until Wait()

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Mon Jul 17 16:40:57 CDT 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-17239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Mudgett updated ASTERISK-17239:
---------------------------------------

    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 at 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 at test-local-af1f;2
DIALEDPEERNUMBER=250
SIPCALLID=0e5c30bd5c12cbcb718f433c0dcbd2f8 at 10.20.0.81:5060
QUUX=42
{noformat}


  was:
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:

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();
  }
};

.call file:

CallerID: "" <8885550101>
Channel: Local/Sample at test-local
Extension: 13105550202
Priority: 1
Context: test-remote
WaitTime: 120

>From DumpChan() in test-local:
QUUX=42

First DumpChan() in test-remote:
(no variables)

Second DumpChan() in test-remote:
BRIDGEPEER=Local/Sample at test-local-af1f;2
DIALEDPEERNUMBER=250
SIPCALLID=0e5c30bd5c12cbcb718f433c0dcbd2f8 at 10.20.0.81:5060
QUUX=42



> Local channel: variables do not propagate on masquerade until Wait()
> --------------------------------------------------------------------
>
>                 Key: ASTERISK-17239
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-17239
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Channels/chan_local
>            Reporter: Kirill Katsnelson
>            Severity: Minor
>         Attachments: 18613.ael, 18613.call
>
>
> 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 at 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 at test-local-af1f;2
> DIALEDPEERNUMBER=250
> SIPCALLID=0e5c30bd5c12cbcb718f433c0dcbd2f8 at 10.20.0.81:5060
> QUUX=42
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list