[Home]

Summary:ASTERISK-19573: hangup is not detected during call to func_curl within pbx_lua when a SIP caller hangs up
Reporter:Dave Cabot (dcabot)Labels:
Date Opened:2012-03-22 14:30:00Date Closed:2012-03-23 08:10:43
Priority:MajorRegression?
Status:Closed/CompleteComponents:Functions/func_curl PBX/pbx_lua
Versions:1.8.10.1 Frequency of
Occurrence
Constant
Related
Issues:
Environment:CentOS 5.2Attachments:
Description:I'm writing an IVR using LUA.  It's called via pbx_lua/extensions.lua.  During the call a http request is done via func_curl that may take a few seconds to complete.  If during this time the caller hangs up, the hangup extension is not called nor is there any indication from within the LUA script that the caller has hung up (HANGUPCAUSE == 0).
Comments:By: Dave Cabot (dcabot) 2012-03-23 08:10:21.128-0500

There's a nice undocumented feature in pbx_lua whereas it provides a function called check_hangup().  I guess we can close this, although hangups during pbx_lua are inconsistant; sometimes it goes to extension h, other times it just keeps on trucking.