Re: [sr-dev] [kamailio] MS ODBC Driver crashes kamailio on boot (#501)

2016-03-20 Thread Tim Chubb
Its weird it works absolutely fine when i have TLS disabled in kamailio, and is a lot faster than freetds which works alright apart from an occasional hung connection which requires a kamailio restart to recover from (no kamailio processes hang when this happens). It also works fine with any

Re: [sr-dev] [kamailio] MS ODBC Driver crashes kamailio on boot (#501)

2016-03-18 Thread Tim Chubb
Ok, i have pulled the latest commits from master and rebuilt. Here is the backtrace, it appears that latest master no longer emits lock tracing information when debug is set to level 3. No errors or alerts are logged either. Im starting kamailio as root with the following command: `kamailio -f

Re: [sr-dev] [kamailio] MS ODBC Driver crashes kamailio on boot (#501)

2016-03-14 Thread Tim Chubb
Keen to resolve this issue, is there anything else i can do my end to try and trackdown where the deadlock is occurring? --- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/501#issuecomment-196551712___

Re: [sr-dev] [kamailio] MS ODBC Driver crashes kamailio on boot (#501)

2016-02-23 Thread Tim Chubb
Is there any additional analysis i can do on the log files to try and narrow down where the problem lies? --- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/501#issuecomment-187668002___ sr-dev mailing

Re: [sr-dev] [kamailio] PUA issue when UA is not using UDP (#509)

2016-02-16 Thread Tim Chubb
Couldnt you just force the sending socket? Also is the client using TLS as 443 is traditionally the https binding, in which case could you not just append ;transport=tcp or ;transport=tls; on to the $ru or $du pseudo variables? --- Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio] MS ODBC Driver crashes kamailio on boot (#501)

2016-02-13 Thread Tim Chubb
Doh, silly mistake to make, never mind, have rerun with updated table definitions, same behavior, redacted log is attached in a zip as it was over 15Mb uncompressed. [kam-tls-debugging.log.13-02-16.zip](https://github.com/kamailio/kamailio/files/129144/kam-tls-debugging.log.13-02-16.zip) ---

Re: [sr-dev] [kamailio] MS ODBC Driver crashes kamailio on boot (#501)

2016-02-12 Thread Tim Chubb
Sure no worries will post back the results, i have also tested changing the threading model used by UNIXODBC which has had no impact on the issue, so will see what the latest master shows :) --- Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio] MS ODBC Driver crashes kamailio on boot (#501)

2016-02-12 Thread Tim Chubb
Log file is too big for pastebin (8.5Mb) so i have attached it to this post [kam-tls-debugging.log.txt](https://github.com/kamailio/kamailio/files/127835/kam-tls-debugging.log.txt) --- Reply to this email directly or view it on GitHub:

Re: [sr-dev] DB Reconnect behaviour in db_unixodbc module

2016-02-12 Thread Tim Chubb
sip-router.org> Subject: Re: [sr-dev] DB Reconnect behaviour in db_unixodbc module Hello, On 09/02/16 14:05, Tim Chubb wrote: Answer own question, re-read c docs and remember how rust my c skills are... I think the !strncmp was throwing me, to think "if not equal to this or that, the

Re: [sr-dev] [kamailio] MS ODBC Driver crashes kamailio on boot (#501)

2016-02-10 Thread Tim Chubb
Same issue with the ubuntu compiled v13 driver, everything works fine with the tls module disabled, hangs when its enabled. --- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/501#issuecomment-182319382___

Re: [sr-dev] [kamailio] MS ODBC Driver crashes kamailio on boot (#501)

2016-02-10 Thread Tim Chubb
Latest backtrace, made using the ubuntu compiled version of the driver, as frame 19 is the same as previous backtrace included the requested info below. ``` gdb kamailio /core GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3

Re: [sr-dev] [kamailio] MS ODBC Driver crashes kamailio on boot (#501)

2016-02-10 Thread Tim Chubb
Just disabled the TLS module and its working, unfortunatly TLS is a requirement i cannot live without... I wonder if this could be caused by a symlink that has to be created to get this version of the driver to load, as its compiled for redhat (further details here:

Re: [sr-dev] [kamailio] MS ODBC Driver crashes kamailio on boot (#501)

2016-02-09 Thread Tim Chubb
TLS module is loaded, and when i issue the commands you asked for above it displays the connection string, which i cant really share publically. I have also rebuilt the build box in case it was an issue of conflicting versions. Behavious is slightly different now rather than an outright crash

[sr-dev] DB Reconnect behaviour in db_unixodbc module

2016-02-09 Thread Tim Chubb
Hi Can someone explain the reasoning behind not reconnecting when an ODBC error code of '08003' or '08S01' is received back in modules/db_unixodbc/dbase.c? Such as on lines 120 and 121? /* Connection broken */ if( !strncmp((char*)sqlstate,"08003",5) || !strncmp((char*)sqlstate,"08S01",5) ) {

Re: [sr-dev] DB Reconnect behaviour in db_unixodbc module

2016-02-09 Thread Tim Chubb
o why only have 2 out of 6 status's deemed worthy of a reconnect attempt. From: sr-dev [mailto:sr-dev-boun...@lists.sip-router.org] On Behalf Of Tim Chubb Sent: 09 February 2016 12:49 To: Kamailio (SER) - Development Mailing List <sr-dev@lists.sip-router.org> Subject: [sr-dev] DB Rec

Re: [sr-dev] [kamailio] MS ODBC Driver crashes kamailio on boot (#501)

2016-02-08 Thread Tim Chubb
**Backtrace** ``` gdb kamailio /core GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the

[sr-dev] [kamailio] MS ODBC Driver crashes kamailio on boot (#501)

2016-02-07 Thread Tim Chubb
Hi im currently using freetds via unixodbc to connect to a sql azure db which is ok but suffers from various connection busy errors. I would like to use the ms odbc driver as it supports MARS (multiple active result sets) which should stop the connection busy errors, and numerous other sql

Re: [sr-dev] http_query/Curl Async Module : custom http headers feature request

2016-01-27 Thread Tim Chubb
outer.org] On Behalf Of Olle E. Johansson Sent: 27 January 2016 13:56 To: Kamailio (SER) - Development Mailing List Subject: Re: [sr-dev] http_query/Curl Async Module : custom http headers feature request On 27 Jan 2016, at 14:53, Tim Chubb <tim.ch...@voicesimplified.com<mailto:tim.ch...@voi

[sr-dev] http_query/Curl Async Module : custom http headers feature request

2016-01-27 Thread Tim Chubb
Hi Would it be possible to have a means of specifying additional request headers, i.e. things like the Authorization header, so that you would be able to make use of services which use a token based AAA system such as OAuth. >From the cli its trivial to invoke curl with additional headers i.e.

Re: [sr-dev] [SR-Users] How to use unixodbc/freetds for kamailio backend

2014-06-17 Thread Tim Chubb
, Tim Chubb wrote: Hi Im just getting started with kamailio with a view of evaluating it for production use. Is it possible to do the following: 1) I would like to use ODBC/FreeTDS to connect to an existing ms sql server cluster and use it for all DB related activity relating to kamailio