#0  0x00002aaaaacd357d in SQLNumResultCols (statement_handle=0x2aaac065c990, column_count=0x4324208e) at SQLNumResultCols.c:201
201         if ( !CHECK_SQLNUMRESULTCOLS( statement -> connection ))
(gdb) bt
#0  0x00002aaaaacd357d in SQLNumResultCols (statement_handle=0x2aaac065c990, column_count=0x4324208e) at SQLNumResultCols.c:201
#1  0x00002aaaabdc723d in acf_odbc_read (chan=0x2aaabce77f70, cmd=0x43242460 "MINIXEL_GOMIRROR", s=0x43242471 "14435180318", buf=0x43242580 "", len=4096) at func_odbc.c:361
#2  0x00000000004c029c in ast_func_read (chan=0x2aaabce77f70, function=0x43243590 "MINIXEL_GOMIRROR(14435180318,6462742874,356,g729)", workspace=0x43242580 "", len=4096) at pbx.c:2887
#3  0x00000000004c085d in pbx_substitute_variables_helper_full (c=0x2aaabce77f70, headp=0x2aaabce78170, 
    cp1=0x2aaab0069270 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}", cp2=0x43247930 "", count=8143) at pbx.c:3021
#4  0x00000000004c0e49 in pbx_substitute_variables_helper (c=0x2aaabce77f70, 
    cp1=0x2aaab0069270 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}", 
    cp2=0x43247900 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=", count=8191) at pbx.c:3113
#5  0x00000000004c0f2c in pbx_substitute_variables (passdata=0x43247900 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=", datalen=8192, c=0x2aaabce77f70, e=0x2aaab00692e0) at pbx.c:3137
#6  0x00000000004c11b0 in pbx_extension_helper (c=0x2aaabce77f70, con=0x0, context=0x2aaabce78330 "defaultproc", exten=0x2aaabce78380 "14435180318", priority=1, label=0x0, 
    callerid=0x2aaac01046d0 "6462742874", action=E_SPAWN, found=0x43249fe4, combined_find_spawn=1) at pbx.c:3199
#7  0x00000000004c2a5c in ast_spawn_extension (c=0x2aaabce77f70, context=0x2aaabce78330 "defaultproc", exten=0x2aaabce78380 "14435180318", priority=1, callerid=0x2aaac01046d0 "6462742874", 
    found=0x43249fe4, combined_find_spawn=1) at pbx.c:3678
#8  0x00000000004c31c9 in __ast_pbx_run (c=0x2aaabce77f70, args=0x0) at pbx.c:3771
#9  0x00000000004c4766 in pbx_thread (data=0x2aaabce77f70) at pbx.c:4058
#10 0x000000000051998e in dummy_start (data=0x2aaabc549040) at utils.c:968
#11 0x00000034cd806367 in start_thread () from /lib64/libpthread.so.0
#12 0x00000034cd0d2f7d in clone () from /lib64/libc.so.6
(gdb) bt full
#0  0x00002aaaaacd357d in SQLNumResultCols (statement_handle=0x2aaac065c990, column_count=0x4324208e) at SQLNumResultCols.c:201
        statement = <value optimized out>
        ret = <value optimized out>
        s1 = "!\223ÔK\000\000\000\000z³\n\000\000\000\000\000=\226ÔK\000\000\000\000\004]\r\000\000\000\000\000=\226ÔK\000\000\000\000\004]\r\000\034\003\000\000p\036$C\000\000\000\000\224#«ªª*\000\000p\036$C\000\000\000\000 \001\023Àª*\000\000=\226ÔK", '\0' <repeats 12 times>, "0\036$C", '\0' <repeats 12 times>, "0\036$C", '\0' <repeats 12 times>, "@©$C\000\000\000\000\000póA\000\000\000\000\000\020\000\000\000\000\000\000ÍbÜ«ª*\000\000\000\000\000\000\000\000\000\000\220ÉeÀª*\000\0008\037\022Àª*\000\000\210g3\031\000\000\000\000\001\000\000\000\000\000\000\000\220ÉeÀª*"...
        s2 = "\001\000\000\000\001\000\000\000\200\r,Àª*\000\000°\034$C\000\000\000\000t_\226«ª*\000\000\220ÉeÀª*\000\000\000\000\000\000ýÿÿÿ8\037\022Àª*\000\000\230YÏªª*\000\000\000\000\000\000\000\000\000\000\220ÉeÀª*\000\000\000\000\000\000\000\000\000\000³¡Ìªª*\000\000\b\000\000\000ª*\000\000\025yÏªª*\000\000\000\000ÿÿ\000\020\000\000\001\000\000\020\000\000\000\000`\aN\031\000\000\000\000\230YÏªª*\000\000\230\035$C\000\000\000\000`\aN\031\000\000\000\000\220ÉeÀª*\000\000\025ÊËªª*\000\000P\035$C\000\000\000\000;¾C\000\000\000\000\000P\035$C\000\000\000\000"...
