jonas boering
2008-Mar-13 18:19 UTC
[asterisk-users] Application registration on Asterisk 1.4 and 1.6?
Hi, I have implemented a custom application module based in some esqueletone code I will provide below. I have tested it with asterisk 1.2.23 and it works fine. But when I tested the same application with a newest version of asterisk like 1.4.* it always returns an error trying to load the module or more specific, trying to register the application. here is the code: int load_module(void){ int res; res = ast_register_application(app, example_exec, synopsis, descrip); return res; } int reload(void){ return load_module(); } int unload_module(void){ //STANDARD_HANGUP_LOCALUSERS; return ast_unregister_application(app); } char *description(void){ return tdesc; } int usecount(void){ int res; //STANDARD_USECOUNT(res); return res; } char *key(){ return ASTERISK_GPL_KEY; } Have the registration way that the applications are registered in arterisk 1.2.* changed to much from version 1.4.* and 1.6.*? Best Regards. Tarjeta de cr?dito Yahoo! de Banco Supervielle. Solicit? tu nueva Tarjeta de cr?dito. De tu PC directo a tu casa. www.tuprimeratarjeta.com.ar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080313/ad143096/attachment.htm
Kevin P. Fleming
2008-Mar-13 20:05 UTC
[asterisk-users] Application registration on Asterisk 1.4 and 1.6?
jonas boering wrote:> Have the registration way that the applications are registered in arterisk 1.2.* changed to much from version 1.4.* and 1.6.*?Yes, they are almost completely different. You would be best off to compare the source code of a simple application between 1.2 and 1.4 to learn what the differences are. -- Kevin P. Fleming Director of Software Technologies Digium, Inc. - "The Genuine Asterisk Experience" (TM)
jonas boering
2008-Mar-25 16:47 UTC
[asterisk-users] Application registration on Asterisk 1.4 and 1.6?
Hi Kevin I've just arrived from my holidays I have reviewed my emails and saw that for some reason most part of my last message appears to be cut off. Continuing with the previous discussion, can you provide an example skeleton code of how the new registration way works on asterisk 1.4 and 1.6? best regards. ----- Mensaje original ---- De: Kevin P. Fleming <kpfleming at digium.com> Para: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Enviado: jueves 13 de marzo de 2008, 17:05:18 Asunto: Re: [asterisk-users] Application registration on Asterisk 1.4 and 1.6? jonas boering wrote:> Have the registration way that the applications are registered in arterisk 1.2.* changed to much from version 1.4.* and 1.6.*?Yes, they are almost completely different. You would be best off to compare the source code of a simple application between 1.2 and 1.4 to learn what the differences are. -- 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 Los referentes m?s importantes en compra/ venta de autos se juntaron: Demotores y Yahoo! Ahora comprar o vender tu auto es m?s f?cil. Vist? ar.autos.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080325/63f595ed/attachment-0001.htm
jonas boering
2008-Mar-26 17:15 UTC
[asterisk-users] Application registration on Asterisk 1.4 and 1.6?
Thank you very much Kevin for your help and attention. best regards. ----- Mensaje original ---- De: Kevin P. Fleming <kpfleming at digium.com> Para: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Enviado: martes 25 de marzo de 2008, 13:59:13 Asunto: Re: [asterisk-users] Application registration on Asterisk 1.4 and 1.6? jonas boering wrote:> Hi Kevin I've just arrived from my holidays I have reviewed my emails > and saw that for some reason most part of my last message appears to be > cut off. > > Continuing with the previous discussion, can you provide an example > skeleton code of how the new registration way works on asterisk 1.4 and 1.6?Of course... it's already present in the tree, amazingly it is even called 'app_skel.c'. -- 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 Yahoo! Encuentros. Ahora encontrar pareja es mucho m?s f?cil, prob? el nuevo Yahoo! Encuentros http://yahoo.cupidovirtual.com/servlet/NewRegistration -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080326/8ce9eb72/attachment.htm
jonas boering
2008-Mar-28 21:36 UTC
[asterisk-users] Application registration on Asterisk 1.4 and 1.6?
Hi Kevin, I need I little bit of help again. I have installed in my PC for testing the last available version of asterisk for testings. And I am using easyeclipse with cdt plugin to create a C project and compile the app_skel.c source file from the asterisk-1.4.18.1. (GCC 4.1.3) I noticed some compilation problems: - load_module and unload_module can't be static. - AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Skeleton (sample) Application") at the bottom need to be commented. error: ?AST_MODULE? doesn't be declared here (not a function). This is rare, because if do Ctrl + Click over AST_MODULE_INFO_STANDARD, the eclipse brings me to module.h file where is the #define clause. Making the necessary changes it compile but when I try to load the module in the CLI it returns this message [Mar 28 18:03:47] WARNING[18665]: loader.c:376 load_dynamic_module: Module 'app_skel.so' did not register itself during load [Mar 28 18:03:47] WARNING[18665]: loader.c:649 load_resource: Module 'app_skel.so' could not be loaded. Any Ideas? best regards. ---- Mensaje original ---- De: Kevin P. Fleming <kpfleming at digium.com> Para: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Enviado: martes 25 de marzo de 2008, 13:59:13 Asunto: Re: [asterisk-users] Application registration on Asterisk 1.4 and 1.6? jonas boering wrote:> Hi Kevin I've just arrived from my holidays I have reviewed my emails > and saw that for some reason most part of my last message appears to be > cut off. > > Continuing with the previous discussion, can you provide an example > skeleton code of how the new registration way works on asterisk 1.4 and 1.6?Of course... it's already present in the tree, amazingly it is even called 'app_skel.c'. -- 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 Tarjeta de cr?dito Yahoo! de Banco Supervielle. Solicit? tu nueva Tarjeta de cr?dito. De tu PC directo a tu casa. www.tuprimeratarjeta.com.ar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080328/295440d7/attachment.htm