#0 0x00000039c9430155 in raise () from /lib64/libc.so.6 (gdb) bt #0 0x00000039c9430155 in raise () from /lib64/libc.so.6 #1 0x00000039c9431bf0 in abort () from /lib64/libc.so.6 #2 0x00000039c946a38b in __libc_message () from /lib64/libc.so.6 #3 0x00000039c947421b in _int_realloc () from /lib64/libc.so.6 #4 0x00000039c94751a0 in realloc () from /lib64/libc.so.6 #5 0x000000000051edc3 in _ast_realloc (p=0xb318d0, len=66, file=0x584400 "/usr/src/asterisk/include/asterisk/strings.h", lineno=561, func=0x584430 "ast_str_make_space") at /usr/src/asterisk/include/asterisk/utils.h:493 #6 0x000000000051f415 in ast_str_make_space (buf=0x403853a8, new_len=42) at /usr/src/asterisk/include/asterisk/strings.h:539 #7 0x0000000000510fc1 in __ast_str_helper (buf=0x403853a8, max_len=0, append=1, fmt=0x2aaaacf4e5da ",", ap=0x40384dd0) at strings.c:92 #8 0x000000000051f563 in ast_str_append_va (buf=0x403853a8, max_len=0, fmt=0x2aaaacf4e5da ",", ap=0x40384dd0) at /usr/src/asterisk/include/asterisk/strings.h:749 #9 0x000000000051f833 in ast_str_append (buf=0x403853a8, max_len=0, fmt=0x2aaaacf4e5da ",") at /usr/src/asterisk/include/asterisk/strings.h:821 #10 0x00002aaaacf49ced in acf_odbc_read (chan=0xb507f0, cmd=0x40385470 "MINIXEL_ROUTING", s=0x40385480 "19544447408", buf=0x40385560 " SIP/63419544447408@208.51.238.80-,1,2124447408,a84b1%c0.040000d0.040000e0f19544447408x0", len=4096) at func_odbc.c:545 #11 0x00000000004c5c62 in ast_func_read (chan=0xb507f0, function=0x40386570 "MINIXEL_ROUTING(19544447408,2124447408,84)", workspace=0x40385560 " SIP/63419544447408@208.51.238.80-,1,2124447408,a84b1%c0.040000d0.040000e0f19544447408x0", len=4096) at pbx.c:3346 #12 0x00000000004c623f in pbx_substitute_variables_helper_full (c=0xb507f0, headp=0xb509f0, cp1=0x2aaab00360a0 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=${MINIXEL_ROUTING(${EXTEN},${anix},${X})}", cp2=0x4038a916 "", count=8153, used=0x40388738) at pbx.c:3481 #13 0x00000000004c6864 in pbx_substitute_variables_helper (c=0xb507f0, cp1=0x2aaab00360a0 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=${MINIXEL_ROUTING(${EXTEN},${anix},${X})}", cp2=0x4038a8f0 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=", count=8191) at pbx.c:3576 #14 0x00000000004c694b in pbx_substitute_variables (passdata=0x4038a8f0 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=", datalen=8192, c=0xb507f0, e=0x2aaab0036100) at pbx.c:3599 #15 0x00000000004c6bcf in pbx_extension_helper (c=0xb507f0, con=0x0, context=0xb50ba8 "defaultproc", exten=0xb50bf8 "19544447408", priority=1, label=0x0, callerid=0xb52320 "2124447408", action=E_SPAWN, found=0x4038cfb4, combined_find_spawn=1) at pbx.c:3661 #16 0x00000000004c82e4 in ast_spawn_extension (c=0xb507f0, context=0xb50ba8 "defaultproc", exten=0xb50bf8 "19544447408", priority=1, callerid=0xb52320 "2124447408", found=0x4038cfb4, combined_find_spawn=1) at pbx.c:4137 #17 0x00000000004c8a32 in __ast_pbx_run (c=0xb507f0, args=0x0) at pbx.c:4227 #18 0x00000000004ca005 in pbx_thread (data=0xb507f0) at pbx.c:4514 #19 0x00000000005201d8 in dummy_start (data=0xb51cb0) at utils.c:968 #20 0x00000039ca0062f7 in start_thread () from /lib64/libpthread.so.0 #21 0x00000039c94d1e3d in clone () from /lib64/libc.so.6 (gdb) bt full #0 0x00000039c9430155 in raise () from /lib64/libc.so.6 No symbol table info available. #1 0x00000039c9431bf0 in abort () from /lib64/libc.so.6 No symbol table info available. #2 0x00000039c946a38b in __libc_message () from /lib64/libc.so.6 No symbol table info available. #3 0x00000039c947421b in _int_realloc () from /lib64/libc.so.6 No symbol table info available. #4 0x00000039c94751a0 in realloc () from /lib64/libc.so.6 No symbol table info available. #5 0x000000000051edc3 in _ast_realloc (p=0xb318d0, len=66, file=0x584400 "/usr/src/asterisk/include/asterisk/strings.h", lineno=561, func=0x584430 "ast_str_make_space") at /usr/src/asterisk/include/asterisk/utils.h:493 newp = (void *) 0x43 __PRETTY_FUNCTION__ = "_ast_realloc" #6 0x000000000051f415 in ast_str_make_space (buf=0x403853a8, new_len=42) at /usr/src/asterisk/include/asterisk/strings.h:539 old_buf = (struct ast_str *) 0xb318d0 __PRETTY_FUNCTION__ = "ast_str_make_space" #7 0x0000000000510fc1 in __ast_str_helper (buf=0x403853a8, max_len=0, append=1, fmt=0x2aaaacf4e5da ",", ap=0x40384dd0) at strings.c:92 res = 1 need = 42 offset = 19 aq = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x40384eb0, reg_save_area = 0x40384df0}} __PRETTY_FUNCTION__ = "__ast_str_helper" #8 0x000000000051f563 in ast_str_append_va (buf=0x403853a8, max_len=0, fmt=0x2aaaacf4e5da ",", ap=0x40384dd0) at /usr/src/asterisk/include/asterisk/strings.h:749 No locals. #9 0x000000000051f833 in ast_str_append (buf=0x403853a8, max_len=0, fmt=0x2aaaacf4e5da ",") at /usr/src/asterisk/include/asterisk/strings.h:821 res = 1 ap = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x40384eb0, reg_save_area = 0x40384df0}} #10 0x00002aaaacf49ced in acf_odbc_read (chan=0xb507f0, cmd=0x40385470 "MINIXEL_ROUTING", s=0x40385480 "19544447408", buf=0x40385560 " SIP/63419544447408@208.51.238.80-,1,2124447408,a84b1%c0.040000d0.040000e0f19544447408x0", len=4096) at func_odbc.c:545 colname = "PLIST\000ni\000M8@\000\000\000\000\000\001\000\000\000\000\000\000\001", '\0' , "\001", '\0' , "\001", '\0' , "@M8@", '\0' maxcol = 256 i = 40 coldata = (struct ast_str *) 0xb2cd30 ptrcoldata = 0xb2cd48 "a84b1%c0.040000d0.040000e0f19544447408x0" obj = (struct odbc_obj *) 0xaee208 query = (struct acf_odbc_query *) 0xb1a670 varname = "ARG3\000\000\000\000\000\000\000\000\000\000" rowcount = "-1\000\000\000\000\000\000\000\000\000" colnames = (struct ast_str *) 0xb318d0 res = 0 x = 4 y = 0 buflen = 88 escapecommas = 1 rowlimit = 1 dsn = 0 bogus_chan = 0 args = {argc = 3, argv = 0x40385088, field = {0x40385480 "19544447408", 0x4038548c "2124447408", 0x40385497 "84", 0x0 }} stmt = (SQLHSTMT) 0xb53090 colcount = 5 ---Type to continue, or q to quit--- indicator = 40 collength = 5 resultset = (struct odbc_datastore *) 0x0 row = (struct odbc_datastore_row *) 0x0 sql = (struct ast_str *) 0xb52ff0 status = 0x2aaaacf4e4e5 "SUCCESS" __PRETTY_FUNCTION__ = "acf_odbc_read" #11 0x00000000004c5c62 in ast_func_read (chan=0xb507f0, function=0x40386570 "MINIXEL_ROUTING(19544447408,2124447408,84)", workspace=0x40385560 " SIP/63419544447408@208.51.238.80-,1,2124447408,a84b1%c0.040000d0.040000e0f19544447408x0", len=4096) at pbx.c:3346 res = 0 u = (struct ast_module_user *) 0xb52d20 copy = 0x40385470 "MINIXEL_ROUTING" args = 0x40385480 "19544447408" acfptr = (struct ast_custom_function *) 0xb18300 __PRETTY_FUNCTION__ = "ast_func_read" #12 0x00000000004c623f in pbx_substitute_variables_helper_full (c=0xb507f0, headp=0xb509f0, cp1=0x2aaab00360a0 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=${MINIXEL_ROUTING(${EXTEN},${anix},${X})}", cp2=0x4038a916 "", count=8153, used=0x40388738) at pbx.c:3481 cp4 = 0x1
tmp = 0x2aaab00360a0 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=${MINIXEL_ROUTING(${EXTEN},${anix},${X})}" whereweare = 0x2aaab00360ef "" orig_cp2 = 0x4038a8f0 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=" length = 0 offset = 0 offset2 = 2147483647 isfunction = 1 workspace = 0x40385560 " SIP/63419544447408@208.51.238.80-,1,2124447408,a84b1%c0.040000d0.040000e0f19544447408x0" ltmp = 0x40386570 "MINIXEL_ROUTING(19544447408,2124447408,84)" var = 0x40387580 "MINIXEL_ROUTING(${EXTEN},${anix},${X})" nextvar = 0x2aaab00360c6 "${MINIXEL_ROUTING(${EXTEN},${anix},${X})}" nextexp = 0x0 nextthing = 0x2aaab00360c6 "${MINIXEL_ROUTING(${EXTEN},${anix},${X})}" vars = 0x40386570 "MINIXEL_ROUTING(19544447408,2124447408,84)" vare = 0x2aaab00360ef "" pos = 38 brackets = 0 needsub = 3 len = 38 __PRETTY_FUNCTION__ = "pbx_substitute_variables_helper_full" #13 0x00000000004c6864 in pbx_substitute_variables_helper (c=0xb507f0, cp1=0x2aaab00360a0 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=${MINIXEL_ROUTING(${EXTEN},${anix},${X})}", cp2=0x4038a8f0 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=", count=8191) at pbx.c:3576 used = 0 #14 0x00000000004c694b in pbx_substitute_variables (passdata=0x4038a8f0 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=", datalen=8192, c=0xb507f0, e=0x2aaab0036100) at pbx.c:3599 tmp = 0x2aaab00360c6 "${MINIXEL_ROUTING(${EXTEN},${anix},${X})}" #15 0x00000000004c6bcf in pbx_extension_helper (c=0xb507f0, con=0x0, context=0xb50ba8 "defaultproc", exten=0xb50bf8 "19544447408", priority=1, label=0x0, callerid=0xb52320 "2124447408", action=E_SPAWN, found=0x4038cfb4, combined_find_spawn=1) at pbx.c:3661 e = (struct ast_exten *) 0x2aaab0036100 app = (struct ast_app *) 0xb37100 res = 0 q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0xb50ba8 "defaultproc"} ---Type to continue, or q to quit--- passdata = "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST)=\000124447408 Name:2124447408 Origin: C72.187.243.97", '\0' matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #16 0x00000000004c82e4 in ast_spawn_extension (c=0xb507f0, context=0xb50ba8 "defaultproc", exten=0xb50bf8 "19544447408", priority=1, callerid=0xb52320 "2124447408", found=0x4038cfb4, combined_find_spawn=1) at pbx.c:4137 No locals. #17 0x00000000004c8a32 in __ast_pbx_run (c=0xb507f0, args=0x0) at pbx.c:4227 digit = 0 invalid = 0 timeout = 0 dst_exten = '\0' , "\030", '\0' pos = 0 found = 1 res = 0 autoloopflag = 0 error = 0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #18 0x00000000004ca005 in pbx_thread (data=0xb507f0) at pbx.c:4514 c = (struct ast_channel *) 0xb507f0 #19 0x00000000005201d8 in dummy_start (data=0xb51cb0) at utils.c:968 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, 1077465328, 0, 1077467456, 1077469184, 4096, 1077465136, 5374367}, __mask_was_saved = 0}}, __pad = {0x4038d190, 0x0, 0x0, 0x0}} __cancel_routine = (void (*)(void *)) 0x4309dd __cancel_arg = (void *) 0x4038d940 not_first_call = 0 ret = (void *) 0x0 a = {start_routine = 0x4c9fe3 , data = 0xb507f0, name = 0xb51cd0 "pbx_thread", ' ' , "started at [ 4535] pbx.c ast_pbx_start()"} #20 0x00000039ca0062f7 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #21 0x00000039c94d1e3d in clone () from /lib64/libc.so.6