[Freeswitch-dev] how to connect a dialplan with my own module
Michael Jerris
mike at jerris.com
Sat Oct 3 08:56:37 PDT 2009
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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091003/cc749b81/attachment.html
More information about the FreeSWITCH-dev
mailing list