Summary: | ASTERISK-17551: Do not working lua "app.goto" | ||
Reporter: | vfabi (vfabi) | Labels: | |
Date Opened: | 2011-03-13 21:55:37 | Date Closed: | 2011-06-07 14:00:40 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | PBX/pbx_lua |
Versions: | 1.6.2.17 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ( 0) extensions.conf ( 1) extensions.lua | |
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@test:1] noop("SIP/200-00000028", "[DEBUG]: run extensions.lua") -- Executing [333@test:1] noop("SIP/200-00000028", "[DEBUG]: extension= _X") -- Executing [333@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@test:1] goto("SIP/200-00000028", "s-BUSY,1") -- Goto (test,s-BUSY,1) -- Executing [333@test:1] hangup("SIP/200-00000028", "") == Spawn extension (test, s-BUSY, 0) exited non-zero on 'SIP/200-00000028' -- Executing [h@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. | ||
Comments: | By: vfabi (vfabi) 2011-03-14 00:10:08 [RESOLVED] Sorry, my fault: "app.hangup()" after "app.goto" By: Tilghman Lesher (tilghman) 2011-03-14 16:59:56 Closed at behest of reporter. |