[asterisk-bugs] [Asterisk 0017429]: function SHARED broken

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jun 2 10:59:08 CDT 2010


The following issue requires your FEEDBACK. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17429 
====================================================================== 
Reported By:                yold
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17429
Category:                   Functions/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.2.7 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-05-31 16:37 CDT
Last Modified:              2010-06-02 10:59 CDT
====================================================================== 
Summary:                    function SHARED broken
Description: 
extensions.conf:
[CTX-TEST]
exten => s,1,Set(__channelparent=${CHANNEL})
exten => s,n,Set(SHARED(var-${CHANNEL})=foo)
exten => s,n,Dial(SIP/${NUMBER},15,rgHM(test))
exten => s,n,NoOp(${SHARED(var-${CHANNEL}})

[macro-test]
exten => s,1,NoOp(${SHARED(var-${channelparent})})
exten => s,n,Set(SHARED(var-${channelparent})=bar)
exten => s,n,NoOp(${SHARED(var-${channelparent})})
exten => s,n,Set(MACRO_RESULT=CONTINUE)

    -- Executing [s at CTX-TEST:1] Set("SIP/20-0000002f",
"__channelparent=SIP/20-0000002f") in new stack
    -- Executing [s at CTX-TEST:2] Set("SIP/20-0000002f",
"SHARED(var-SIP/20-0000002f)=foo") in new stack
    -- Executing [s at CTX-TEST:3] Dial("SIP/20-0000002f",
"SIP/10,15,rgHM(test)") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called 10
    -- SIP/10-00000030 is ringing
    -- SIP/10-00000030 answered SIP/20-0000002f
    -- Executing [s at macro-test:1] NoOp("SIP/10-00000030",
"SIP/20-0000002f") in new stack
    -- Executing [s at macro-test:2] NoOp("SIP/10-00000030", "") in new
stack
    -- Executing [s at macro-test:3] Set("SIP/10-00000030",
"SHARED(var-SIP/20-0000002f)=bar") in new stack
    -- Executing [s at macro-test:4] NoOp("SIP/10-00000030", "bar") in new
stack
    -- Executing [s at macro-test:5] Set("SIP/10-00000030",
"MACRO_RESULT=CONTINUE") in new stack
    -- Executing [s at CTX-TEST:4] NoOp("SIP/20-0000002f", "foo") in new
stack
    -- Auto fallthrough, channel 'SIP/20-0000002f' status is 'ANSWER'




====================================================================== 

---------------------------------------------------------------------- 
 (0122784) lmadsen (administrator) - 2010-06-02 10:59
 https://issues.asterisk.org/view.php?id=17429#c122784 
---------------------------------------------------------------------- 
You have a typo in the CTX-TEST context:

exten => s,n,NoOp(${SHARED(var-${CHANNEL}})

should be

exten => s,n,NoOp(${SHARED(var-${CHANNEL})}) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-02 10:59 lmadsen        Note Added: 0122784                          
2010-06-02 10:59 lmadsen        Status                   new => feedback     
======================================================================




More information about the asterisk-bugs mailing list