<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi -<div><br></div><div>The answer to your initial question is "it depends." &nbsp;The ringtone that a caller hears is generated by a switch at the far end of a call - that's why, when you call people in different countries, you will usually hear the ringtone for that country. &nbsp;If that switch is before you in the chain - as it will be if, for example, you're receiving the calls via an analogue line - then you cannot play audio to the caller without answering the call. &nbsp;If there isn't a switch before you in the chain which believes that it's its job to generate ringtone, then you can play audio to the caller before answering.</div><div><br></div><div>If you can do what you want calling FS directly from a softphone on your desk - I use X-Lite - then you've done your bit. &nbsp;If it doesn't work when calling via the PSTN (but you hear ringing while the "your balance is.." message is playing, then someone between FS and the caller is generating that ringtone.</div><div><br></div><div>Cheers --</div><div><br></div><div>Dave</div><div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Let me explain why i need this.<br><br>I have a written a small script which will get balance from database and play the balance and after that connect the call by using session.originate.<br><br><br>Dialing 009199XXXXXXX&nbsp; will call test.js&nbsp; which will first play balance and then dial 9199XXXXXX.<br> <br>Now the problem is :<br><br><br><b>If i answer the call first and then play balance and then dial number .<br><br>Call goes fine but the the session time&nbsp; calculated by freeswitch is from dialing 009199XXXXXXX&nbsp; till the end of call.<br> </b><br>which is wrong it should calculate only the call duration of new session originated by js. <br><br><br><b>If not answer the call, duration is correct but it will not play the balance. </b><br><br><br><br><div class="gmail_quote"> On Tue, Aug 19, 2008 at 2:15 PM, vidhya sagar dixit <span dir="ltr">&lt;<a href="mailto:vids.cs@gmail.com">vids.cs@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;"> <div dir="ltr">Hi,<br><br>I am dialing from softphone to pstn using freeswitch. <br>Is it possible to play a sound file before connecting the call.<br><br>when dial from softphone i should hear first the sound file lets say welcome.wav&nbsp; and then dial the number.<br> <br><br><br><div class="gmail_quote"><div><div></div><div class="Wj3C7c">On Tue, Aug 19, 2008 at 2:10 PM, James Green <span dir="ltr">&lt;<a href="mailto:james.green@stealthnet.net" target="_blank">james.green@stealthnet.net</a>></span> wrote:<br> </div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c"> <div>vidhya sagar dixit wrote:<br> > Hi All,<br> ><br> > Is it possible to play a sound file without answering the call in free<br> > switch &nbsp; ?<br> <br> </div>To whom?<br> <font color="#888888"><br> James<br> </font><br></div></div>_______________________________________________<br> Freeswitch-users mailing list<br> <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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><div class="Ih2E3d"><br><br clear="all"><br>-- <br>Thanks and Regards <br><br>Vidhya Sagar Dixit<br> </div></div> </blockquote></div><br><br clear="all"><br>-- <br>Thanks and Regards <br><br>Vidhya Sagar Dixit<br> </div> _______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><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></body></html>