Write your own asterisk application
Maybe you want to do something that does not exist on asterisk or you want to write your own asterisk applicaiton.
if so, you may read this sample provide in asterisk source code under apps/app_skel.c
Basicly, what you need to know, is at startup, asterisk will load your application by running the load_module function. That function will register your new application with it’s name and execute function (app_exec in this case). When that application will be call from the dialplan for example, app_exec will be execute.
You can see the code here
http://svn.digium.com/svn/asterisk/trunk/apps/app_skel.c
August 1, 2009 | Filed Under Tricks
Comments
Leave a Reply