[asterisk-bugs] [Asterisk 0015390]: Option U() functionality is not equivalent to application documentation

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jun 25 01:42:38 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15390 
====================================================================== 
Reported By:                kaldemar
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   15390
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   text
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.1.0 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-24 10:02 CDT
Last Modified:              2009-06-25 01:42 CDT
====================================================================== 
Summary:                    Option U() functionality is not equivalent to
application documentation
Description: 
App documentation for Dial() option U() suggests that gosub calls "routine"
x and arguments are delimited with ^. Instead, option U() treats x as a
context and calls for extension s and priority 1 in it, and arguments are
delimited with either a comma or ^.

Debug:
    -- Executing [123 at default:1] Dial("Console/dsp1",
"Local/100 at weasels,,U(context,123,arg2)") in new stack
[Jun 24 17:57:45] DEBUG[10604]: pbx.c:3179 pbx_extension_helper: Launching
'Answer'
    -- Executing [100 at weasels:1] Answer("Local/100 at weasels-15c7;2", "") in
new stack
    -- Called 100 at weasels
    -- Local/100 at weasels-15c7;1 answered Console/dsp1
[Jun 24 17:57:45] DEBUG[10603]: app_stack.c:240 gosub_exec: Channel
Local/100 at weasels-15c7;1 has no datastore, so we're allocating one.
[Jun 24 17:57:45] DEBUG[10603]: app_stack.c:299 gosub_exec: Setting 'ARG1'
to '123'
[Jun 24 17:57:45] DEBUG[10603]: app_stack.c:299 gosub_exec: Setting 'ARG2'
to 'arg2'

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

---------------------------------------------------------------------- 
 (0106962) kaldemar (reporter) - 2009-06-25 01:42
 https://issues.asterisk.org/view.php?id=15390#c106962 
---------------------------------------------------------------------- 
core show application GoSub (1.6.1.1) says
Gosub([[context,]exten,]priority[(arg1[,...][,argN])])

That is the way app GoSub actually works. It doesn't start at s,1 but
where it is told to start. U() works in a macro manner (goes to "s,1" in
given context), and does not work like GoSub.

The best solution would be to have U() work exactly like GoSub to avoid
two different behaviors. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-25 01:42 kaldemar       Note Added: 0106962                          
======================================================================




More information about the asterisk-bugs mailing list