View previous topic :: View next topic |
Author |
Message |
jboergol at yahoo.com.ar Guest
|
Posted: Thu Mar 13, 2008 1:19 pm Post subject: [asterisk-users] Application registration on Asterisk 1.4 an |
|
|
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 |
|
Back to top |
|
|
kpfleming at digium.com Guest
|
Posted: Thu Mar 13, 2008 3:05 pm Post subject: [asterisk-users] Application registration on Asterisk 1.4 an |
|
|
jonas boering wrote:
Quote: | 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) |
|
Back to top |
|
|
|