[asterisk-users] asterisk11.5.1 module not load why ? any help

hkc323 hkc323 at gmail.com
Fri Mar 7 00:38:39 CST 2014


===================================================================
Core was generated by `/usr/sbin/asterisk -f -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
#0  0x081b138e in ast_skip_blanks (str=0x0) at /usr/src/asterisk/asterisk-
11.5.1/include/asterisk/strings.h:90
90	AST_INLINE_API(
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.5-
7.el6_0.i686 cyrus-sasl-lib-2.1.23-8.el6.i686 db4-4.7.25-16.el6.i686 
elfutils-libelf-0.152-1.el6.i686 expat-2.0.1-11.el6_2.i686 gnutls-2.8.5-
4.el6_2.2.i686 keyutils-libs-1.4-4.el6.i686 krb5-libs-1.10.3-10.el6_4.3.i686 
libacl-2.2.49-4.el6.i686 libattr-2.4.44-4.el6.i686 libcap-2.16-5.2.el6.i686 
libcom_err-1.41.12-14.el6.i686 libcurl-7.19.7-26.el6_2.4.i686 libgcc-4.4.7-
3.el6.i686 libgcrypt-1.4.5-9.el6_2.2.i686 libgpg-error-1.7-4.el6.i686 
libical-0.43-6.el6.i686 libidn-1.18-2.el6.i686 libproxy-0.3.0-2.el6.i686 
libselinux-2.0.94-5.3.el6_4.1.i686 libsrtp-1.4.4-4.20101004cvs.el6.i686 
libssh2-1.2.2-7.el6.i686 libtasn1-2.3-3.el6.i686 libtool-ltdl-2.2.6-
15.5.el6.i686 libuuid-2.17.2-12.9.el6_4.3.i686 libxml2-2.7.6-12.el6_4.1.i686 
lm_sensors-libs-3.1.1-17.el6.i686 lua-5.1.4-4.1.el6.i686 mysql-connector-
odbc-5.1.5r1144-7.el6.i686 mysql-libs-5.1.69-1.el6_4.i686 ncurses-libs-5.7-
3.20090208.el6.i686 neon-0.29.3-3.el6_4.i686 net-snmp-libs-5.5-
44.el6_4.1.i686 nspr-4.8.6-1.el6.i686 nss-3.12.7-2.el6.i686 nss-softokn-
freebl-3.12.7-1.1.el6.i686 nss-util-3.12.7-1.el6.i686 openldap-2.4.19-
15.el6.i686 openssl-1.0.0-27.el6_4.2.i686 pakchois-0.4-3.2.el6.i686 perl-
libs-5.10.1-136.el6.i686 popt-1.13-7.el6.i686 rpm-libs-4.8.0-32.el6.i686 
sqlite-3.6.20-1.el6.i686 tcp_wrappers-libs-7.6-57.el6.i686 unixODBC-2.2.14-
12.el6_3.i686 xz-libs-4.999.9-0.3.beta.20091007git.el6.i686 zlib-1.2.3-
29.el6.i686
(gdb) 
(gdb) 
(gdb) bt
#0  0x081b138e in ast_skip_blanks (str=0x0) at /usr/src/asterisk/asterisk-
11.5.1/include/asterisk/strings.h:90
#1  0x080d40cd in __ast_cli_register (e=0x63d2478, ed=0x0) at cli.c:2120
#2  0x080d442d in ast_cli_register (e=0x63d2478) at cli.c:2178
#3  0x080d4456 in ast_cli_register_multiple (e=0x63d2000, len=13) at 
cli.c:2189
#4  0x063c09e1 in load_module () at app_confbridge.c:4741
#5  0x0812ba5d in start_resource (mod=0x90aeca0) at loader.c:845
#6  0x0812c430 in load_resource_list (load_order=0xbfaf4c50, 
global_symbols=0, mod_count=0xbfaf4c48) at loader.c:1045
#7  0x0812ca2e in load_modules (preload_only=0) at loader.c:1198
#8  0x080895f7 in main (argc=4, argv=0xbfaf6164) at asterisk.c:41
============================================================================
==
static struct ast_cli_entry cli_confbridge[] = {
        AST_CLI_DEFINE(handle_cli_confbridge_list, "List conference bridges 
and participants"),
        AST_CLI_DEFINE(handle_cli_confbridge_kick, "Kick participants out of 
conference bridges"),
        AST_CLI_DEFINE(handle_cli_confbridge_mute, "Mute a participant"),
        AST_CLI_DEFINE(handle_cli_confbridge_unmute, "Unmute a 
participant"),
        AST_CLI_DEFINE(handle_cli_confbridge_lock, "Lock a conference"),
        AST_CLI_DEFINE(handle_cli_confbridge_unlock, "Unlock a 
conference."),
        AST_CLI_DEFINE(handle_cli_confbridge_start_record, "Start recording 
a conference"),
        AST_CLI_DEFINE(handle_cli_confbridge_stop_record, "Stop recording a 
conference."),
        AST_CLI_DEFINE(handle_cli_confbridge_channel_count, "show confbridge 
chanel count"), //sbt 
        AST_CLI_DEFINE(confbridgeadmin_cmd,"Execute Arrival of Marked user 
on a conference"), //sbt
        AST_CLI_DEFINE(confbridgecm_cmd, "Show Number of User(s) in 
Conference." ),
        AST_CLI_DEFINE(count_exec, "Show Number of User(s) in Conference." 
),
        AST_CLI_DEFINE(admincount_exec, "Show Number of adminUser(s) in 
Conference." ),

};
====================================
/*! \brief Called when module is being loaded */
static int load_module(void)
{
        ast_verb(3 ,"==Inside load_module==");

        int res = 0;

        //static const char * const app  = "ConfBridge";
        //static const char * const app  = "ConfBridge";

        if (conf_load_config(0)) {
                ast_verb(3, "Unable to load config. Not loading module.\n");
                ast_log(LOG_ERROR, "Unable to load config. Not loading 
module.\n");
                return AST_MODULE_LOAD_DECLINE;
        }
        if ((ast_custom_function_register(&confbridge_function))) {
                return AST_MODULE_LOAD_FAILURE;
        }
        if ((ast_custom_function_register(&confbridge_info_function))) {
                return AST_MODULE_LOAD_FAILURE;
        }
        if (!(record_tech.capabilities = ast_format_cap_alloc())) {
                return AST_MODULE_LOAD_FAILURE;
        }
        ast_format_cap_add_all(record_tech.capabilities);
        if (ast_channel_register(&record_tech)) {
                ast_log(LOG_ERROR, "Unable to register ConfBridge 
recorder.\n");
                return AST_MODULE_LOAD_FAILURE;
        }
        /* Create a container to hold the conference bridges */
        if (!(conference_bridges = 
ao2_container_alloc(CONFERENCE_BRIDGE_BUCKETS, conference_bridge_hash_cb, 
conference_bridge_cmp_cb))) {
                 ast_verb(3, "Unable to  Create a container to hold the 
conference bridges .\n");
                return AST_MODULE_LOAD_FAILURE;
        }
        if (ast_register_application_xml(app, confbridge_exec)) {
                ast_verb(3,"\n inside ast_register_application_xml 
conditdion app ==\n ");
                ao2_ref(conference_bridges, -1);
                return AST_MODULE_LOAD_FAILURE;
        }

        ast_verb(3,"== Before ast_cli_register_multiple  ==\n ");
  //same as unregister .
        ast_cli_register_multiple(cli_confbridge, sizeof(cli_confbridge) / 
sizeof(struct ast_cli_entry));
        ast_verb(3,"== after  ast_cli_register_multiple  ==\n ");

}





More information about the asterisk-users mailing list