<br><br><div class="gmail_quote">On Tue, Nov 24, 2009 at 6:03 PM, Lei Tang <span dir="ltr"><<a href="mailto:lei.tlfly@gmail.com">lei.tlfly@gmail.com</a>></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> <extension name="ivr_demo2"><br> <condition field="destination_number" expression="^\*114$"><br>
<action application="lua" data="../ivr/test.lua"/><br> </condition><br> </extension><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's overwhelming at first, however once you get the hang of it you'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't break anything. :)<br>
<br>-MC<br><br></div></div>