#0 0xb7a9e4ab in SQLDescribeCol () from /usr/lib/libodbc.so.1 (gdb) bt #0 0xb7a9e4ab in SQLDescribeCol () from /usr/lib/libodbc.so.1 #1 0xb6f27e36 in realtime_odbc (database=0xb6dfe9b0 "ccig", table=0xb6dfe8b0 "sip_peers", ap=0xb6dfeb04 "\003\001B-\020-?\017\002B-\a\002B-") at res_config_odbc.c:195 #2 0x080b24e7 in ast_load_realtime_helper (family=0xb64200b0 "sippeers", ap=0xb6dfeb04 "\003\001B-\020-?\017\002B-\a\002B-") at config.c:2096 #3 0x080b2541 in ast_load_realtime (family=0xb64200b0 "sippeers") at config.c:2119 #4 0xb63b5eeb in realtime_peer (newpeername=0xb6dff210 "154029", sin=0x0, devstate_only=1) at chan_sip.c:4756 #5 0xb63b6b4d in find_peer (peer=0xb6dff210 "154029", sin=0x0, realtime=0, which_objects=3, devstate_only=1, transport=0) at chan_sip.c:4988 #6 0xb640c01f in sip_devicestate (data=0xb6dff294) at chan_sip.c:23020 #7 0x080b5cd7 in _ast_device_state (device=0x9011d6c "SIP/154029", check_cache=0) at devicestate.c:350 #8 0x080b6102 in do_state_change (device=0x9011d6c "SIP/154029") at devicestate.c:458 #9 0x080b63b3 in do_devstate_changes (data=0x0) at devicestate.c:549 #10 0x08158d95 in dummy_start (data=0xb7baeea0) at utils.c:968 #11 0xb7d8a4c0 in start_thread () from /lib/i686/cmov/libpthread.so.0 #12 0xb7e8161e in clone () from /lib/i686/cmov/libc.so.6 (gdb) bt full #0 0xb7a9e4ab in SQLDescribeCol () from /usr/lib/libodbc.so.1 No symbol table info available. #1 0xb6f27e36 in realtime_odbc (database=0xb6dfe9b0 "ccig", table=0xb6dfe8b0 "sip_peers", ap=0xb6dfeb04 "\003\001B-\020-?\017\002B-\a\002B-") at res_config_odbc.c:195 obj = (struct odbc_obj *) 0x899f920 stmt = (SQLHSTMT) 0x9004b38 sql = "SELECT * FROM sip_peers WHERE name = ? AND host = ?", '\0' , "\022", '\0' , "-\023\000\000-\023", '\0' , "\001", '\0' , "\003\002\000\000\000\000\000\000\000\000\000\000\003\002\000\000\000\000\000\000\000\000\000\2005\002", '\0' , "\2005\002\000\000\000\000\000\000\003\002", '\0' , "\002\027\030\000\000\000\000\000\000\000\003\002\000\000\000\000\000\000\003\002--?", '\0' , "\216-?", '\0' ... coltitle = "id\000ragent\000ontext", '\0' , ",\006A-", '\0' , "?\000\000\000\000\000\000\000--?--? -\v-", '\0' rowdata = "\0009\000E_1.6.1.6-P\016-CONF_1.1.34_G7", '\0' , "----\000\000\000\000--A---?\000\000\000\000--?\000\000\000\000\000\000\000\000(-?Z\223-\221-?;\000\000\000\b6C-\022\000\000\000-\023---?\016N;-\222-?:\000\000\000--?", '\0' , "^K;-sip:\000sips:\000\000\000\000\000\000\000\000\000\000\n\f\004t\000\000\000\000\b6C-\022\000\000\000--?X-?z\206\025\b\002\000\000\000\236-?--?\000\000\000\000\000\000"... op = 0xb6f2b44e " =" newparam = 0x0 newval = 0xb6420207 "dynamic" stringp = 0x0 chunk = 0xb6dfdb50 "" collen = 256 res = 0 x = 1 var = (struct ast_variable *) 0x8d25b60 prev = (struct ast_variable *) 0x8d25b60 colsize = 11 colcount = 45 datatype = 4 decimaldigits = 0 nullable = 0 indicator = 2 aq = 0xb6dfeb18 "" cps = {sql = 0xb6dfe450 "SELECT * FROM sip_peers WHERE name = ? AND host = ?", extra = 0x0, ap = 0xb6dfeb04 "\003\001B-\020-?\017\002B-\a\002B-", skip = 0} __PRETTY_FUNCTION__ = "realtime_odbc" #2 0x080b24e7 in ast_load_realtime_helper (family=0xb64200b0 "sippeers", ap=0xb6dfeb04 "\003\001B-\020-?\017\002B-\a\002B-") at config.c:2096 eng = (struct ast_config_engine *) 0xb6f2c2a0 db = "ccig", '\0' , "---------\177--\000\000\000\000`\221-\201", '\0' , "\214\221-\214\221-\216-?\220\221--", '\0' , "-\177---?`\030\001\000Kk\000\000\000\000\000\000\001", '\0' , "-\177-\000\000\000\000\000\000\000\000x-?f---a\033\b\b6C-\210-?e-\n\b-a\033\b\000\000\000\000--?-!\v\b-a\033\b\204'\224\b\000\000\000\000\000\000\000\000--?\001\000\000\000\201\000\000\000-\177-" table = "sip_peers", '\0' , " -\v-\000\000\000\000\000\000\000\000\001", '\0' , "--?", '\0' res = (struct ast_variable *) 0x0 #3 0x080b2541 in ast_load_realtime (family=0xb64200b0 "sippeers") at config.c:2119 res = (struct ast_variable *) 0x0 cur = (struct ast_variable *) 0x0 prev = (struct ast_variable *) 0x0 freeme = (struct ast_variable *) 0x0 ap = 0xb6dfeb04 "\003\001B-\020-?\017\002B-\a\002B-" #4 0xb63b5eeb in realtime_peer (newpeername=0xb6dff210 "154029", sin=0x0, devstate_only=1) at chan_sip.c:4756 peer = (struct sip_peer *) 0x0 var = (struct ast_variable *) 0x0 varregs = (struct ast_variable *) 0x0 tmp = (struct ast_variable *) 0xb5c4c610 peerlist = (struct ast_config *) 0x0 ipaddr = "\000\000\000\000\000\207--\000\000\000\000\000\000\000" portstring = "\000\000|-j" cat = 0x0 portnum = 46815 realtimeregs = 0 __PRETTY_FUNCTION__ = "realtime_peer" #5 0xb63b6b4d in find_peer (peer=0xb6dff210 "154029", sin=0x0, realtime=0, which_objects=3, devstate_only=1, transport=0) at chan_sip.c:4988 p = (struct sip_peer *) 0x0 tmp_peer = {name = "154029\000--\032-\000\000\000\000p&--\000\000\000\000\230\221-\030\000\000\000\004\017-\020\000--\230\224?-----Q--\177--0\000\000\000-\004-\b`\221-\230\221-!\000\000", __field_mgr_pool = 0xb7e10f04, secret = 0xb7edc551 "malloc(): memory corruption", md5secret = 0x0, remotesecret = 0x38
, context = 0x8d25790 "-\221----\b?s\003SIP/mg2", subscribecontext = 0x3
, username = 0xb7ef9198 " \211-\b \211-\b-E-\b\030\023-\b-Z-\bp\226-\b\200--\b [-\b8--\b0)-\b---\b\210W-\bH\206-\bxQ-\b", accountcode = 0x30
, tohost = 0x8d4e170 "-\221?\221-?s\003SIP/(", regexten = 0xb7ef9160 "", fromuser = 0x1
, fromdomain = 0x6
, fullcontact = 0xb7ef9190 "--\001\t", cid_num = 0xb7ef9190 "--\001\t", cid_name = 0x8d25788 "@N-\b1", vmexten = 0xb6dff0b4 "p--\b-\032-\210B-\b`\221-\004", language = 0xb7e130cd "\211u\f----\215v", mohinterpret = 0x4
, mohsuggest = 0x8f404f0 "\030\023-\b8--\b\020", parkinglot = 0x0, useragent = 0xb7ef9190 "--\001\t", __field_mgr = {size = 3085930896, used = 148984688, last_alloc = 0x18
}, socket = {type = 3084979972, fd = 148002704, port = 57712, tcptls_session = 0xb6dff0e4}, default_outbound_transport = 135018619, transports = 0, auth = 0x8d4e170, amaflags = -1209984319, callingpres = 150946440, inUse = -1209036448, inRinging = 4, onHold = -1209984319, call_limit = -1209987324, t38_maxdatagram = 24, busy_level = 150946448, allowtransfer = 3085893670, prefs = {order = "\210B-\b\214B-\b\000\000\000\000\030-?-_-\b`\221-\004\000\000\000\230\221-", framing = "\020\000\000\000\006\000\000\000\210B-\b-\032-\020\000\000\000-\004-\b\210B-\b\200B-\b"}, lastmsgssent = -1210474508, sipoptions = 150047608, flags = {{flags = 0}, {flags = 3068129592}}, mailboxes = {first = 0x80c387b, last = 0x700}, is_realtime = -40 '-', rt_fromcontact = 95 '_', host_dynamic = -20 '-', selfdestruct = 8 '\b', the_mark = 104 'h', expire = 135019005, capability = -1226837672, rtptimeout = 149708760, rtpholdtimeout = 149708752, rtpkeepalive = 48, callgroup = 642994262484451328, pickupgroup = 642994231192780838, outboundproxy = 0xb7ef7ff4, dnsmgr = 0x1, addr = {sin_family = 37216, sin_port = 47087, sin_addr = {s_addr = 3068129688}, sin_zero = "\t4-`\221-"}, maxcallbitrate = 12, portinuri = 1, call = 0x14b29, pokeexpire = 151123160, lastms = 12, maxms = -1210474508, qualifyfreq = 0, ps = {tv_sec = 0, tv_usec = -1226837544}, defaddr = {sin_family = 32034, sin_port = 2069, sin_addr = {s_addr = 3084433806}, sin_zero = "\f\000\000\000---"}, ha = 0x8d2be10, contactha = 0xb6dff1d0, chanvars = 0xb7d99ff4, mwipvt = 0x0, autoframing = 134750464, stimer = {st_mode_oper = 3084439516, st_ref = 3068129744, st_min_se = 27467, st_max_se = 0}, timer_t1 = 1, timer_b = 150209776, deprecated_username = -1226837496, type = 3085926388} #6 0xb640c01f in sip_devicestate (data=0xb6dff294) at chan_sip.c:23020 host = 0xb6dff210 "154029" tmp = 0x0 p = (struct sip_peer *) 0x81ce2c8 res = 4 __PRETTY_FUNCTION__ = "sip_devicestate" #7 0x080b5cd7 in _ast_device_state (device=0x9011d6c "SIP/154029", check_cache=0) at devicestate.c:350 buf = 0xb6dff294 "154029" number = 0xb6dff294 "154029" chan_tech = (const struct ast_channel_tech *) 0xb6433480 res = AST_DEVICE_NOT_INUSE ---Type to continue, or q to quit--- tech = 0xb6dff290 "SIP" provider = 0x0 __PRETTY_FUNCTION__ = "_ast_device_state" #8 0x080b6102 in do_state_change (device=0x9011d6c "SIP/154029") at devicestate.c:458 state = 136013512 __PRETTY_FUNCTION__ = "do_state_change" #9 0x080b63b3 in do_devstate_changes (data=0x0) at devicestate.c:549 next = (struct state_change *) 0x0 current = (struct state_change *) 0x9011d68 #10 0x08158d95 in dummy_start (data=0xb7baeea0) at utils.c:968 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {-1210474508, 0, 0, -1226837048, -1410940781, 1058720750}, __mask_was_saved = 0}}, __pad = {0xb6dff490, 0x0, 0x0, 0x0}} __cancel_routine = (void (*)(void *)) 0x8077793 __cancel_arg = (void *) 0xb6dffb90 not_first_call = 0 ret = (void *) 0x0 a = {start_routine = 0x80b6344 , data = 0x0, name = 0xb6e11e30 "do_devstate_changes started at [ 725] devicestate.c ast_device_state_engine_init()"} #11 0xb7d8a4c0 in start_thread () from /lib/i686/cmov/libpthread.so.0 No symbol table info available. #12 0xb7e8161e in clone () from /lib/i686/cmov/libc.so.6 No symbol table info available. (gdb)