[asterisk-users] Error at start of asterisk with cdr_addon_mysql.o

Pham Quy quyps at vega.com.vn
Thu May 13 02:25:49 CDT 2010


On Wed, 2010-05-12 at 22:10 -0700, Steve Edwards wrote:
> 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:
> >
> > ----------
> > [root at 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       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
> Newline                                              Fax: +1-760-731-3000
> 

Hi, 

Yes, it was a typing mistake, i meant cdr_addon_mysql.so. After manually
loadind the module, it turn out there is an mistake in my cdr_mysql.conf

I fixed it and everything work fine.

Thanks.
Quyps




More information about the asterisk-users mailing list