[asterisk-bugs] [Asterisk 0015390]: Option U() functionality is not equivalent to application documentation
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Jun 24 17:49:28 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-24 17:49 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'
======================================================================
----------------------------------------------------------------------
(0106952) qwell (administrator) - 2009-06-24 17:49
https://issues.asterisk.org/view.php?id=15390#c106952
----------------------------------------------------------------------
The documentation appears to be described quite accurately already.
GoSub uses a context (starting at s,1) and arguments are indeed delimited
by a ^ (they are replaced in code with commas - using commas in dialplan
would cause other issues). Am I missing something?
Issue History
Date Modified Username Field Change
======================================================================
2009-06-24 17:49 qwell Note Added: 0106952
======================================================================
More information about the asterisk-bugs
mailing list