<p dir="ltr">Then it means the phone does not support playing early media.&nbsp; Try some other phones.</p>
<div class="gmail_quote">On Feb 3, 2014 6:14 AM, &quot;Shahzad Bhatti&quot; &lt;<a href="mailto:shahzad.bhatti@g-r-v.com">shahzad.bhatti@g-r-v.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Anthony Minessale and Mario G thanks for your reply! <br>Anthony Minessale, as u say that provider does not let me to do that but i have no provider in between as i am a soft-phone eyeBeam or xlite that directly registered to FreeSwitch and i try using pre_answer also with playback but these wouldn&#39;t work for me and if i answer the call and then playback then it works<br>

</div>my syntax for playback is as<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font size="4"><span style="font-family:arial narrow,sans-serif">&lt;action application=&quot;playback&quot; data=&quot;{timeout=20000}/usr/local/sounds/1.wav&quot; /&gt;</span></font><br>

<div><div><div class="gmail_extra"><div class="gmail_quote"><div>Regards<br></div><div>Shahzad Bhatti<br>&nbsp;<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

---------- Forwarded message ----------<br>From:&nbsp;Mario G &lt;<a href="mailto:mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>&gt;<br>To:&nbsp;FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>

Cc:&nbsp;<br>Date:&nbsp;Sat, 1 Feb 2014 09:29:17 -0800<br>Subject:&nbsp;Re: [Freeswitch-users] Play IVR Before Answer<br><div style="word-wrap:break-word">Good point, I forgot to mention that. An example: when I was using Voip-your-life custom early media worked, after about 18 months, V-Y-L &quot;upgraded&quot; their system and custom early media stopped working. After days/nights on the phone with them I got them to put me back on their old system. I also was using Callcentric which always supported custom early media and I still use them, I dropped V-Y-L. Contact your ITSP and let them know.&nbsp;<div>

Mario G</div><div><br><div><div>On Jan 31, 2014, at 7:36 AM, Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt; wrote:</div><br><blockquote type="cite">
<div dir="ltr">
If you see it saying its playing early media and you can&#39;t hear it, that means the provider does not let you do it.<div>Just adding playback as the first thing in your dialplan would automatically invoke playback in early media so if that doesn&#39;t work you are out of luck.</div>


</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 31, 2014 at 5:41 AM, Shahzad Bhatti <span dir="ltr">&lt;<a href="mailto:shahzad.bhatti@g-r-v.com" target="_blank">shahzad.bhatti@g-r-v.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>i observe on my phone that this is possible as when i on my mobile when bill is not paid and outgoing is blocked then when try to call some number then Message is played and call hangup. just like above Scenario i want to play message using IVR or may with some other application to tell the caller what is his current credit on leg A and then bridge call to leg B without answer.<br>



<br></div>any help will be appreciated<br><br></div><div>you can get the log of cli here&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://pastebin.freeswitch.org/21912" target="_blank">http://pastebin.freeswitch.org/21912</a><br></div><div>and example of dialplan here&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://pastebin.freeswitch.org/21913" target="_blank">http://pastebin.freeswitch.org/21913</a></div>



<br>Regards<span><font color="#888888"><br></font></span></div><span><font color="#888888">Shahzad Bhatti</font></span><div><div><br><div><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>---------- Forwarded message ----------<br>From:&nbsp;Shahzad Bhatti &lt;<a href="mailto:shahzad.bhatti@g-r-v.com" target="_blank">shahzad.bhatti@g-r-v.com</a>&gt;<br>To:&nbsp;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>



Cc:&nbsp;<br>Date:&nbsp;Wed, 29 Jan 2014 18:13:34 +0500<br>Subject:&nbsp;Re: [Freeswitch-users] Play IVR Before Answer<br><div dir="ltr"><div><div><div><div><div>Thanks Mario G for your reply i worked through it using ringback and play file using local stream and find that freeswitch send early media but unable to listen on leg A so i remove the line of answer and play a sample ivr for test and also remove bridge the call to leg B for testing and found that during early media state ivr is playing and log show that it plays but on leg A i am unable to listen anything from that ivr but a ring tone and when the ivr completed the channel state is returned to hangup<br>




</div>so i think i am near but missing some thing in configuration so anyone can reply that what i do to listen ivr before answer through early media <br></div>here is my new log<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://pastebin.freeswitch.org/21912" target="_blank">http://pastebin.freeswitch.org/21912</a><br>




</div>and here is my dialplan for the above call<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://pastebin.freeswitch.org/21913" target="_blank">http://pastebin.freeswitch.org/21913</a><br></div>Regards<br></div>Shahzad Bhatti<br>



<div>
<div><br><div><br><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---------- Forwarded message ----------<br>




From:&nbsp;Mario G &lt;<a href="mailto:mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>&gt;<br>To:&nbsp;FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>



Cc:&nbsp;<br>
Date:&nbsp;Tue, 28 Jan 2014 13:08:24 -0800<br>Subject:&nbsp;Re: [Freeswitch-users] Play IVR Before Answer<br><div style="word-wrap:break-word">I don&#39;t know how to do IVR this way but&hellip; this may help you get started: What you want is to dynamically create early media. Our calls use early media to say hello &quot;name&quot; to the person and change instructions and the music in early media. This is done by setting the &quot;ringback&quot; variable. Before the bridge I call a LUA program that looks up the incoming number and creates the early media string and sets the &quot;ringback&quot; variable before returning (it does many other things as well).&nbsp;If all you want to do when someone calls in is to say &quot;Hi Mario, you have a credit of 34.64&quot;, 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&#39;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" target="_blank">shahzad.bhatti@g-r-v.com</a>&gt; wrote:</div><br><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><span>execute_on_preanswer like </span></span></span><br>





<span><span></span></span></blockquote><span style="font-family:arial,helvetica,sans-serif"><b><span><span>&lt;action</span> <span>application</span>=<span>&quot;set&quot;</span> <span>data</span>=<span>&quot;execute_on_preanswer=phrase saycredit,34:64:97&quot;</span> <span>/&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" target="_blank">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></div>Shahzad Bhatti<br></div></blockquote></div></div></div></div></blockquote></div></div></div></div></div></div></div>
</blockquote></div></div></div></div></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div>