#1  0x00002aaaabdc723d in acf_odbc_read (chan=0x2aaabce77f70, cmd=0x43242460 "MINIXEL_GOMIRROR", s=0x43242471 "14435180318", buf=0x43242580 "", len=4096) at func_odbc.c:361
        obj = (struct odbc_obj *) 0x19336788
        query = (struct acf_odbc_query *) 0x193fb4c0
        varname = "ARG4\000\000\000\000\214AJ\000\000\000"
        rowcount = "-1\000\000\000\000\000\000\000\000\000"
        colnames = (struct ast_str *) 0x2aaac0507f40
        res = 1126442000
        x = 4
        y = 4876819
        buflen = 0
        escapecommas = 1
        rowlimit = 1
        dsn = 0
        bogus_chan = 0
        args = {argc = 4, argv = 0x43242098, field = {0x43242471 "14435180318", 0x4324247d "6462742874", 0x43242488 "356", 0x4324248c "g729", 0x0 <repeats 96 times>}}
        stmt = (SQLHSTMT) 0x2aaac065c990
        colcount = 0
        indicator = 226786075760
        collength = 0
        resultset = (struct odbc_datastore *) 0x0
        row = (struct odbc_datastore_row *) 0x0
        sql = (struct ast_str *) 0x2aaac0121f20
        __PRETTY_FUNCTION__ = "acf_odbc_read"
        __FUNCTION__ = "acf_odbc_read"
#2  0x00000000004c029c in ast_func_read (chan=0x2aaabce77f70, function=0x43243590 "MINIXEL_GOMIRROR(14435180318,6462742874,356,g729)", workspace=0x43242580 "", len=4096) at pbx.c:2887
        res = 0
        u = (struct ast_module_user *) 0x2aaac000d100
        copy = 0x43242460 "MINIXEL_GOMIRROR"
        args = 0x43242471 "14435180318"
        acfptr = (struct ast_custom_function *) 0x192d9e50
        __PRETTY_FUNCTION__ = "ast_func_read"
#3  0x00000000004c085d in pbx_substitute_variables_helper_full (c=0x2aaabce77f70, headp=0x2aaabce78170, 
    cp1=0x2aaab0069270 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}", cp2=0x43247930 "", count=8143) at pbx.c:3021
        cp4 = 0x0
        tmp = 0x2aaab0069270 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}"
        whereweare = 0x2aaab00692d3 ""
        length = 0
        offset = 0
        offset2 = 2147483647
        isfunction = 1
        workspace = 0x43242580 ""
        ltmp = 0x43243590 "MINIXEL_GOMIRROR(14435180318,6462742874,356,g729)"
        var = 0x432445a0 "MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})"
        nextvar = 0x2aaab00692a0 "${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}"
        nextexp = 0x0
        nextthing = 0x2aaab00692a0 "${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}"
        vars = 0x43243590 "MINIXEL_GOMIRROR(14435180318,6462742874,356,g729)"
        vare = 0x2aaab00692d3 ""
        pos = 48
        brackets = 0
        needsub = 4
        len = 48
        __PRETTY_FUNCTION__ = "pbx_substitute_variables_helper_full"
        __func__ = "pbx_substitute_variables_helper_full"
#4  0x00000000004c0e49 in pbx_substitute_variables_helper (c=0x2aaabce77f70, 
    cp1=0x2aaab0069270 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}", 
    cp2=0x43247900 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=", count=8191) at pbx.c:3113
