Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Application registration on Asterisk 1.4 an


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
jboergol at yahoo.com.ar
Guest





PostPosted: Thu Mar 13, 2008 1:19 pm    Post subject: [asterisk-users] Application registration on Asterisk 1.4 an Reply with quote

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





PostPosted: Thu Mar 13, 2008 3:05 pm    Post subject: [asterisk-users] Application registration on Asterisk 1.4 an Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services