#0 0x00002aaaaf6ce0c2 in SQLCloseCursor () from /usr/lib64/libodbc.so.1 (gdb) bt full #0 0x00002aaaaf6ce0c2 in SQLCloseCursor () from /usr/lib64/libodbc.so.1 No symbol table info available. #1 0x00002aaab46234f3 in acf_odbc_read (chan=0x2aaab0d82900, cmd=0x415ff4c0 "MINIXEL_ROUTING", s=0x415ff4d0 "13579966661", buf=0x415ff5b0 ",0,,,", len=4096) from /usr/lib/asterisk/modules/func_odbc.so obj = (struct odbc_obj *) 0x7635658 query = (struct acf_odbc_query *) 0x2aaab008ddd0 sql = "execute permdb.dbo.XRoutingX '13579966661','3579955532','128'\000\000\000\200_A\000\000\000\000_A\000\000\000\000\030\000\000\0000\000\000\000P_A\000\000\000\000\220_A\000\000\000\000_A\000\000\000\0000_A8101\000_A\000\000\000\000\030\000\000\0000\000\000\000\200_A\000\000\000\000_A\000\000\000\000m\a\000\000\000\000\030\000\000\0000\000\000\000_A\000\000\000\000\030\000\000\0000\000\000\000_A\000\000\000\000_A\000\000\000\000"... varname = "ARG3\000\000\000\000_A\000\000" colnames = "IPLIST,Z,ForceAni,CLIST,PLIST", '\0' rowcount = "1\000\000\000\000\000\000\000\000\000\000" res = 0 x = 5 y = 1 buflen = 6 escapecommas = 1 rowlimit = 1 dsn = 0 bogus_chan = 0 args = {argc = 3, argv = 0x415fe0e8, field = {0x415ff4d0 "13579966661", 0x415ff4dc "3579955532", 0x415ff4e7 "128", 0x0 }} stmt = (SQLHSTMT) 0x83cb690 colcount = 5 indicator = 0 collength = 5 resultset = (struct odbc_datastore *) 0x0 row = (struct odbc_datastore_row *) 0x0 __PRETTY_FUNCTION__ = "acf_odbc_read" #2 0x00000000004af366 in ast_func_read (chan=0x2aaab0d82900, function=0x416005c0 "MINIXEL_ROUTING(13579966661,3579955532,128)", workspace=0x415ff5b0 ",0,,,", len=4096) at pbx.c:2641 res = 0 u = (struct ast_module_user *) 0x95d34c0 copy = 0x415ff4c0 "MINIXEL_ROUTING" args = 0x415ff4d0 "13579966661" acfptr = (struct ast_custom_function *) 0x2aaab008c190 __PRETTY_FUNCTION__ = "ast_func_read" #3 0x00000000004af927 in pbx_substitute_variables_helper_full (c=0x2aaab0d82900, headp=0x2aaab0d82d48, cp1=0x7957d80 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=${MINIXEL_ROUTING(${EXTEN},${anix},${X})}", cp2=0x41604926 "", count=8153) at pbx.c:2775 cp4 = 0x0 tmp = 0x7957d80 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=${MINIXEL_ROUTING(${EXTEN},${anix},${X})}" whereweare = 0x7957dcf "" length = 0 offset = 0 offset2 = 2147483647 isfunction = 1 workspace = 0x415ff5b0 ",0,,," ltmp = 0x416005c0 "MINIXEL_ROUTING(13579966661,3579955532,128)" var = 0x416015d0 "MINIXEL_ROUTING(${EXTEN},${anix},${X})" nextvar = 0x7957da6 "${MINIXEL_ROUTING(${EXTEN},${anix},${X})}" nextexp = 0x0 nextthing = 0x7957da6 "${MINIXEL_ROUTING(${EXTEN},${anix},${X})}" vars = 0x416005c0 "MINIXEL_ROUTING(13579966661,3579955532,128)" vare = 0x7957dcf "" pos = 38 brackets = 0 needsub = 3 len = 38 __PRETTY_FUNCTION__ = "pbx_substitute_variables_helper_full" #4 0x00000000004afef7 in pbx_substitute_variables_helper (c=0x2aaab0d82900, cp1=0x7957d80 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=${MINIXEL_ROUTING(${EXTEN},${anix},${X})}", cp2=0x41604900 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=", count=8191) at pbx.c:2867 No locals. #5 0x00000000004affd1 in pbx_substitute_variables (passdata=0x41604900 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=", datalen=8192, c=0x2aaab0d82900, e=0x7706b30) at pbx.c:2889 tmp = 0x7957da6 "${MINIXEL_ROUTING(${EXTEN},${anix},${X})}" ---Type to continue, or q to quit--- #6 0x00000000004b0255 in pbx_extension_helper (c=0x2aaab0d82900, con=0x0, context=0x2aaab0d82b60 "default", exten=0x2aaab0d82bb0 "13579966661", priority=1, label=0x0, callerid=0x8600230 "3579955532", action=E_SPAWN, found=0x41606fb4, combined_find_spawn=1) at pbx.c:2951 e = (struct ast_exten *) 0x7706b30 app = (struct ast_app *) 0x76132c0 res = 1096838576 q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x2aaab0d82b60 "default"} passdata = "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=\000ip:3579955532@20@67.110.179.253>;party=calling;screen=no;privacy=off\000a91b1860875_c0.005320d0.005320e0f18608757396x1,g90h1860875_i0.004000j0-g100h1860875_i0.00450"... matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #7 0x00000000004b1a61 in ast_spawn_extension (c=0x2aaab0d82900, context=0x2aaab0d82b60 "default", exten=0x2aaab0d82bb0 "13579966661", priority=1, callerid=0x8600230 "3579955532", found=0x41606fb4, combined_find_spawn=1) at pbx.c:3449 No locals. #8 0x00000000004b2280 in __ast_pbx_run (c=0x2aaab0d82900) at pbx.c:3550 digit = 0 invalid = 0 timeout = 0 dst_exten = '\0' , "p`A", '\0' , "o`A\000\000\000\000o`A\000\000\000\000\000p`A\000\000\000\000\bp`A\000\000\000\000p`A", '\0' , "q`A\000\000\000\000\"F*", '\0' , "0\"F*\000\000\000\000\000\000\000\000\000@", '\0' , "\030\000\000\000\000\000\000\000o`A", '\0' , "o`A", '\0' pos = 0 found = 1 res = 0 autoloopflag = 0 error = 0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #9 0x00000000004b37dc in pbx_thread (data=0x2aaab0d82900) at pbx.c:3830 c = (struct ast_channel *) 0x2aaab0d82900 #10 0x0000000000500eb6 in dummy_start (data=0x2aaab083d960) at utils.c:928 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, -8625629087029348776, 0, 1096841536, 1075953664, 4096, -8625629087029348712, -8625629085971330859}, __mask_was_saved = 0}}, __pad = { 0x41607190, 0x0, 0x7a1a460, 0x0}} __cancel_routine = (void (*)(void *)) 0x42b68d __cancel_arg = (void *) 0x41607940 not_first_call = 0 ret = (void *) 0x2aaaadcfa888 a = {start_routine = 0x4b37bf , data = 0x2aaab0d82900, name = 0x2aaab0b6bc90 "pbx_thread", ' ' , "started at [ 3851] pbx.c ast_pbx_start()"} #11 0x00002aaaab4622f7 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #12 0x00002aaaada8285d in clone () from /lib64/libc.so.6 No symbol table info available. (g