Prezados,<br><br> Recentemente enviei um e-mail sobre crash no servidor asterisk que atua como proxy, agora estou postando um crash que ocorre nos gateways asterisk que possuem o odbc e o freetds. Os gateways fazem a conexão com a pública e gravam as ligações, após inserem no banco MSSQL2K através do odbc os dados da ligação e o nome do arquivo gerado. Abaixo segue o backtrace de uma queda. Se alguém souber alguma coisa que possa ajudar, agradeço.
<br><br>Abraços<br>
Matheus Rossato<br><br>#0 0xb7b1b87f in SQLNumResultCols () from /usr/lib/libodbc.so.1<br><br>(gdb) bt<br><br>#0 0xb7b1b87f in SQLNumResultCols () from /usr/lib/libodbc.so.1<br><br>#1
0xb7556130 in acf_odbc_read (chan=0x849b960, cmd=0xb59e7590
"ODBC_SQL_ITAUUPGRADE_ATIVO", s=0xb59e75ab "002794118", buf=0xb59e6580
"", <br><br> len=4096) at func_odbc.c:255<br><br>#2 0x080c4869 in
ast_func_read (chan=0x849b960, function=0xb59e7590
"ODBC_SQL_ITAUUPGRADE_ATIVO", workspace=0xb59e6580 "", len=4096)<br><br> at pbx.c
:1523<br><br>#3 0x080c4c5f in pbx_substitute_variables<div id="mb_0">_helper_full (c=0x849b960, headp=0x849bd48, <br><br> cp1=0x8348048 "gravacaonew=${${procedure}(${cd_telefone}|${gravacao}|${cd_ligacao}|${status})}", cp2=0xb59eb7d4 "", count=8179)
<br><br> at pbx.c:1641<br><br>#4 0x080c501b in pbx_substitute_variables_helper (c=0x849b960, <br><br> cp1=0x8348048 "gravacaonew=${${procedure}(${cd_telefone}|${gravacao}|${cd_ligacao}|${status})}", cp2=0xb59eb7c8 "gravacaonew=",
<br><br> count=8191) at pbx.c:1723<br><br>#5 0x080c5129 in
pbx_substitute_variables (passdata=0xb59eb7c8 "gravacaonew=",
datalen=8192, c=0x849b960, e=0x83480a0) at pbx.c:1741<br><br>#6
0x080c53b7 in pbx_extension_helper (c=0x849b960, con=0x0,
context=0x849bb84 "macro-ativo_grava_ligacao", exten=0x849bbd4 "s", <br><br> priority=13, label=0x0, callerid=0x843d088 "00228710219236331224002794118002414741", action=E_SPAWN) at pbx.c:1787
<br><br>#7
0x080c69db in ast_spawn_extension (c=0x849b960, context=0x849bb84
"macro-ativo_grava_ligacao", exten=0x849bbd4 "s", priority=13, <br><br> callerid=0x843d088 "00228710219236331224002794118002414741") at pbx.c:2270<br><br>#8 0xb66f288e in _macro_exec (chan=0x849b960, data=0xb59ee00d, exclusive=0) at app_macro.c:240
<br><br>#9 0xb66f305b in macro_exec (chan=0x849b960, data=0xb59ee00d) at app_macro.c:361
<br><br>#10 0x080c1bc1 in pbx_exec (c=0x849b960, app=0x842c5c8, data=0xb59ee00d) at pbx.c:528<br><br>#11 0xb7795647 in dial_exec_full (chan=0x849ac18, data=0xb59f0f48, peerflags=0xb59eedb0, continue_exec=0x0) at app_dial.c:1508
<br><br>#12 0xb7796301 in dial_exec (chan=0x849ac18, data=0xb59f0f48) at app_dial.c:1686<br><br>#13 0x080c1bc1 in pbx_exec (c=0x849ac18, app=0x833a2c8, data=0xb59f0f48) at pbx.c:528<br><br>#14 0x080c55fa in pbx_extension_helper (c=0x849ac18, con=0x0, context=0x849ae3c "ramal-asterisk",
<br><br> exten=0x849ae8c "00228710219236331224002794118002414741", priority=23, label=0x0, callerid=0x85a5358 "8090512", action=E_SPAWN)<br><br> at pbx.c:1815<br><br>#15 0x080c69db in ast_spawn_extension (c=0x849ac18, context=0x849ae3c "ramal-asterisk",
<br><br> exten=0x849ae8c "00228710219236331224002794118002414741", priority=23, callerid=0x85a5358 "8090512") at pbx.c:2270<br><br>#16 0x080c6ea9 in __ast_pbx_run (c=0x849ac18) at pbx.c:2370<br><br>
#17 0x080c7c82 in pbx_thread (data=0x849ac18) at pbx.c:2583<br><br>#18 0x08104c7c in dummy_start (data=0x85f4890) at utils.c:545<br><br>#19 0xb7f3446b in start_thread () from /lib/i686/cmov/libpthread.so.0<br><br>#20 0xb7d4b4de in clone () from /lib/i686/cmov/libc.so.6
</div><br>