<br><br><div class="gmail_quote">On Tue, Nov 24, 2009 at 6:03 PM, Lei Tang <span dir="ltr">&lt;<a href="mailto:lei.tlfly@gmail.com">lei.tlfly@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
you can do this in follow steps:<br>1.edit default.xml diaplan config file in your fs config directory(FS/conf/dialplan/default.xml), and section<br>     &lt;extension name=&quot;ivr_demo2&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^\*114$&quot;&gt;<br>

        &lt;action application=&quot;lua&quot; data=&quot;../ivr/test.lua&quot;/&gt;<br>      &lt;/condition&gt;<br>     &lt;/extension&gt;<br>2. edit your ivr script, your can refer to <a href="http://wiki.freeswitch.org/wiki/Mod_lua" target="_blank">http://wiki.freeswitch.org/wiki/Mod_lua</a> for how to write ivr script in lua.<br>

3. connect your sip phone to fs, and dial 114, this will launch your ivr application<br>   <br></blockquote><div><br>You can also do IVRs with static XML. I recommend you try out the demo IVR by dialing 5000. Now go look at the two main files that we used to build that IVR:<br>
<br>conf/autoload_configs/ivr.conf.xml (menu structure)<br>conf/lang/en/demo/demo-ivr.xml (phrase macros)<br><br>it&#39;s overwhelming at first, however once you get the hang of it you&#39;ll appreciate how powerful it is. The wiki and the sample XML config files have lots of information so be sure to read as much as you can and try things. You can&#39;t break anything. :)<br>
<br>-MC<br><br></div></div>