[asterisk-users] adding modules
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Tue Oct 6 11:43:22 CDT 2009
On Tue, Oct 06, 2009 at 06:18:58PM +0200, mickael ropars wrote:
> Hi,
>
> I am working on Trixbox. I want to create my own dial() function (named
> specificdial()) and I want to know how I can create a module and integrate
> the module in the trixbox plateform.
The source for Dial() is in apps/app_dial.c .
If you use a version based on Asterisk 1.6.0, see
http://svn.asterisk.org/svn/asterisk/branches/1.6.0/apps/app_dial.c
http://svnview.digium.com/svn/asterisk/branches/1.6.0/apps/app_dial.c?view=markup
Note the line 'res = ast_register_application(app, dial_exec, synopsis,
descrip);
' in load_module.
app_kel.c in the same directory is a simpler example of an application.
See also http://www.asterisk.org/developers/
Trixbox is basically a Centos system. Many of the development tools are
already installed. However you should start by making sure you can
rebuild asterisk. Get the .src.rpm package of Asterisk that you want to
modify, and make sure that a 'rpm --rebuild' of it works on your build
system.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list