freeswitch/src/mod
Anthony Minessale 60434decf5 ENUM Support
mod_enum can be used as a dialplan app, an api call from the console or as a dialplan interface.


Dialplan Interface:
put enum as the dialplan parameter in an endpoint module
i.e. instead of "XML" set it to "enum" or "enum,XML" for fall through.

Dialplan App:
This example will do a lookup and set the a variable that is the proper
dialstring to call all of the possible routes in order of preference according to 
the lookup and the order of the routes in the enum.conf section.

<extension name="tollfree">
  <condition field="destination_number" expression="^(18(0{2}|8{2}|7{2}|6{2})\d{7})$">
    <action application="enum" data="$1"/>
    <action application="bridge" data="${enum_auto_route}"/>
  </condition>
</extension>

You can also pick an alrernate root:
<action application="enum" data="$1 myroot.org"/>	


API command:
at the console you can say:
enum <number> [<root>]

The root always defaults to the one in the enum.conf section.




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3494 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-30 21:28:32 +00:00
..
applications ENUM Support 2006-11-30 21:28:32 +00:00
asr_tts/mod_cepstral Add magic comments for emacs and vi in source and header files to properly format and display tabs vs. spaces in those editors: 2006-11-27 22:30:48 +00:00
codecs ENUM Support 2006-11-30 21:28:32 +00:00
dialplans ENUM Support 2006-11-30 21:28:32 +00:00
directories/mod_ldap Add magic comments for emacs and vi in source and header files to properly format and display tabs vs. spaces in those editors: 2006-11-27 22:30:48 +00:00
endpoints add some vard 2006-11-28 16:45:25 +00:00
event_handlers more ani2 -> aniii changes. Note, if you have mysql tables setup, you may need to alter them 2006-11-29 14:32:11 +00:00
formats Add magic comments for emacs and vi in source and header files to properly format and display tabs vs. spaces in those editors: 2006-11-27 22:30:48 +00:00
languages api tweaks 2006-11-29 17:10:40 +00:00
loggers Add magic comments for emacs and vi in source and header files to properly format and display tabs vs. spaces in those editors: 2006-11-27 22:30:48 +00:00
timers/mod_softtimer Add magic comments for emacs and vi in source and header files to properly format and display tabs vs. spaces in those editors: 2006-11-27 22:30:48 +00:00
xml_int/mod_xml_rpc Add magic comments for emacs and vi in source and header files to properly format and display tabs vs. spaces in those editors: 2006-11-27 22:30:48 +00:00