[Home]

Summary:ASTERISK-16176: function SHARED broken
Reporter:yold (yold)Labels:
Date Opened:2010-05-31 16:37:47Date Closed:2011-06-07 14:05:21
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Functions/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
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@CTX-TEST:1] Set("SIP/20-0000002f", "__channelparent=SIP/20-0000002f") in new stack
   -- Executing [s@CTX-TEST:2] Set("SIP/20-0000002f", "SHARED(var-SIP/20-0000002f)=foo") in new stack
   -- Executing [s@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@macro-test:1] NoOp("SIP/10-00000030", "SIP/20-0000002f") in new stack
   -- Executing [s@macro-test:2] NoOp("SIP/10-00000030", "") in new stack
   -- Executing [s@macro-test:3] Set("SIP/10-00000030", "SHARED(var-SIP/20-0000002f)=bar") in new stack
   -- Executing [s@macro-test:4] NoOp("SIP/10-00000030", "bar") in new stack
   -- Executing [s@macro-test:5] Set("SIP/10-00000030", "MACRO_RESULT=CONTINUE") in new stack
   -- Executing [s@CTX-TEST:4] NoOp("SIP/20-0000002f", "foo") in new stack
   -- Auto fallthrough, channel 'SIP/20-0000002f' status is 'ANSWER'



Comments:By: Paul Belanger (pabelanger) 2010-06-01 09:26:16

It would be helpful to see a debug log (see below)
--
We require a complete debug log to help triage the issue.

This document will provide instructions on how to collect debugging logs from an Asterisk machine for the purpose of helping bug marshals troubleshoot an issue:

http://svn.digium.com/svn/asterisk/trunk/doc/HOWTO_collect_debug_information.txt

By: Leif Madsen (lmadsen) 2010-06-02 10:59:08

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

By: Paul Belanger (pabelanger) 2010-06-10 15:02:11

Suspended due to lack of activity. Please request a bug marshal in #asterisk-bugs on the IRC network irc.freenode.net to reopen the issue should you have the additional information requested.

Further information can be found at http://www.asterisk.org/developers/bug-guidelines