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:[email protected]
+972-50-7952406           mailto:[email protected]
http://www.xorcom.com  iax:[email protected]/tzafrir

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to