[Asterisk-Dev] MSSQL2000 + cdr_odbc.c fix (WAS: problem with cdr_odbc)

Pablo Endres epablo at comvoz.com
Fri May 21 05:39:39 MST 2004


Now we're talking  ;)

Thanks for the help, patch works A OK.

Pablo

On Thu, 2004-05-20 at 19:25, brian wrote:
> Fixed this one line it should all be good now.,
> 
> SQLBindParameter(ODBC_stmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR,
> sizeof(timestr), 0, &timestr, 0, NULL);
> 
> I had sizeof(&timestr) which was wrong.
> 
> bkw
> 
> > -----Original Message-----
> > From: asterisk-dev-admin at lists.digium.com [mailto:asterisk-dev-
> > admin at lists.digium.com] On Behalf Of brian
> > Sent: Thursday, May 20, 2004 5:43 PM
> > To: asterisk-dev at lists.digium.com
> > Cc: asterisk-users at lists.digium.com
> > Subject: [Asterisk-Dev] MSSQL2000 + cdr_odbc.c fix (WAS: problem with
> > cdr_odbc)
> >
> > http://asterisk.bkw.org/diff/cdr_odbc.diff
> >
> > Now this should fix it the proper way.
> >
> > bkw
> > PS: Thanks for the info klasstek!
> >
> >
> > > -----Original Message-----
> > > From: asterisk-dev-admin at lists.digium.com [mailto:asterisk-dev-
> > > admin at lists.digium.com] On Behalf Of Pablo Endres
> > > Sent: Wednesday, May 19, 2004 3:30 PM
> > > To: asterisk-dev at lists.digium.com
> > > Subject: RE: [Asterisk-Dev] problem with cdr_odbc
> > >
> > > Oka I fixed the problem with cdr_odbc.  Here's what I did:
> > >
> > > I found that there was a problem with the freetds driver to
> > > MSSQL2000 with the datetime and the prepared statements.
> > >
> > > So I rewrote the code using SQLExecDirect in it's place.
> > >
> > > Now how do I summit the code to de CVS?  Maybe just make a patch in the
> > > makefile.. so when you compile for freetds you can use this
> > > version.
> > >
> > > Just an idea.
> > >
> > > Please let me know
> > >
> > > Pablo
> > >
> > >
> > > --
> > > Pablo Endres <epablo at comvoz.com>
> > > ComVoz Comunications
> > >
> > > _______________________________________________
> > > Asterisk-Dev mailing list
> > > Asterisk-Dev at lists.digium.com
> > > http://lists.digium.com/mailman/listinfo/asterisk-dev
> > > To UNSUBSCRIBE or update options visit:
> > >    http://lists.digium.com/mailman/listinfo/asterisk-dev
> >
> >
> > _______________________________________________
> > Asterisk-Dev mailing list
> > Asterisk-Dev at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-dev
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
-- 
Pablo Endres <epablo at comvoz.com>
ComVoz Comunications




More information about the asterisk-dev mailing list