#0 0xb7a45f82 in SQLFetch () from /usr/lib/libodbc.so.1 (gdb) (gdb) bt #0 0xb7a45f82 in SQLFetch () from /usr/lib/libodbc.so.1 #1 0xb6a82d12 in realtime_odbc (database=0xb1e6b3b0 "local", table=0xb1e6b2b0 "sip_peers", ap=0xb1e6b504 "\003-\023---\032\b\017-\023-\a-\023-") at res_config_odbc.c:180 #2 0x080b24e7 in ast_load_realtime_helper (family=0xb613f0b0 "sippeers", ap=0xb1e6b504 "\003-\023---\032\b\017-\023-\a-\023-") at config.c:2096 #3 0x080b2541 in ast_load_realtime (family=0xb613f0b0 "sippeers") at config.c:2119 #4 0xb60d4eeb in realtime_peer (newpeername=0x81ac9c0 "", sin=0x0, devstate_only=0) at chan_sip.c:4756 #5 0xb60d5b4d in find_peer (peer=0x81ac9c0 "", sin=0x0, realtime=1, which_objects=2, devstate_only=0, transport=0) at chan_sip.c:4988 #6 0xb6129fc6 in st_get_mode (p=0xae18a210) at chan_sip.c:22829 #7 0xb60f0a97 in transmit_invite (p=0xae18a210, sipmethod=3, sdp=0, init=2) at chan_sip.c:10862 #8 0xb612aca4 in sip_poke_peer (peer=0x888e1c0, force=0) at chan_sip.c:22950 #9 0xb60f9e2c in parse_register_contact (pvt=0xae936958, peer=0x888e1c0, req=0xb1e6d074) at chan_sip.c:12409 #10 0xb60fc067 in register_verify (p=0xae936958, sin=0xb1e6d064, req=0xb1e6d074, uri=0xadc58655 "sip:sip.local.pl") at chan_sip.c:13024 #11 0xb61256f0 in handle_request_register (p=0xae936958, req=0xb1e6d074, sin=0xb1e6d064, e=0xadc58655 "sip:sip.local.pl") at chan_sip.c:21520 #12 0xb61265ab in handle_incoming (p=0xae936958, req=0xb1e6d074, sin=0xb1e6d064, recount=0xb1e6d004, nounlock=0xb1e6d000) at chan_sip.c:21737 #13 0xb612752c in handle_request_do (req=0xb1e6d074, sin=0xb1e6d064) at chan_sip.c:22025 #14 0xb6126e2a in sipsock_read (id=0x8654540, fd=23, events=1, ignore=0x0) at chan_sip.c:21919 #15 0x080e62fb in ast_io_wait (ioc=0x86563a0, howlong=7) at io.c:288 #16 0xb6128a00 in do_monitor (data=0x0) at chan_sip.c:22483 #17 0x08158d95 in dummy_start (data=0xb6b02df0) at utils.c:968 #18 0xb7c1b4c0 in start_thread () from /lib/i686/cmov/libpthread.so.0 #19 0xb7d1261e in clone () from /lib/i686/cmov/libc.so.6 (gdb) bt full #0 0xb7a45f82 in SQLFetch () from /usr/lib/libodbc.so.1 No symbol table info available. #1 0xb6a82d12 in realtime_odbc (database=0xb1e6b3b0 "local", table=0xb1e6b2b0 "sip_peers", ap=0xb1e6b504 "\003-\023---\032\b\017-\023-\a-\023-") at res_config_odbc.c:180 obj = (struct odbc_obj *) 0xb6d42fc8 stmt = (SQLHSTMT) 0xae9e3a80 sql = "SELECT * FROM sip_peers WHERE name = ? AND host = ?", '\0' , " \000\000\000\000\000\000\000--\230#?\000\000\000sf", '\0' , "4--\000\000\000\000\000\000\000\000 \000\000\0004\032\000\000\001\000\000\000\000\000\000\000--?P--\000\000\000\000D--?-----\v\000\000\000-\2114\b %\024-\000\000\000\000--\001", '\0' , "----\000\000\000\000\b1\024-8-- E\026-0--", '\0' ... coltitle = "\000\000\000\000n--#-?zCiN-\030-,\000\000\000-Ci-\034?\200--\t1\024-\001\000\000\000\002\000\000\000\001\000\000\000f-------\217?A\"\024-\002\000\000\000??\034?--A\"\024-\002\000\000\000\024\000\000\000\023\000\000\000\020-------\020\000\000\v\000\000\000--?--?\000\000\000\000P--\003", '\0' , "@--\230#??-", '\0' , "\200--\032\000\000\000\n1\024-\0031\024-\000\000\000\000\020--\002", '\0' ... rowdata = '\0' , "\226-?\030----\016-\000\000\000\000d,\024-1\023\024-\024\000\000\000\027\000\000\000\000\000\000\000d--\000\000\000\000\020~--S--)-t\000\000\000iy\203-\f--a\000\000\000H\000--(\000\000\000\005\000\000\000\004\037?-\234\226---N-h-y-?--\214\203-\000\000\000\000\001\000\000\000--?-\005?\001\000\000\000\177-??-\020\000--\025\000\000\000-\000?\002\000\000\000<\000--<\000----?-\005?Q-?\177-?-\217?-\217?K\016?H\000"... op = 0xb6a8644e " =" newparam = 0x0 newval = 0xb613f207 "dynamic" stringp = 0x0 chunk = 0xad4eefc0 "-?B-0-?" collen = 0 res = 0 x = 0 var = (struct ast_variable *) 0x0 prev = (struct ast_variable *) 0x0 colsize = 0 colcount = 45 datatype = 0 decimaldigits = 0 nullable = 0 indicator = 0 aq = 0xb1e6b518 "\"" cps = {sql = 0xb1e6ae50 "SELECT * FROM sip_peers WHERE name = ? AND host = ?", extra = 0x0, ap = 0xb1e6b504 "\003-\023---\032\b\017-\023-\a-\023-", skip = 0} __PRETTY_FUNCTION__ = "realtime_odbc" #2 0x080b24e7 in ast_load_realtime_helper (family=0xb613f0b0 "sippeers", ap=0xb1e6b504 "\003-\023---\032\b\017-\023-\a-\023-") at config.c:2096 eng = (struct ast_config_engine *) 0xb6a872a0 db = "local\000\000\000\000[\026?\000\000\000\000 -?Ci??\223?--s;\"\024-\000\000\000\000-Ci\000\000\000\000\214---\016\000\000\001\200--Ci-Ci-Ci-Ci-Ci{Ri-Ci{Ri", '\0' , "\216------\000\000\000\000-\2114\b\000\000\000\b\000\000\000\000\000\000\000\000-\2114\b----\000\000\000\226v\000\000\000\000\000\000\001\000\000\000----|---\217?-:3\031~\027g\bx--f\t?-a\033\b\b&\025-\210--e-"... table = "sip_peers\000--\217?A\"\024-\002\000\000\000-?\034?\034--A\"\024-\002\000\000\000\000\000\003\002\216--\000\000\000\000-----\020\000\000\000\000\000\000\002\027\030\000\000\000\000\000\000\000\000\000\001\000\000\000\001\000\000\000\000\000\000\000-\217?(}\237-p--\230#?--?--,----\217?-------_-?p--?-----[\026?-\217??-p--\034--\2342?\000\000\000\000----%\000\000\000C\"\024-;\"\024-\000\000\000\000p--"... res = (struct ast_variable *) 0x0 #3 0x080b2541 in ast_load_realtime (family=0xb613f0b0 "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 = 0xb1e6b504 "\003-\023---\032\b\017-\023-\a-\023-" #4 0xb60d4eeb in realtime_peer (newpeername=0x81ac9c0 "", sin=0x0, devstate_only=0) at chan_sip.c:4756 peer = (struct sip_peer *) 0xffffffff var = (struct ast_variable *) 0x0 varregs = (struct ast_variable *) 0x0 tmp = (struct ast_variable *) 0x8663630 peerlist = (struct ast_config *) 0x0 ipaddr = "\000\000\000\000\230\212L-\000\000\000\000\000\000\000" portstring = "\000\000\024@f\b" cat = 0x0 ---Type to continue, or q to quit--- portnum = 45542 realtimeregs = 0 __PRETTY_FUNCTION__ = "realtime_peer" #5 0xb60d5b4d in find_peer (peer=0x81ac9c0 "", sin=0x0, realtime=1, which_objects=2, devstate_only=0, transport=0) at chan_sip.c:4988 p = (struct sip_peer *) 0x0 tmp_peer = {name = "\000---\024--_-?0-?---:3\031~\027g\bX--?\024\b-Ci\237\016\000\000;\"\024----\000\000\000\000\v-?-------\001\200--a\001\000\000%\000\000", __field_mgr_pool = 0xadc44270, secret = 0x186
, md5secret = 0xb1e6babc "N&\024-$----H", remotesecret = 0x25
, context = 0x187
, subscribecontext = 0x161
, username = 0xb6152608 "", accountcode = 0xb1e6ba78 "---B\205\025\b---", tohost = 0x8158400 "--U\211-\203-\030-D$\024", regexten = 0xb1e6c0b0 "pBi", fromuser = 0x0, fromdomain = 0x1
, fullcontact = 0xb614223b "%s: %s\r\n", cid_num = 0xb1e6babc "N&\024-$----H", cid_name = 0x0, vmexten = 0xb1e6baa8 "?-\004\216\016-pBi", language = 0x8158542 "\211E-\213E---U\211-\203-\004\213E\b\203-\tw\t-E-\001", mohinterpret = 0xb1e6c0b0 "pBi", mohsuggest = 0x0, parkinglot = 0xb7ca2ac1 "\201-3e\016", useragent = 0xb1e6babc "N&\024-$----H", __field_mgr = {size = 2984688320, used = 3083592073, last_alloc = 0xb1e6baf4 "\\--K "}, socket = {type = 0, fd = -1310278980, port = 37, tcptls_session = 0xb1e6bad8}, default_outbound_transport = 3054407172, transports = 0, auth = 0x0, amaflags = -1240194501, callingpres = -1240193458, inUse = -1310278876, inRinging = -1310278920, onHold = -1366294456, call_limit = 48, t38_maxdatagram = 6, busy_level = 422787776, allowtransfer = 2984688680, prefs = {order = "?\016--\vz-N&\024-$----K-\030-\\--K \000\000", framing = "!\000\000\000\020\000\000\000\034\000\000\000\004\000\000\000n\000\000\000\005\000\000\000\223\000\000\000\000\000\000"}, lastmsgssent = 0, sipoptions = 3084310670, flags = {{ flags = 745108038}, {flags = 540553760}}, mailboxes = {first = 0x2079614d, last = 0xb7d88ff4}, is_realtime = 1 '\001', rt_fromcontact = 0 '\0', host_dynamic = 0 '\0', selfdestruct = 0 '\0', the_mark = 16 '\020', expire = -1366294512, capability = -1211480796, rtptimeout = -1367733256, rtpholdtimeout = 0, rtpkeepalive = 44, callgroup = 12457167538100502561, pickupgroup = 13120434905215402028, outboundproxy = 0x19333ac0, dnsmgr = 0x867177e, addr = {sin_family = 48040, sin_port = 45542, sin_addr = {s_addr = 135626018}, sin_zero = "\001\000\000\000,\000\000"}, maxcallbitrate = -1310278744, portinuri = 0, call = 0x6, pokeexpire = -1310280240, lastms = -1240055840, maxms = -1240055840, qualifyfreq = 137660832, ps = { tv_sec = -1240211806, tv_usec = 5060}, defaddr = {sin_family = 46544, sin_port = 45542, sin_addr = {s_addr = 91798155}, sin_zero = "-\vz---"}, ha = 0xb60dfe6b, contactha = 0x1, chanvars = 0x2c, mwipvt = 0xb613d3ac, autoframing = 7133, stimer = {st_mode_oper = 3054767260, st_ref = 2920852356, st_min_se = -1310280228, st_max_se = 21}, timer_t1 = -1367733256, timer_b = -1374114931, deprecated_username = -1240055840, type = 9} #6 0xb6129fc6 in st_get_mode (p=0xae18a210) at chan_sip.c:22829 pp = (struct sip_peer *) 0x81ac9c0 #7 0xb60f0a97 in transmit_invite (p=0xae18a210, sipmethod=3, sdp=0, init=2) at chan_sip.c:10862 req = {rlPart1 = 0, rlPart2 = 0, len = 390, headers = 10, method = 3, lines = 0, sdp_start = 0, sdp_count = 0, debug = 0 '\0', has_to_tag = 0 '\0', ignore = 0 '\0', header = {0, 38, 102, 120, 180, 208, 245, 300, 319, 353, 0 }, line = {0 }, data = 0xadc44270, socket = {type = 0, fd = 0, port = 0, tcptls_session = 0x0}, next = {next = 0x0}} var = (struct ast_variable *) 0x0 __PRETTY_FUNCTION__ = "transmit_invite" #8 0xb612aca4 in sip_poke_peer (peer=0x888e1c0, force=0) at chan_sip.c:22950 p = (struct sip_pvt *) 0xae18a210 xmitres = 0 __PRETTY_FUNCTION__ = "sip_poke_peer" #9 0xb60f9e2c in parse_register_contact (pvt=0xae936958, peer=0x888e1c0, req=0xb1e6d074) at chan_sip.c:12409 contact = ", "-\000\000\000-\000\000\000-\000\000\000\230J\024--?-J\024---?-J\024-\205-?-J\024-??\000\000\000\000\000\000\000\000h-?\b-?bc430376973f935cb83b7cad6a009e4d", '\0' , "\004\037?", '\0' , "xD\002-\020\000\220-\001", '\0' , "e61c1e3"... data = "192.168.32.107:5060:1800:s:sip:s@192.168.32.107\000_-\r-s\206u- k\003\000\000\000 \213?\000\000\000\000-2?-\217?\000\000\000\00030c4c8fe0e2e63988a5fb53815311924\000--U-\023-|--\207\027\r-", '\0' , "-\023\000\000\000\000\000\000\b&\025----J\v\020-Xi\223--\023\000\000\004", '\0' , "\004\003\002\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000"... expires = 0xadc58830 "1800" expire = 1800 curi = 0xb1e6c8f1 "s" host = 0xb1e6c8f3 "192.168.32.107" pt = 0xb613dea2 "" transport = 0xb613dea2 "" port = 5060 transport_type = 1 useragent = 0xb1e6cb28 "\025" hp = (struct hostent *) 0xb1e6c2c4 ahp = {hp = {h_name = 0x0, h_aliases = 0x0, h_addrtype = 2, h_length = 0, h_addr_list = 0xb1e6c2d8}, buf = "---- k", '\0' } oldsin = {sin_family = 2, sin_port = 50195, sin_addr = {s_addr = 1797302464}, sin_zero = "\000\000\000\000\000\000\000"} testsin = {sin_family = 1, sin_port = 0, sin_addr = {s_addr = 1797302464}, sin_zero = "--\023-\tD?"} __PRETTY_FUNCTION__ = "parse_register_contact" #10 0xb60fc067 in register_verify (p=0xae936958, sin=0xb1e6d064, req=0xb1e6d074, uri=0xadc58655 "sip:sip.local.pl") at chan_sip.c:13024 res = AUTH_SUCCESSFUL peer = (struct sip_peer *) 0x888e1c0 ---Type to continue, or q to quit--- tmp = ", "--?\000\000\000\000\000\000\000\000-\217?Lm\223-\f--_-?0--Ml\223-Lm\223-[\026?-\217?0--Ml\223-\034-?\223?0--G-\024-P--Ml\223-\000\000\000\000----\000\000\000\001\200--Ml\223-Ml\223-Ml\223-Ml\223-Yl\223-Lm\223-Ml\223-Lm\223-", '\0' , "\223-\024-\000\000\000\000\000\000\000" name = 0xb1e6cc79 "32107" c = 0x0 domain = 0xb1e6cc7f "sip.local.pl" __PRETTY_FUNCTION__ = "register_verify" #11 0xb61256f0 in handle_request_register (p=0xae936958, req=0xb1e6d074, sin=0xb1e6d064, e=0xadc58655 "sip:sip.local.pl") at chan_sip.c:21520 res = 256 __PRETTY_FUNCTION__ = "handle_request_register" #12 0xb61265ab in handle_incoming (p=0xae936958, req=0xb1e6d074, sin=0xb1e6d064, recount=0xb1e6d004, nounlock=0xb1e6d000) at chan_sip.c:21737 cmd = 0xadc5864c "REGISTER" cseq = 0xadc58749 "135 REGISTER" useragent = 0xadc58763 "CORE_1.6.1.6c-1_CONF_1.1.32.3" seqno = 135 len = 3 respid = 82 res = 0 debug = 0 e = 0xadc58655 "sip:sip.local.pl" error = 0 oldmethod = 2 acked = 0 __PRETTY_FUNCTION__ = "handle_incoming" #13 0xb612752c in handle_request_do (req=0xb1e6d074, sin=0xb1e6d064) at chan_sip.c:22025 p = (struct sip_pvt *) 0xae936958 recount = 0 nounlock = 0 lockretry = 10 __PRETTY_FUNCTION__ = "handle_request_do" #14 0xb6126e2a in sipsock_read (id=0x8654540, fd=23, events=1, ignore=0x0) at chan_sip.c:21919 req = {rlPart1 = 0, rlPart2 = 9, len = 544, headers = 12, method = 2, lines = 0, sdp_start = 0, sdp_count = 0, debug = 0 '\0', has_to_tag = 0 '\0', ignore = 0 '\0', header = {0, 34, 101, 119, 165, 194, 247, 267, 310, 475, 490, 523, 542, 0 }, line = {544, 0 }, data = 0xadc58640, socket = {type = SIP_TRANSPORT_UDP, fd = -1, port = 50195, tcptls_session = 0x0}, next = {next = 0x0}} sin = {sin_family = 2, sin_port = 50195, sin_addr = {s_addr = 1797302464}, sin_zero = "\000\000\000\000\000\000\000"} res = 544 len = 16 readbuf = "REGISTER sip:sip.local.pl SIP/2.0\r\nVia: SIP/2.0/UDP 192.168.32.107:5060;branch=z9hG4bK537423d1;rport\r\nMax-Forwards: 70\r\nFrom: ;tag=as440ada5d\r\nTo: \r\nCall-I"... __PRETTY_FUNCTION__ = "sipsock_read" #15 0x080e62fb in ast_io_wait (ioc=0x86563a0, howlong=7) at io.c:288 res = 1 x = 0 origcnt = 1 #16 0xb6128a00 in do_monitor (data=0x0) at chan_sip.c:22483 res = 7 t = 1275064412 reloading = 0 __PRETTY_FUNCTION__ = "do_monitor" #17 0x08158d95 in dummy_start (data=0xb6b02df0) at utils.c:968 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {-1211977740, 0, 0, -1310272568, -643383139, 1058720750}, __mask_was_saved = 0}}, __pad = {0xb1e6d490, 0x0, 0x0, 0x0}} __cancel_routine = (void (*)(void *)) 0x8077793 __cancel_arg = (void *) 0xb1e6db90 not_first_call = 0 ret = (void *) 0x0 a = {start_routine = 0xb61287c1 , data = 0x0, name = 0xb6b3b010 "do_monitor", ' ' , "started at [22514] chan_sip.c restart_monitor()"} #18 0xb7c1b4c0 in start_thread () from /lib/i686/cmov/libpthread.so.0 No symbol table info available. ---Type to continue, or q to quit--- #19 0xb7d1261e in clone () from /lib/i686/cmov/libc.so.6 No symbol table info available. (gdb)