[asterisk-users] a simple Asterisk AMI interface with Delphi (or Lazarus+FreePascal)

Gerald Harshany gerh at jerryh.us
Tue Aug 5 00:55:30 CDT 2008


Hi Everyone,

  Those of you who have a simple home-based Asterisk box might 
be interested in a "simple" Win32 (Win2K or WinXP) interface to 
the AMI manager.  The quick-start versions merely require 
unzipping with NO Installation - hence, NO Uninstall (i.e., no 
registry writes at any time by the install nor by the program).

  (Unfortunately) the INSTALL version does write to the registry 
due to the database licensing requirements.  Would suggest that 
you download the PDF and, if interested, (or if you hate to read 
manuals, just ), download the quick-start version which only 
requires 3 settings in Asterisk's manager.conf file (the user name, 
the password, and the read/write privileges - program defaults to 
the 5038 port).

  The program was really written as a nostalgic cruise down the old 
Pascal OOP thruway, and not as a contender to the likes of FOP, 
etc.  Pascal has nice features such as declaring any of your 
functions "inline"; or for that matter writing inline Assembler code 
which was "the" language in the '70s (that is the 1900's, by the 
way).  The Win2K version was compiled on an old Delphi 5 
compiler (and for you young'uns, that was circa 1999 when Win2K 
was unveiled).  However, fear not, the WinXP version was 
compiled with the latest Delphi 2007 R2.  However, I did NOT 
insert some required Vista enabling statements (such as for the 
glass effect), since I have no interest in testing it (yet) in Vista; so, 
the XP version may or may not function well in XP compatibility 
mode within Vista.

  As for my Subject - Is anyone in this Asterisk group doing 
anything using Lazarus and FreePascal for the Asterisk box?  The 
FreePascal compiler is a "total" (and, yes, an open source work in 
progress) cross-platform compiler.  What I mean is, it can compile 
for Win, Mac, and Linux, but also for about half a dozen CPU's. 
The documentation for the compiler is an outstanding example for 
open-source projects.

Downloads and info at:  http://www.jerryh.us/Downloads/amifiles.htm

Gerald Harshany, Ph.D.
Professor Emeritus of Mathematics

And again, for you young'uns, "Emeritus" simply means "ancient" :)





More information about the asterisk-users mailing list