Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] pjsip database error when using MS SQL via ODBC


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
BryantZ at zktech.com
Guest





PostPosted: Fri Oct 16, 2015 12:46 pm    Post subject: [asterisk-users] pjsip database error when using MS SQL via Reply with quote

I have a project that is requiring the use of MS SQL from asterisk. I get an error when the pjsip contact tries to update the contact table.

[Oct 15 21:34:55] WARNING[3033]: res_odbc.c:649 ast_odbc_prepare_and_execute: SQL Execute returned an error -1: 22018: [FreeTDS][SQL Server]Conversion failed when converting the varchar value '3.000000' to data type int. (101)

The datatype in MySQL is integer and in MS SQL is integer. What could be the cause of this? Is it likely some kind of FeeTDS conversion issue? If I change the MS SQL type to double the error goes away, but I am unsure of the long term issues associated with this.

Thanks Bryant Zimmerman (ZK Tech Inc.) 616-855-1030 Ext. 2003
Back to top
mjordan at digium.com
Guest





PostPosted: Sat Oct 17, 2015 11:23 am    Post subject: [asterisk-users] pjsip database error when using MS SQL via Reply with quote

On Fri, Oct 16, 2015 at 12:45 PM, Bryant Zimmerman <BryantZ@zktech.com> wrote:
Quote:
I have a project that is requiring the use of MS SQL from asterisk. I get
an error when the pjsip contact tries to update the contact table.

[Oct 15 21:34:55] WARNING[3033]: res_odbc.c:649
ast_odbc_prepare_and_execute: SQL Execute returned an error -1: 22018:
[FreeTDS][SQL Server]Conversion failed when converting the varchar value
'3.000000' to data type int. (101)

The datatype in MySQL is integer and in MS SQL is integer. What could be the
cause of this? Is it likely some kind of FeeTDS conversion issue? If I
change the MS SQL type to double the error goes away, but I am unsure of the
long term issues associated with this.


Bryant:

There are two columns in the ps_contacts table that currently are
defined with an Integer type - 'qualify_timeout' and
'qualify_frequency'. Which one is currently giving the conversion
error?

Matt

Matthew Jordan
Digium, Inc. | Director of Technology
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services