<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>&gt;</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>&gt;</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>
&gt; Hi All,<br>
&gt;<br>
&gt; Is it possible to play a sound file without answering the call in free<br>
&gt; 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>