Preferred method for mysql database interaction.

General discussions about Asterisk.

Moderators: Moderator, Support

Preferred method for mysql database interaction.

Postby joelshas » Mon Dec 13, 2010 8:34 am

I would like to have Asterisk interact with a mysql database on my LAN via the dialplan. What is the most efficient way of doing this. Currently I am going the Perl/AGI route. What about ODBC? Is ODBC much slower and what are the pros/cons? I happen to be using Asterisk 1.8, does that mean I can just use the "app_mysql" to interact with a database now and not have to resort to an AGI script?

Thanks. Joel
joelshas
Newsterisk
 
Posts: 8
Joined: Mon Dec 13, 2010 8:31 am

Re: Preferred method for mysql database interaction.

Postby malcolmd » Mon Dec 13, 2010 8:42 am

The ODBC connector is the preferred method for connecting to DBs.
malcolmd
Moves Like Spencer
 
Posts: 2204
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: Preferred method for mysql database interaction.

Postby joelshas » Tue Dec 14, 2010 12:56 pm

Why is that? Doesn't performance take a hit when there is the added ODBC layer?
joelshas
Newsterisk
 
Posts: 8
Joined: Mon Dec 13, 2010 8:31 am

Re: Preferred method for mysql database interaction.

Postby malcolmd » Tue Dec 14, 2010 1:07 pm

It's additional overhead, yes, but the overhead from moving around VoIP calls is generally the thing that's going to eat the most resources on a system.

The ODBC connector is the one that's preferred because it's the easiest one for us to support - they're doing all of the abstraction to other DBs for us, so we don't have to worry about the intricacies.
malcolmd
Moves Like Spencer
 
Posts: 2204
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: Preferred method for mysql database interaction.

Postby joelshas » Wed Dec 15, 2010 9:16 am

Ahh. Ok thanks for the response.
joelshas
Newsterisk
 
Posts: 8
Joined: Mon Dec 13, 2010 8:31 am


Return to Asterisk General

Who is online

Users browsing this forum: franku2013 and 6 guests