On Thu, 13 May 2010, Pham Quy wrote:

> Hi all,
>
> I use asterisk-1.6.2.7 and asterisk addon version 1.6.2.1.
>
> It started ok with out cdr_addon_mysql.o. But when I put
> cdr_addon_mysql.o in to modules folder, it fail at start and the
> following out has been thrown:
>
> ----------
> [r...@localhost modules]# /usr/sbin/safe_asterisk: line 145: 13270
> Segmentation fault (core dumped) nice -n $PRIORITY ${ASTBINDIR}/asterisk
> -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
> Asterisk exited with exit status 139
> Asterisk exited on signal 11
> Automatically restarting Asterisk.
> -----------
>
> What is the problem?

The problem is...

You have no clue[s] :)

First off, the module should be cdr_addon_mysql.so, not cdr_addon_mysql.o. 
If you don't have the "so" in "/usr/lib/asterisk/modules/" something is 
wrong with your build.

Try something like this:

        sudo -u <whatever-user-runs-asterisk-on-your-system>\
                /usr/sbin/asterisk -c -d -d -d -f -g -n -v -v -v

Or, you can start Asterisk without loading cdr_addon_mysql.so and then 
load it from the Asterisk CLI. It sounds like you are auto-loading modules 
so you could add "noload=cdr_addon_mysql.so" to 
"/etc/asterisk/modules.conf" to get Asterisk running and then load it with 
something like "load cdr_addon_mysql.so"

I'm a 1.2 Luddite so the commands may have changed slightly. Also, 
depending on the specifics of your installation, the paths may be 
different.

See if this gives you any clues.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwa...@sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to