[asterisk-bugs] [Asterisk 0016458]: Variables not Passed

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jan 13 13:14:40 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16458 
====================================================================== 
Reported By:                CrashHD
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   16458
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.1.11 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-12-17 01:39 CST
Last Modified:              2010-01-13 13:14 CST
====================================================================== 
Summary:                    Variables not Passed
Description: 
When using either the U or M option with the DIAL() application, subsequent
arguments are not passed to the sub context/macro.

I tried both of these formats:

exten => 1,1,DIAL(${1},{$2},U(screen^ARG1))
exten => 2,1,DIAL(${1},{$2},U(screen^s^1(ARG1))


[screen]
exten => s,1,NOOP(HERE)



Additionally no _ARG1-9 seem to be inherited by the subchannel/macro (as I
was trying work around I discovered that as well).
====================================================================== 

---------------------------------------------------------------------- 
 (0116615) lmadsen (administrator) - 2010-01-13 13:14
 https://issues.asterisk.org/view.php?id=16458#c116615 
---------------------------------------------------------------------- 
OK, I have re-tested this with multiple arguments on 1.6.1.11, and I can't
reproduce this. Here is the output:

*CLI>   == Using SIP RTP CoS mark 5
    -- Executing [1 at phones:1] Dial("SIP/0004f2040002-00000000",
"SIP/0004f2040001,10,U(screen^my^triple^args)") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 0004f2040001
    -- SIP/0004f2040001-00000001 is ringing
    -- SIP/0004f2040001-00000001 answered SIP/0004f2040002-00000000
    -- Executing [s at screen:1] NoOp("SIP/0004f2040001-00000001", "HERE") in
new stack
    -- Executing [s at screen:2] NoOp("SIP/0004f2040001-00000001", "my --
triple -- args") in new stack


And the dialplan I used:

exten => 1,1,DIAL(${1},${2},U(screen^my^triple^args))


[screen]
exten => s,1,NOOP(HERE)
exten => s,n,NoOp(${ARG1} -- ${ARG2} -- ${ARG3}) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-13 13:14 lmadsen        Note Added: 0116615                          
======================================================================




More information about the asterisk-bugs mailing list