[asterisk-gui] AST_MAX_HEADER_LEN & SQLite Support

Steven Sokol ssokol at sokol-associates.com
Fri Jan 5 11:13:25 MST 2007


Hi Folks,

I'm working on adding in a new manager command and I seem to be
bumping into the AST_MAX_HEADER_LEN value as defined in manager.h
(256).  My manager command is an interface to the SQLite database and
in some cases SQL statements go over 256 chars.

What's the opinion of "the powers that be" (ie. Mark & Kevin) on
upping the value to, say 1024?

As a more general explanation:  I'm working on putting together the
basis for accessing the CDR log from the GUI.  Now I know that there
are ways to do that using the simple CSV files, but that makes it
quite difficult to search, sort, limit and otherwise massage the data
when displaying it in the GUI.  SQLite version 3 is stable, fast, very
small and can run on anything (including embedded systems).

So this manager command, in conjunction with alamantia's updated
SQLite 3 CDR driver and a new func_sqlite (like func_odbc but for
SQLite 3) go a long way to giving us CDR and user feature control from
the GUI.

(Yes, I know that some of this could be done using the AstDB, but
since we need SQLite for CDRs, why not use it for other stuff at the
same time.)

Thanks,

Steve

-- 
Steven Sokol
CEO
Sokol & Associates, Inc.

Asterisk Training:  http://www.sokol-associates.com/
AstriCon 2007: http://www.astricon.net/


More information about the asterisk-gui mailing list