<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Maybe I'm asking something silly but..... How can I
register my own app with * ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've made a simple .so , but I cannot find it in
asterisk when i type "show applications"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is the code:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#include <asterisk/lock.h><BR>#include
<asterisk/file.h><BR>#include <asterisk/logger.h><BR>#include
<asterisk/channel.h><BR>#include <asterisk/pbx.h><BR>#include
<asterisk/module.h><BR>#include <asterisk/translate.h><BR>#include
<string.h><BR>#include <stdlib.h><BR>#include
<pthread.h></FONT></DIV>
<DIV><FONT face=Arial size=2>static char *tdesc = "Alex's app";</FONT></DIV>
<DIV><FONT face=Arial size=2>static char *app = "Alex";</FONT></DIV>
<DIV><FONT face=Arial size=2>static char *synopsis = "Alex test";</FONT></DIV>
<DIV><FONT face=Arial size=2>static char *descrip ="Test";</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>STANDARD_LOCAL_USER;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>LOCAL_USER_DECL;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>static int alex_exec(struct ast_channel *chan, void
*data)<BR>{<BR> return 0;</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV>
<DIV></FONT><FONT face=Arial size=2>int
unload_module(void)<BR>{<BR>
STANDARD_HANGUP_LOCALUSERS;<BR> return
ast_unregister_application(app);<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>int
load_module(void)<BR>{<BR> return
ast_register_application(app, alex_exec, synopsis, descrip);<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>char
*description(void)<BR>{<BR> return
tdesc;<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>int
usecount(void)<BR>{<BR> int
res;<BR>
STANDARD_USECOUNT(res);<BR> return
res;<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>char
*key()<BR>{<BR> return
ASTERISK_GPL_KEY;<BR>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've put the so in apps/ but no
results..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks a lot for any help..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Alex</DIV></FONT></BODY></HTML>