Thanks,<br><br>Theat was my attempt to sanitize the data, and I did a really poor job of it :-><br><br>The waves & numbers I'm using in the script are correct, though.<br><br>I've narrowed it down somewhat, it's not the type of phone ... it's something else.<br>
(though I have a better chance of hearing a message on land line ... maybe.)<br><br>Sometimes the messages play, sometimes they start then die 1/2 way through ...<br>usually they don't start. If I loop and wait for a tone, then replay, sometimes the<br>
second attempt does actually play.<br><br>I've tried using both streamFile (with and without the callback) and session.execute('playback', media);<br><br>All with the same inconsistent results.<br><br>Any idea where I should be looking?<br>
<br>Nick<br><br><br><div class="gmail_quote">On Fri, May 2, 2008 at 11:57 AM, Michael S Collins <<a href="mailto:mercutio.viz@gmail.com">mercutio.viz@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Nick,<br>
<br>
I don't know if it was meant to be this way but your first script has /<br>
tmp/test.wav and your second script has /mnt/test.wav - was that<br>
intentional?<br>
<br>
-MC<br>
<br>
Sent from my iPhone<br>
<div><div></div><div class="Wj3C7c"><br>
On May 1, 2008, at 9:28 AM, "Nick Temple" <<a href="mailto:nick@intellispire.com">nick@intellispire.com</a>> wrote:<br>
<br>
> Hello,<br>
><br>
> I am extremely new to VOIP in general and have been using freeswitch<br>
> only a couple of days,<br>
> so if I have missed something in the docs please point me in the<br>
> right direction.<br>
><br>
> I am attempting to create an outbound call system -- mostly research<br>
> and playing at<br>
> this point.<br>
><br>
> The initial goal is to have the system ring a number, then deliver a<br>
> wave file. I have<br>
> it (mostly) working in two different flavors.<br>
><br>
> The first seems to work the best right now:<br>
><br>
> (works fine via XMLRPC or the CLI):<br>
> originate sofia/gateway/lesnet/1502NNNNNNN '&javascript(call1.js)'<br>
><br>
> call1.js:<br>
> session.waitForAnswer(10000);<br>
> session.streamFile("/tmp/test.wav");<br>
> exit();<br>
><br>
><br>
> The second way does everything in Javascript:<br>
> jsrun call2.js<br>
><br>
> where call2.js is nearly as trivial:<br>
> sessionx = new Session();<br>
> if (sessionx.originate(session, "sofia/gateway/lesnet/15025482003",<br>
> 30)) {<br>
> sessionx.waitForAnswer(10000); // Wait 30 seconds<br>
> sessionx.streamFile("/mnt/test.wav");<br>
> };<br>
> exit();<br>
><br>
><br>
> The difference is that while both methods work on my land line, only<br>
> #1 works when calling my cell phone ...<br>
> for #2, the call is made, but I can't hear the media file playing.<br>
><br>
> After lots of experimentation, the only thing I can figure at this<br>
> point is that call1.js has some<br>
> sort of defaults setup that I fail to do in call2.js<br>
><br>
> Thanks for a great product!<br>
><br>
> Nick<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<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>
_______________________________________________<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>
</blockquote></div><br>