Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189449 - net-misc/asterisk-1.2.21.1 does not work with odbc
Summary: net-misc/asterisk-1.2.21.1 does not work with odbc
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-19 11:57 UTC by Miroslav Šulc
Modified: 2009-04-16 15:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2007-08-19 11:57:16 UTC
I have problem running asterisk 1.2.21.1 with unixODBC (2.2.12). asterisk-1.2.17  works fine but 1.2.21.1 not:

Aug 19 13:44:57 NOTICE[14133] res_odbc.c: registered database handle 'asterisk' dsn->[asterisk]
Aug 19 13:44:57 NOTICE[14133] res_odbc.c: Connecting asterisk
Aug 19 13:44:57 NOTICE[14133] res_odbc.c: res_odbc: Connected to asterisk [asterisk]
Aug 19 13:44:57 NOTICE[14133] res_odbc.c: res_odbc loaded.
Aug 19 13:44:57 NOTICE[14133] config.c: Registered Config Engine odbc
Aug 19 13:45:04 WARNING[14170] res_odbc.c: SQL Execute returned an error -1: 01000: [unixODBC]Error while executing the query (non-fatal);
ERROR:  syntax error at or near "ESCAPE" at character 125 (112)

After this asterisk crashes. It's on x86.

I also saw this bug on another installation of asterisk-1.2.21.1 where the issued SQL command contained at the end of the command 'ESCAPE' and some char, not sure if it was '\'' or something different. This was on amd64. These are both production servers so I didn't have enough time to play with it.

If you need more info then please let me know.
Comment 1 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-04-16 15:05:23 UTC
Reassigning to chainsaw as he is now the asterisk maintainer.
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2009-04-16 15:50:09 UTC
Sorry, this bug report is incomplete and I can not act on it. Please file a new bug if you still have problems using ODBC on Asterisk 1.2.32 which is currently in the tree.
Your new bug will have to include emerge --info and at least a snippet of the relevant configuration file so I can reproduce the bug.