<div dir="ltr">If you see it saying its playing early media and you can'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'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"><<a href="mailto:shahzad.bhatti@g-r-v.com" target="_blank">shahzad.bhatti@g-r-v.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 <a href="http://pastebin.freeswitch.org/21912" target="_blank">http://pastebin.freeswitch.org/21912</a><br></div><div>and example of dialplan here <a href="http://pastebin.freeswitch.org/21913" target="_blank">http://pastebin.freeswitch.org/21913</a></div>
<br>Regards<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Shahzad Bhatti</font></span><div><div class="h5"><br><div><div><div><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: Shahzad Bhatti <<a href="mailto:shahzad.bhatti@g-r-v.com" target="_blank">shahzad.bhatti@g-r-v.com</a>><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
Cc: <br>Date: Wed, 29 Jan 2014 18:13:34 +0500<br>Subject: 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> <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> <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><div><br><div><br><div><div><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: Mario G <<a href="mailto:mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>><br>To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
Cc: <br>
Date: Tue, 28 Jan 2014 13:08:24 -0800<br>Subject: Re: [Freeswitch-users] Play IVR Before Answer<br><div style="word-wrap:break-word">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). 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 <<a href="mailto:shahzad.bhatti@g-r-v.com" target="_blank">shahzad.bhatti@g-r-v.com</a>> 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><action</span> <span>application</span>=<span>"set"</span> <span>data</span>=<span>"execute_on_preanswer=phrase saycredit,34:64:97"</span> <span>/></span></span></b></span><br>
</div>here is my xml_curl xml for the call<br> <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></div></div></div>
</blockquote></div></div></div></div></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><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a> ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a> ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div>
<div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br>
</div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a> ☎ +19193869900 </div><div><br></div></div></div></div>
</div>