#0 0x00002aaaab98ba9b in odbc_populate_ird (stmt=0x17f37100) at odbc.c:2737 2737 num_cols = res_info->num_cols; (gdb) bt #0 0x00002aaaab98ba9b in odbc_populate_ird (stmt=0x17f37100) at odbc.c:2737 #1 0x00002aaaab98cda0 in _SQLExecute (stmt=0x17f37100) at odbc.c:3189 #2 0x00002aaaab98cf74 in SQLExecDirect (hstmt=0x17f37100, szSqlStr=0x17b35718 "execute router.dbo.XRoutingX '17145972432','6462742874',356,'g729'", cbSqlStr=-3) at odbc.c:3233 #3 0x00002aaaaacd1cf2 in SQLExecDirect (statement_handle=0x18288e80, statement_text=0x17b35718 "execute router.dbo.XRoutingX '17145972432','6462742874',356,'g729'", text_length=-3) at SQLExecDirect.c:417 #4 0x00002aaaac0072cd in generic_execute (obj=0x2aaab42bbf98, data=0x17b35718) at func_odbc.c:116 #5 0x00002aaaaaab0b57 in ast_odbc_direct_execute (obj=0x2aaab42bbf98, exec_cb=0x2aaaac00724a , data=0x17b35718) at res_odbc.c:277 #6 0x00002aaaac008166 in acf_odbc_read (chan=0x17c3d190, cmd=0x42df9460 "MINIXEL_GOMIRROR", s=0x42df9471 "17145972432", buf=0x42df9580 "", len=4096) at func_odbc.c:342 #7 0x00000000004c0360 in ast_func_read (chan=0x17c3d190, function=0x42dfa590 "MINIXEL_GOMIRROR(17145972432,6462742874,356,g729)", workspace=0x42df9580 "", len=4096) at pbx.c:2887 #8 0x00000000004c0921 in pbx_substitute_variables_helper_full (c=0x17c3d190, headp=0x17c3d390, cp1=0x185cfb70 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}", cp2=0x42dfe930 "", count=8143) at pbx.c:3021 #9 0x00000000004c0f0d in pbx_substitute_variables_helper (c=0x17c3d190, cp1=0x185cfb70 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}", cp2=0x42dfe900 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=", count=8191) at pbx.c:3113 #10 0x00000000004c0ff0 in pbx_substitute_variables (passdata=0x42dfe900 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=", datalen=8192, c=0x17c3d190, e=0x185cfbe0) at pbx.c:3137 #11 0x00000000004c1274 in pbx_extension_helper (c=0x17c3d190, con=0x0, context=0x17c3d550 "defaultproc", exten=0x17c3d5a0 "17145972432", priority=1, label=0x0, callerid=0x17cb8f30 "6462742874", action=E_SPAWN, found=0x42e00fe4, combined_find_spawn=1) at pbx.c:3199 #12 0x00000000004c2b20 in ast_spawn_extension (c=0x17c3d190, context=0x17c3d550 "defaultproc", exten=0x17c3d5a0 "17145972432", priority=1, callerid=0x17cb8f30 "6462742874", found=0x42e00fe4, combined_find_spawn=1) at pbx.c:3678 #13 0x00000000004c328d in __ast_pbx_run (c=0x17c3d190, args=0x0) at pbx.c:3771 #14 0x00000000004c482a in pbx_thread (data=0x17c3d190) at pbx.c:4058 #15 0x0000000000519a52 in dummy_start (data=0x17cf49f0) at utils.c:968 #16 0x00000034cd806367 in start_thread () from /lib64/libpthread.so.0 #17 0x00000034cd0d2f7d in clone () from /lib64/libc.so.6 (gdb) bt full #0 0x00002aaaab98ba9b in odbc_populate_ird (stmt=0x17f37100) at odbc.c:2737 ird = (TDS_DESC *) 0x180afe00 drec = (struct _drecord *) 0x0 col = (TDSCOLUMN *) 0xfd000000003 res_info = (TDSRESULTINFO *) 0x100000001 num_cols = 26900 i = 401830144 #1 0x00002aaaab98cda0 in _SQLExecute (stmt=0x17f37100) at odbc.c:3189 ret = 1 tds = (TDSSOCKET *) 0x17c3d9d0 result_type = 4048 done = 1 in_row = 0 param_status = 0 found_info = 0 found_error = 0 #2 0x00002aaaab98cf74 in SQLExecDirect (hstmt=0x17f37100, szSqlStr=0x17b35718 "execute router.dbo.XRoutingX '17145972432','6462742874',356,'g729'", cbSqlStr=-3) at odbc.c:3233 res = 0 stmt = (TDS_STMT *) 0x17f37100 #3 0x00002aaaaacd1cf2 in SQLExecDirect (statement_handle=0x18288e80, statement_text=0x17b35718 "execute router.dbo.XRoutingX '17145972432','6462742874',356,'g729'", text_length=-3) at SQLExecDirect.c:417 statement = (DMHSTMT) 0x18288e80 ret = 0 s1 = (SQLCHAR *) 0x17c0d950 "ZK" s2 = "\000\215ßB\001\000\000\000x¿+´ª*\000\000 \215ßB\000\000\000\000;¾C\000\000\000\000\000 ­«\027\000\000\000\000è­«\027\000\000\000\000pÆ«\027ÿÿÿÿÈ­«\027\000\000\000\000P\215ßB\000\000\000\000;¾C\000\000\000\000\000P\215ßB\000\000\000\000\t»C", '\0' , "\035¶\bÍ4\000\000\000 ­«\027\000\000\000\000\224\206Q\000\000\000\000\000@FÞ\027\000\000\000\000Ñ´\v\000\000\000\000\000\027 ÙK\000\000\000\000ký\v\000\000\000\000\000\027 ÙK\000\000\000\000PÙÀ\027\000\000\000\000\200\216(\030\000\000\000\000\224#«ªª*\000\000p\216ßB\000\000\000\000\230¿+"... #4 0x00002aaaac0072cd in generic_execute (obj=0x2aaab42bbf98, data=0x17b35718) at func_odbc.c:116 res = 0 sql = 0x17b35718 "execute router.dbo.XRoutingX '17145972432','6462742874',356,'g729'" stmt = (SQLHSTMT) 0x18288e80 __PRETTY_FUNCTION__ = "generic_execute" #5 0x00002aaaaaab0b57 in ast_odbc_direct_execute (obj=0x2aaab42bbf98, exec_cb=0x2aaaac00724a , data=0x17b35718) at res_odbc.c:277 attempt = 0 stmt = (SQLHSTMT) 0x0 __PRETTY_FUNCTION__ = "ast_odbc_direct_execute" #6 0x00002aaaac008166 in acf_odbc_read (chan=0x17c3d190, cmd=0x42df9460 "MINIXEL_GOMIRROR", s=0x42df9471 "17145972432", buf=0x42df9580 "", len=4096) at func_odbc.c:342 obj = (struct odbc_obj *) 0x2aaab42bbf98 query = (struct acf_odbc_query *) 0x17bc54c0 varname = "ARG4\000\000\000\000PBJ\000\000\000" rowcount = "-1\000\000\000\000\000\000\000\000\000" colnames = (struct ast_str *) 0x17b0cee0 res = 1121948688 x = 4 y = 4877015 buflen = 0 escapecommas = 1 ---Type to continue, or q to quit--- rowlimit = 1 dsn = 0 bogus_chan = 0 args = {argc = 4, argv = 0x42df9098, field = {0x42df9471 "17145972432", 0x42df947d "6462742874", 0x42df9488 "356", 0x42df948c "g729", 0x0 }} stmt = (SQLHSTMT) 0x0 colcount = 0 indicator = 226786075760 collength = 0 resultset = (struct odbc_datastore *) 0x0 row = (struct odbc_datastore_row *) 0x0 sql = (struct ast_str *) 0x17b35700 __PRETTY_FUNCTION__ = "acf_odbc_read" __FUNCTION__ = "acf_odbc_read" #7 0x00000000004c0360 in ast_func_read (chan=0x17c3d190, function=0x42dfa590 "MINIXEL_GOMIRROR(17145972432,6462742874,356,g729)", workspace=0x42df9580 "", len=4096) at pbx.c:2887 res = 0 u = (struct ast_module_user *) 0x17f66d40 copy = 0x42df9460 "MINIXEL_GOMIRROR" args = 0x42df9471 "17145972432" acfptr = (struct ast_custom_function *) 0x17aa3e50 __PRETTY_FUNCTION__ = "ast_func_read" #8 0x00000000004c0921 in pbx_substitute_variables_helper_full (c=0x17c3d190, headp=0x17c3d390, cp1=0x185cfb70 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}", cp2=0x42dfe930 "", count=8143) at pbx.c:3021 cp4 = 0x0 tmp = 0x185cfb70 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}" whereweare = 0x185cfbd3 "" length = 0 offset = 0 offset2 = 2147483647 isfunction = 1 workspace = 0x42df9580 "" ltmp = 0x42dfa590 "MINIXEL_GOMIRROR(17145972432,6462742874,356,g729)" var = 0x42dfb5a0 "MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})" nextvar = 0x185cfba0 "${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}" nextexp = 0x0 nextthing = 0x185cfba0 "${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}" vars = 0x42dfa590 "MINIXEL_GOMIRROR(17145972432,6462742874,356,g729)" vare = 0x185cfbd3 "" pos = 48 brackets = 0 needsub = 4 len = 48 __PRETTY_FUNCTION__ = "pbx_substitute_variables_helper_full" __func__ = "pbx_substitute_variables_helper_full" #9 0x00000000004c0f0d in pbx_substitute_variables_helper (c=0x17c3d190, cp1=0x185cfb70 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}", cp2=0x42dfe900 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=", count=8191) at pbx.c:3113 No locals. #10 0x00000000004c0ff0 in pbx_substitute_variables (passdata=0x42dfe900 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=", datalen=8192, c=0x17c3d190, e=0x185cfbe0) at pbx.c:3137 ---Type to continue, or q to quit--- tmp = 0x185cfba0 "${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}" #11 0x00000000004c1274 in pbx_extension_helper (c=0x17c3d190, con=0x0, context=0x17c3d550 "defaultproc", exten=0x17c3d5a0 "17145972432", priority=1, label=0x0, callerid=0x17cb8f30 "6462742874", action=E_SPAWN, found=0x42e00fe4, combined_find_spawn=1) at pbx.c:3199 e = (struct ast_exten *) 0x185cfbe0 app = (struct ast_app *) 0x17bc78a0 res = 399225920 q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x17c3d550 "defaultproc"} passdata = "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=\00042874 Origin: C190.81.171.190\000j0\0001.171.190\000 \000.132.31.155/16265322836-SIP/g729.65.98.233.142/16265322836-SIP/g729.207.210.254.106/16265322836-SIP/g729.7"... matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #12 0x00000000004c2b20 in ast_spawn_extension (c=0x17c3d190, context=0x17c3d550 "defaultproc", exten=0x17c3d5a0 "17145972432", priority=1, callerid=0x17cb8f30 "6462742874", found=0x42e00fe4, combined_find_spawn=1) at pbx.c:3678 No locals. #13 0x00000000004c328d in __ast_pbx_run (c=0x17c3d190, args=0x0) at pbx.c:3771 digit = 0 invalid = 0 timeout = 0 dst_exten = '\0' , " \021àB", '\0' , " \020àB\000\000\000\000(\020àB\000\000\000\0000\020àB\000\000\000\0008\020àB\000\000\000\000(\021àB", '\0' , "0\021àB\000\000\000\000gc\200Í4", '\0' , " b\200Í4\000\000\000\000\000\000\000\000\000\000@", '\0' , "\030", '\0' , "\b\020àB\000\000\000\000\020\020àB", '\0' , "\030\020àB", '\0' pos = 0 found = 1 res = 0 autoloopflag = 0 error = 0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #14 0x00000000004c482a in pbx_thread (data=0x17c3d190) at pbx.c:4058 c = (struct ast_channel *) 0x17c3d190 #15 0x0000000000519a52 in dummy_start (data=0x17cf49f0) at utils.c:968 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, 5892084306276308469, 0, 1121982784, 1096110080, 4096, 5892084306276308149, 5892084305180581580}, __mask_was_saved = 0}}, __pad = {0x42e011c0, 0x0, 0x2aaacc1c9fb0, 0x0}} __cancel_routine = (void (*)(void *)) 0x431831 __cancel_arg = (void *) 0x42e01940 not_first_call = 0 ret = (void *) 0x34cd34c898 a = {start_routine = 0x4c4808 , data = 0x17c3d190, name = 0x17b015c0 "pbx_thread", ' ' , "started at [ 4079] pbx.c ast_pbx_start()"} #16 0x00000034cd806367 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #17 0x00000034cd0d2f7d in clone () from /lib64/libc.so.6 No symbol table info available. (gdb) (gdb)