[asterisk-bugs] [Asterisk 0018967]: Do not working lua "app.goto"

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Mar 14 16:59:56 CDT 2011


The following issue has been CLOSED 
====================================================================== 
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:                     closed
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:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-03-13 21:55 CDT
Last Modified:              2011-03-14 16:59 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.

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

---------------------------------------------------------------------- 
 (0132922) tilghman (manager) - 2011-03-14 16:59
 https://issues.asterisk.org/view.php?id=18967#c132922 
---------------------------------------------------------------------- 
Closed at behest of reporter. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-14 16:59 tilghman       Note Added: 0132922                          
2011-03-14 16:59 tilghman       Status                   new => closed       
2011-03-14 16:59 tilghman       Resolution               open => no change
required
======================================================================




More information about the asterisk-bugs mailing list