(gdb) bt #0 0xb6f5ab37 in SQLNumResultCols () from /usr/lib/libodbc.so.1 #1 0xb6ecb472 in acf_odbc_read (chan=0xb6615c78, cmd=0xb675bbf0 "MINIXEL_ROUTING", s=0xb675bc00 "S208-1192470913.55", buf=0xb675bca0 "", len=4096) at func_odbc.c:312 #2 0x080c8673 in ast_func_read (chan=0xb6615c78, function=0xb675ccb0 "MINIXEL_ROUTING(S208-1192470913.55,209.237.252.94,14178207100,3145696000,\"\")", workspace=0xb675bca0 "", len=4096) at pbx.c:1586 #3 0x080c8b38 in pbx_substitute_variables_helper_full (c=0xb6615c78, headp=0xb6615fc4, cp1=0x823eb68 "ARRAY(ANI,X,Nohunt,Delay)=${MINIXEL_ROUTING(${UNIQUEID},${SIPIP},${EXTEN},${anix},${cnum})}", cp2=0xb6762f8a "", count=8165) at pbx.c:1718 #4 0x080c9038 in pbx_substitute_variables_helper (c=0xb6615c78, cp1=0x823eb68 "ARRAY(ANI,X,Nohunt,Delay)=${MINIXEL_ROUTING(${UNIQUEID},${SIPIP},${EXTEN},${anix},${cnum})}", cp2=0xb6762f70 "ARRAY(ANI,X,Nohunt,Delay)=", count=8191) at pbx.c:1810 #5 0x080c9141 in pbx_substitute_variables (passdata=0xb6762f70 "ARRAY(ANI,X,Nohunt,Delay)=", datalen=8192, c=0xb6615c78, e=0x823ebc8) at pbx.c:1828 #6 0x080c9349 in pbx_extension_helper (c=0xb6615c78, con=0x0, context=0xb6615e00 "default", exten=0xb6615e50 "14178207100", priority=12, label=0x0, callerid=0xb66018b8 "3145696000", action=E_SPAWN) at pbx.c:1878 #7 0x080ca92b in ast_spawn_extension (c=0xb6615c78, context=0xb6615e00 "default", exten=0xb6615e50 "14178207100", priority=12, callerid=0xb66018b8 "3145696000") at pbx.c:2397 #8 0x080cae7d in __ast_pbx_run (c=0xb6615c78) at pbx.c:2496 #9 0x080cc163 in pbx_thread (data=0xb6615c78) at pbx.c:2752 #10 0x0810b42f in dummy_start (data=0x82811f8) at utils.c:807 #11 0xb7eaa3cc in start_thread () from /lib/tls/libpthread.so.0 #12 0xb71ffc3e in clone () from /lib/tls/libc.so.6 -----------------------------bt full (gdb) bt full #0 0xb6f5ab37 in SQLNumResultCols () from /usr/lib/libodbc.so.1 No symbol table info available. #1 0xb6ecb472 in acf_odbc_read (chan=0xb6615c78, cmd=0xb675bbf0 "MINIXEL_ROUTING", s=0xb675bc00 "S208-1192470913.55", buf=0xb675bca0 "", len=4096) at func_odbc.c:312 obj = (struct odbc_obj *) 0x81999b8 query = (struct acf_odbc_query *) 0x81dff10 sql = "execute Routing 'S208-1192470913.55','209.237.252.94','14178207100','3145696000',''", '\0' varname = "ARG5\000ìu¶\000\000\000\000oìu" colnames = '\0' rowcount = "-1\000\000\000\000\000\000\000\000\000" res = 135032529 x = 5 y = 135734564 buflen = 0 escapecommas = 1 rowlimit = 1 dsn = 0 args = {argc = 5, argv = 0xb675a9d4, field = {0xb675bc00 "S208-1192470913.55", 0xb675bc13 "209.237.252.94", 0xb675bc22 "14178207100", 0xb675bc2e "3145696000", 0xb675bc39 "", 0x0 }} stmt = 0xb6618468 colcount = 0 indicator = 2 collength = 5 resultset = (struct odbc_datastore *) 0x0 row = (struct odbc_datastore_row *) 0x0 __PRETTY_FUNCTION__ = "acf_odbc_read" #2 0x080c8673 in ast_func_read (chan=0xb6615c78, function=0xb675ccb0 "MINIXEL_ROUTING(S208-1192470913.55,209.237.252.94,14178207100,3145696000,\"\")", workspace=0xb675bca0 "", len=4096) at pbx.c:1586 res = -1233793872 u = (struct ast_module_user *) 0xb6615ab0 copy = 0xb675bbf0 "MINIXEL_ROUTING" args = 0xb675bc00 "S208-1192470913.55" acfptr = (struct ast_custom_function *) 0x81af3d8 __PRETTY_FUNCTION__ = "ast_func_read" #3 0x080c8b38 in pbx_substitute_variables_helper_full (c=0xb6615c78, headp=0xb6615fc4, cp1=0x823eb68 "ARRAY(ANI,X,Nohunt,Delay)=${MINIXEL_ROUTING(${UNIQUEID},${SIPIP},${EXTEN},${anix},${cnum})}", cp2=0xb6762f8a "", count=8165) at pbx.c:1718 cp4 = 0x0 tmp = 0x823eb68 "ARRAY(ANI,X,Nohunt,Delay)=${MINIXEL_ROUTING(${UNIQUEID},${SIPIP},${EXTEN},${anix},${cnum})}" whereweare = 0x823ebc3 "" length = 0 offset = 0 offset2 = 2147483647 isfunction = 1 workspace = 0xb675bca0 "" ---Type to continue, or q to quit--- ltmp = 0xb675ccb0 "MINIXEL_ROUTING(S208-1192470913.55,209.237.252.94,14178207100,3145696000,\"\")" var = 0xb675dcc0 "MINIXEL_ROUTING(${UNIQUEID},${SIPIP},${EXTEN},${anix},${cnum})" nextvar = 0x823eb82 "${MINIXEL_ROUTING(${UNIQUEID},${SIPIP},${EXTEN},${anix},${cnum})}" nextexp = 0x0 nextthing = 0x823eb82 "${MINIXEL_ROUTING(${UNIQUEID},${SIPIP},${EXTEN},${anix},${cnum})}" vars = 0xb675ccb0 "MINIXEL_ROUTING(S208-1192470913.55,209.237.252.94,14178207100,3145696000,\"\")" vare = 0x823ebc3 "" pos = 26 brackets = 0 needsub = 5 len = 62 __PRETTY_FUNCTION__ = "pbx_substitute_variables_helper_full" #4 0x080c9038 in pbx_substitute_variables_helper (c=0xb6615c78, cp1=0x823eb68 "ARRAY(ANI,X,Nohunt,Delay)=${MINIXEL_ROUTING(${UNIQUEID},${SIPIP},${EXTEN},${anix},${cnum})}", cp2=0xb6762f70 "ARRAY(ANI,X,Nohunt,Delay)=", count=8191) at pbx.c:1810 No locals. #5 0x080c9141 in pbx_substitute_variables (passdata=0xb6762f70 "ARRAY(ANI,X,Nohunt,Delay)=", datalen=8192, c=0xb6615c78, e=0x823ebc8) at pbx.c:1828 No locals. #6 0x080c9349 in pbx_extension_helper (c=0xb6615c78, con=0x0, context=0xb6615e00 "default", exten=0xb6615e50 "14178207100", priority=12, label=0x0, callerid=0xb66018b8 "3145696000", action=E_SPAWN) at pbx.c:1878 e = (struct ast_exten *) 0x823ebc8 app = (struct ast_app *) 0x81e1bb0 res = 8 q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0xb6615e00 "default"} passdata = "ARRAY(ANI,X,Nohunt,Delay)=", '\0' matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #7 0x080ca92b in ast_spawn_extension (c=0xb6615c78, context=0xb6615e00 "default", exten=0xb6615e50 "14178207100", priority=12, callerid=0xb66018b8 "3145696000") at pbx.c:2397 No locals. #8 0x080cae7d in __ast_pbx_run (c=0xb6615c78) at pbx.c:2496 dst_exten = "\020Sv¶LSv¶\000\000\000\000XSv¶\030Sv¶\034Sv¶\\Sv¶", '\0' , "`Sv¶tÁ\f\b\000\000\000\000\000\000\000\000ô?ë·0°ê·", '\0' , "\fSv¶\000\000\000\000\020Sv¶\024Sv¶\000\000\000\000 Sv¶\030Sv¶H\b&·D\215\031·\020\000\000\000\000\000\000\000°\203\031·\000\000\000\000\f\000\000\000ôï%·\f\000\000\000@\b&·\bSv¶V´\031·@\b&·\f\000\000\000\000\000\000\000@\232\001\000\f\000\000\000À\025,\bô?ë·\000\000\000\000\000\000\000\0008Sv¶¹£\020\b\001\000\000\000\f", '\0' ... pos = 0 digit = 0 found = 1 res = 0 autoloopflag = 0 error = 0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #9 0x080cc163 in pbx_thread (data=0xb6615c78) at pbx.c:2752 c = (struct ast_channel *) 0xb6615c78 #10 0x0810b42f in dummy_start (data=0x82811f8) at utils.c:807 ---Type to continue, or q to quit--- _buffer = {__routine = 0x806ba7d , __arg = 0xb6765ba0, __canceltype = -1233759288, __prev = 0x0} ret = (void *) 0xb725d6f4 a = {start_routine = 0x80cc14c , data = 0xb6615c78, name = 0x8283970 "pbx_thread", ' ' , "started at [ 2773] pbx.c ast_pbx_start()"} #11 0xb7eaa3cc in start_thread () from /lib/tls/libpthread.so.0 No symbol table info available. #12 0xb71ffc3e in clone () from /lib/tls/libc.so.6 No symbol table info available. -----------------------------------