<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I don't know how to do IVR this way but… this may help you get started: What you want is to dynamically create early media. Our calls use early media to say hello "name" to the person and change instructions and the music in early media. This is done by setting the "ringback" variable. Before the bridge I call a LUA program that looks up the incoming number and creates the early media string and sets the "ringback" variable before returning (it does many other things as well).&nbsp;If all you want to do when someone calls in is to say "Hi Mario, you have a credit of 34.64", it can be done with a little work. This is NOT IVR though.<div><div><br></div><div><div>Before messing with IVR note this IMPORTANT FACT: Most (all?) ITSPs limit how long they will ring (send early media) before doing something else, in my case the max I can set ringing to is 60 seconds before they send to VM, etc on their end. That means I am limited to early media of 60 seconds which my LUA program dynamically calculates and ensures we don't go past 55 seconds.</div><div>Good luck</div><div>Mario G</div><div><br></div><div><div>On Jan 28, 2014, at 8:26 AM, Shahzad Bhatti &lt;<a href="mailto:shahzad.bhatti@g-r-v.com">shahzad.bhatti@g-r-v.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div><div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="font-family:courier new,monospace">Hello i want to play an ivr using phrase to say the caller credit, i do this after answer and it is working i want to know that is it also possible to play IVR before answer using <span class=""><span class="">execute_on_preanswer like </span></span></span><br>
<span class=""><span class=""></span></span></blockquote><span style="font-family:arial,helvetica,sans-serif"><b><span class=""><span class="">&lt;action</span> <span class="">application</span>=<span class="">"set"</span> <span class="">data</span>=<span class="">"execute_on_preanswer=phrase saycredit,34:64:97"</span> <span class="">/&gt;</span></span></b></span><br>
</div>here is my xml_curl xml for the call<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://pastebin.freeswitch.org/21909">http://pastebin.freeswitch.org/21909</a><br></div>i want to know is it possible and if possible then what is the correct way i want to play IVR on legA but before answering the leg<br>
<br></div>Regards<br><br></div>Shahzad Bhatti<br></div>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>http://www.freeswitchsolutions.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>http://www.cudatel.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://wiki.freeswitch.org<br>http://www.cluecon.com<br><br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></div></body></html>