The solution you mentioned is really no different. The only difference are the following:
1. Different database drivers. Someone just emailed them, see the email after my response in this thread. 2. Slightly different queries, but will be very easy to recode. For Example mySQL pus a";" after a command and MS SQL does not. After you setup the database connection using the database drivers your code will execute in much the way of your friends. Database platforms are interchangeable w/ some tweaking after you have the underlying connection setup. Whether you pass CDR queries or specialized ticket number queries there is nothing extra you have to do. However, you do have to program your system to handle and react to the data you receive. I highly doubt this is something you can get up and running out of the box and will require some custom programming. However, if you can get your friends code, this would not be that hard to port to MS SQL. Steve Wofford www.uctrlit.com P.(949)743-0233 Ext. 200 From: [email protected] [mailto:[email protected]] On Behalf Of Gregory Malsack Sent: Thursday, December 18, 2008 20:08 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Authorize & Microsoft SQL Thanks for the reply Steve. I think you may have given me the idea I need. Here's what I was really going for though. A friend of mine did this same thing as what I am looking to do, however he does this with a mysql database. Here's basically what he does, 1. Reads a string from the caller 2. Check's the string against a mysql database, basically performs a where query on the db, if the number of records returned > 1 he knows there is a match, if not it's a bad code. 3. If the code doesn't match which tells the caller the code is wrong and sends them back to step 1 4. If the code matches, it continues on. According to his dialplan code, mysql database connections and queries can be completed within the dialplan. What I am looking for is if a MS SQL query can be completed within a dialplan just like a mysql query can be. I know there's ODBC options for asterisk, and odbc drivers for MS SQL for linux, so I would think this would be the way to go, but from what I can see it's rather complicated, and like I said in my original post, I'm only finding docs that spell out ODBC connections for CDR not DB queries. So I was hoping someone had already invented this wheel and would be willing to provide insight into this setup. Greg From: [email protected] [mailto:[email protected]] On Behalf Of Steve Wofford Sent: Thursday, December 18, 2008 9:47 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Authorize & Microsoft SQL There is nothing that ties asterisk and MS SQL together. MS SQL is just a database and many Windows base PBX use MS SQL to store CDR amongst many other things. What you do w/ the SQL data is up to you and can do anything really. Can you provide some more information on how this data is go get to the asterisk system? Your asterisk system will need a SQL connection. I am sure there are client libraries for Linux to allow a client to connect to the SQL db. Once you have this connection you can call SQL for authentication using a simple SQL query. You can pass back the results and asterisk can process from there. I am only guessing here, but this is going to be a programming/scripting job. I doubt there is any software that does specifically what you ask. I do tons of Microsoft SQL work so if you can define your requirements and existing infrastructure I am sure we can help point you in the right direction. Steve Wofford www.uctrlit.com P.(949)743-0233 Ext. 200 From: [email protected] [mailto:[email protected]] On Behalf Of Gregory Malsack Sent: Thursday, December 18, 2008 19:37 To: [email protected] Subject: [asterisk-users] Authorize & Microsoft SQL Hello Everyone, I have an installation where the client has a Microsoft SQL database that holds all of their case information. They would like the asterisk system to require users to enter a valid case number when making an outgoing call. I'm seeing some documentation regarding people using Microsoft SQL for CDR storage, however nothing regarding validating authentication using a Microsoft SQL database. Anyone have any suggestions? Thanks, Greg No virus found in this outgoing message. Checked by AVG. Version: 7.5.552 / Virus Database: 270.9.19/1853 - Release Date: 12/17/2008 8:31 AM No virus found in this incoming message. Checked by AVG. Version: 7.5.552 / Virus Database: 270.9.19/1853 - Release Date: 12/17/2008 8:31 AM No virus found in this outgoing message. Checked by AVG. Version: 7.5.552 / Virus Database: 270.9.19/1853 - Release Date: 12/17/2008 8:31 AM
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
