You are wanting to execute a dialplan application. Take a look at
mod_skel, or a simple module in src/mod/applications such as mod_rss
for an example of how to write the code. In your module you set the
name of the application you are registering and then you use that name
in the dialplan.
Mike
On Oct 3, 2009, at 11:45 AM, Francisco Scaramanga wrote:
I want to create my own freeswitch module which should simply answer
a call and write the audiostream into a file.
Here is the dialplan:
<extension name="my new module">
<condition field="destination_number" expression="^54321$">
<action application="mod_myModul" data=""/>
</condition>
</extension>
The question is how the dialplan entry (application="mod_myModule")
gets associated with mod_myModul so that the dialplan actually
executes mod_myModul? I need to understand the mechanism in general
but I can't find useful documentation for that.
_______________________________________________
FreeSWITCH-dev mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org