[asterisk-bugs] [Asterisk 0013558]: [patch] pbx_lua does not allow numeric strings as extension numbers

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Sep 25 12:41:20 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13558 
====================================================================== 
Reported By:                mnicholson
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   13558
Category:                   PBX/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.0 
SVN Revision (number only!): 144150 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-09-25 11:32 CDT
Last Modified:              2008-09-25 12:41 CDT
====================================================================== 
Summary:                    [patch] pbx_lua does not allow numeric strings as
extension numbers
Description: 
If you put a numeric string as the extension number in a pbx_lua extension,
pbx_lua will fail to execute the extension claiming it attempted to execute
a nil value.  This patch fixes that.
====================================================================== 

---------------------------------------------------------------------- 
 (0092866) svnbot (reporter) - 2008-09-25 12:41
 http://bugs.digium.com/view.php?id=13558#c92866 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 144482

U   trunk/pbx/pbx_lua.c

------------------------------------------------------------------------
r144482 | murf | 2008-09-25 12:41:18 -0500 (Thu, 25 Sep 2008) | 14 lines

(closes issue http://bugs.digium.com/view.php?id=13558)
Reported by: mnicholson

Considering that the example extensions.lua used nothing but ["12345"]
notation,
and that the resulting error message: 

[Sep 24 17:01:16] ERROR[12393]: pbx_lua.c:1204 exec: Error executing lua
extension: attempt to call a nil value

is not very informative as to the nature of the problem, I think this bug
fix is a big win!




------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=144482 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-25 12:41 svnbot         Checkin                                      
2008-09-25 12:41 svnbot         Note Added: 0092866                          
======================================================================




More information about the asterisk-bugs mailing list