[Asterisk-Dev] very simple ODBC application

Robert Hanzlik robi at junyks.cz
Tue Aug 24 15:41:06 MST 2004


I coded a new Asterisk application called ODBCexec. There are only two
commands for extensions.conf usage:

ODBCexec(sql_statement)
Executes a sql_statement in default database. Always returns 0. If the
sql_statement fails, jumps to priority n+101 if available.

ODBCquery(value=query)
Retrieves a value from the database query and stores it in the given
variable. Always returns 0. If the query fails, jumps to priority n+101
if available.

As I have seen some flamewars about this theme, but I need no flamewar,
but working piece of code, here is it.

http://asterisk.junyks.cz

Regards
	Robi

Robert Hanzlik
JUNyKS servis
http://servis.junyks.cz





More information about the asterisk-dev mailing list