How to use chan_dahdi functions from app

Hi, I would like to write an application in C which can call functions in chan_dahdi directly. For example my program wants to monitor a particular channel, whenever a call comes I have to answer this and store the audio into a file. These should be done using chan_dahdi.so functions, not using the normal dial plans. Anybody have any idea about this? I couldn’t found any documentation related to this ? somebody please help me

Thanks!!!

Do anybody know how to write new asterisk applications using C ? Can anybody point out some reference for this ??

Thanks in advance

Hi All,

no reply at all :frowning:(

Basically i want to write a C application which will integrate asterisk with external applications like sphinx. In this instead of using Dialplan functions, I would like to directly call asterisk functions from C app. Do anybody have experiance/knowledge in this ? Please reply something.

Thanks!!!