Thanks Kevin, After looking at the skeleton application, I inserted the line
*AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY,"My Prepaid Application");* To the end of the application. I also changed all references to pbx_exec(chan,app,data) to include three parameters instead of four (I guess the APIs have changed, the last parameter was an int). I no longer get the original message about failure to load, however, I do get a new message; *asterisk: symbol lookup error: /usr/lib/asterisk/modules/app_prepaid.so: undefined symbol: mysql_init * Just so you know, I have res_config_mysql.so loaded already and I thought this would provide this symbol. I have played around with my Makefile in case it was a linking issue but cant seem to get it right. I enabled the NOISY_BUILD var in the Makefile in the asterisk root directory, so the actual gcc build command is displayed, which is: *gcc -o app_prepaid.o -c app_prepaid.c -pthread -I/opt/bristuff-0.4.0-RC3c/asterisk-1.4.21.2/include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include /opt/bristuff-0.4.0-RC3c/asterisk-1.4.21.2/include/asterisk/autoconfig.h -march=i686 -O6 -fPIC -DAST_MODULE=\"app_prepaid\" -MD -MT app_prepaid.o -MF .app_prepaid.o.d -MP* Any ideas? Thanks, Mos 2008/12/3 Kevin P. Fleming <[EMAIL PROTECTED]> > Mosiuoa Tsietsi wrote: > > > I have browsed through a couple of posts that deal with the failure of > > applications that originally worked on asterisk 1.2 but fail on asterisk > > 1.4, but can't seem to understand what I need to change in my > > installation. I also went through the CHANGES.txt file in my asterisk > > source directory, and still was none the wiser. > > The simplest thing for you to do is to review the changes the sample > application (app_skel) that we ship with Asterisk; the changes made in > app_skel.c between 1.2 and 1.4 are the changes that need to be made to > all loadable modules to work with the 1.4 module loader. > > -- > Kevin P. Fleming > Director of Software Technologies > Digium, Inc. - "The Genuine Asterisk Experience" (TM) > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
