Posted: Wed Jul 19, 2006 1:51 pm Post subject: [asterisk-doc] How to write new application for Asterisk by
Quote:
Currently, there's not a lot of documentation available for how to
develop new Asterisk modules. I suggest you look at app_skel.c in the
source code, as well as the source code for the other applications,
functions, etc. If anyone is volunteering to help document the creation
of Asterisk modules, I'm certainly interested.
I'd like to see this happen, too. When I first got things going, I
wanted to write my own math application to simplify reading bit flags in
a variable. I finally copied the skel (I guess that's what it's for) and
was able to do it. The problem was that without looking at the source,
it was hard to know how certaing functions worked. Sure, I copied the
args and hoped for the best, but I'd expect a minimal doc to exist if we
want to see interesting apps evolve.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Posted: Wed Jul 19, 2006 4:09 pm Post subject: [asterisk-doc] How to write new application for Asterisk by
Quote:
I'll create a section in the docs for it. Randy -- maybe you can throw
together a quick doc about the things you learned? 5 paragraphs? I'll
edit and put it into the DocBook format and put it in the docs.
Would that it were (or something)
I didn't learn anything except how to hack together an app, place it in
the makefile and use it in asterisk. Shortly after this major triumph,
functions and math became way more powerful and I haven't added it since.
So, to sum up, all I know is to copy the skeleton and hack :)
Actually, allthat's needed would be a "bridge" between source and make
where an experienced asterisk developper runs through the various calls
to functions to register, unregister (ya, those were easy) and get args
from the stack, etc.
r
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Posted: Thu Jul 20, 2006 6:12 am Post subject: [asterisk-doc] How to write new application for Asterisk by
Quote:
C'mon, you learned nothing about how to build your own Asterisk
Application?
Maybe I could put something so bad that a real programmer would feel
obliged to correct it ;)
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Posted: Thu Jul 20, 2006 5:14 pm Post subject: [asterisk-doc] How to write new application for Asterisk by
When I write my app, how do I link it into Asterisk?
Quote:
Why is attempting to answer the channel important in my app?
For an alias like datetime, why does load and unload use res |= instead
of res = ? (OK, this may be my lack of C knowledge -- is it just
concat?)
Once I write it, what's the testing procedure?
Is there anything else to do other than write app_myapp.c?
What other #include files might be useful in writing apps?
When I test, I get (this common error). How to fix?
And the all-important "how do I wrote those oh-so helpful 'show
application' texts
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
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