[asterisk-bugs] [Asterisk 0018967]: Do not working lua "app.goto"
Asterisk Bug Tracker
noreply at bugs.digium.com
Sun Mar 13 21:55:37 CDT 2011
The following issue has been SUBMITTED.
======================================================================
https://issues.asterisk.org/view.php?id=18967
======================================================================
Reported By: vfabi
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18967
Category: PBX/pbx_lua
Reproducibility: always
Severity: major
Priority: normal
Status: new
Asterisk Version: 1.6.2.17
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2011-03-13 21:55 CDT
Last Modified: 2011-03-13 21:55 CDT
======================================================================
Summary: Do not working lua "app.goto"
Description:
Do not working lua application app.goto.
Cut from lua extensions.lua:
--------------------------------
["_X."] = function()
app.noop("[DEBUG]: run extensions.lua")
app.noop("[DEBUG]: extension= _X")
app.dial("SIP/100")
dialstatus = channel.DIALSTATUS:get()
--app.goto("test", "s-"..dialstatus, 1)
app.goto("s-"..dialstatus, 1)
app.hangup()
end;
["s-BUSY"] = function()
app.noop("[DEBUG]: extension= s-BUSY")
app.noop("[DEBUG]: dialstatus= " ..dialstatus)
app.hangup()
end;
----------------------
Console log:
----------------------
-- Executing [333 at test:1] noop("SIP/200-00000028", "[DEBUG]: run
extensions.lua")
-- Executing [333 at test:1] noop("SIP/200-00000028", "[DEBUG]:
extension= _X")
-- Executing [333 at test:1] dial("SIP/200-00000028", "SIP/100")
== Using SIP RTP CoS mark 5
-- Called 100
-- SIP/100-00000029 is ringing
-- Got SIP response 603 "Decline" back from 192.168.1.130
-- SIP/100-00000029 is busy
== Everyone is busy/congested at this time (1:1/0/0)
-- Executing [333 at test:1] goto("SIP/200-00000028", "s-BUSY,1")
-- Goto (test,s-BUSY,1)
-- Executing [333 at test:1] hangup("SIP/200-00000028", "")
== Spawn extension (test, s-BUSY, 0) exited non-zero on
'SIP/200-00000028'
-- Executing [h at test:1] noop("SIP/200-00000028", "[DEBUG]: extension=
h")
------------------------
As you can see, asterisk by-pass s-BUSY extension.
If make the same logic like standart diaplan - it's work ok.
Attached: extensions.lua - lua logic, extensions.conf - same logic as
standart dialplan.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-03-13 21:55 vfabi New Issue
2011-03-13 21:55 vfabi Asterisk Version => 1.6.2.17
2011-03-13 21:55 vfabi Regression => No
2011-03-13 21:55 vfabi SVN Branch (only for SVN checkouts, not tarball
releases) => N/A
======================================================================
More information about the asterisk-bugs
mailing list