No locals.
#5  0x00000000004c0f2c in pbx_substitute_variables (passdata=0x43247900 "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=", datalen=8192, c=0x2aaabce77f70, e=0x2aaab00692e0) at pbx.c:3137
        tmp = 0x2aaab00692a0 "${MINIXEL_GOMIRROR(${EXTEN},${anix},${X},${CODEC})}"
#6  0x00000000004c11b0 in pbx_extension_helper (c=0x2aaabce77f70, con=0x0, context=0x2aaabce78330 "defaultproc", exten=0x2aaabce78380 "14435180318", priority=1, label=0x0, 
    callerid=0x2aaac01046d0 "6462742874", action=E_SPAWN, found=0x43249fe4, combined_find_spawn=1) at pbx.c:3199
        e = (struct ast_exten *) 0x2aaab00692e0
        app = (struct ast_app *) 0x2aaab0002d70
        res = -1132993808
        q = {incstack = {0x0 <repeats 128 times>}, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x2aaabce78330 "defaultproc"}
        passdata = "ARRAY(CARRIERLIST,Z,NANI,CLIST,PLIST,PROMPT,TO)=\00042874 Origin: C190.81.171.190\000j0\0000 P \000g729.72.44.195.165/14403197430-SIP/g729.207.210.254.106/14403197430-SIP/g729.72.0.222.242/998614403197430-,4,6462"...
---Type <return> to continue, or q <return> to quit--- 
        matching_action = 0
        __PRETTY_FUNCTION__ = "pbx_extension_helper"
#7  0x00000000004c2a5c in ast_spawn_extension (c=0x2aaabce77f70, context=0x2aaabce78330 "defaultproc", exten=0x2aaabce78380 "14435180318", priority=1, callerid=0x2aaac01046d0 "6462742874", 
    found=0x43249fe4, combined_find_spawn=1) at pbx.c:3678
No locals.
#8  0x00000000004c31c9 in __ast_pbx_run (c=0x2aaabce77f70, args=0x0) at pbx.c:3771
        digit = 0
        invalid = 0
        timeout = 0
        dst_exten = '\0' <repeats 16 times>, " ¡$C", '\0' <repeats 44 times>, "  $C\000\000\000\000( $C\000\000\000\0000 $C\000\000\000\0008 $C\000\000\000\000(¡$C", '\0' <repeats 12 times>, "0¡$C\000\000\000\000gc\200Í4", '\0' <repeats 27 times>, " b\200Í4\000\000\000\000\000\000\000\000\000\000@\000\000\000\000\000\000\000\0000\237$C", '\0' <repeats 12 times>, "\030", '\0' <repeats 15 times>, "\b $C\000\000\000\000\020 $C", '\0' <repeats 12 times>, "\030 $C", '\0' <repeats 16 times>, "\004\000\000"
        pos = 0
        found = 1
        res = 0
        autoloopflag = 0
        error = 0
        __PRETTY_FUNCTION__ = "__ast_pbx_run"
#9  0x00000000004c4766 in pbx_thread (data=0x2aaabce77f70) at pbx.c:4058
        c = (struct ast_channel *) 0x2aaabce77f70
#10 0x000000000051998e in dummy_start (data=0x2aaabc549040) at utils.c:968
        __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, -5052829765468530138, 0, 1126476096, 1106472960, 4096, -5052829765468529818, -5052829766557670829}, 
      __mask_was_saved = 0}}, __pad = {0x4324a1c0, 0x0, 0x2aaac00e1ad0, 0x0}}
        __cancel_routine = (void (*)(void *)) 0x431831 <ast_unregister_thread>
        __cancel_arg = (void *) 0x4324a940
        not_first_call = 0
        ret = (void *) 0x34cd34c898
        a = {start_routine = 0x4c4744 <pbx_thread>, data = 0x2aaabce77f70, name = 0x2aaabcff9350 "pbx_thread", ' ' <repeats 11 times>, "started at [ 4079] pbx.c ast_pbx_start()"}
#11 0x00000034cd806367 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#12 0x00000034cd0d2f7d in clone () from /lib64/libc.so.6
No symbol table info available.
(gdb) 
(gdb)