Clive,<div><br></div><div>Welcome to FreeSWITCH! If you're doing event socket stuff after only two weeks then I must tip my hat to you. Well done!</div><div><br></div><div>I've never seen this symptom before so I'm at a bit of a loss as to what is happening. Out of curiosity, what language are you using for your event socket communications? I'm wondering if you can send the tone_stream without the "loops=-1" over and over again and receive the same symptom where the playback speeds up. The other test I would try is doing something like "loops=25" or some relatively high number. Again see if the symptom presents itself. (I'm wondering if this happens only on loops=-1 or if it happens any time there is a loop.)</div>
<div><br></div><div>Let us know what you discover.</div><div><br></div><div>-MC<br><br><div class="gmail_quote">On Mon, Apr 18, 2011 at 7:01 PM, Clive Lansink <span dir="ltr"><<a href="mailto:clive@lansink.co.nz">clive@lansink.co.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello<br>
<br>
I am relatively new to Freeswitch; I've played with it for about two weeks. It is now fully installed as our home PABX system. I've also done some elementary IVR stuff using an external script communicating to event_socket. It can monitor Freeswitch events, answer calls, play and record files and get digits so I suppose it does all the basics.<br>
<br>
But I'm having difficulty playing tones. A simple tone is no problem like the UK busy tone, %(400,200,400,450);%(400,2000,400,450), but things go wrong when I try loops.<br>
<br>
In my external script when I want to play a tone, I sende a sendmsg request with the appropriate UUID. In the headers, I have:<br>
call-command: execute<br>
execute-app-name: gentones<br>
execute-app-arg: %(400,200,400,450);%(400,2000,400,450)<br>
]<br>
That works, but if I want the ring tone to repeat for an indefinite period, the header then becomes:<br>
execute-app-arg: %(400,200,400,450);%(400,2000,400,450);loops=-1<br>
When I do this, I hear one ring tone, then a single DTMF digit is played, presumably the 1 of loops=-1. I've also tried like loops=5 and got the same result.<br>
<br>
After seeing some examples, I then tried the following, again using the sendmsg command:<br>
call-command: execute<br>
execute-app-name: playback<br>
execute-app-arg: tone_stream://%(400,200,400,450);%(400,2000,400,450);loops=-1<br>
]<br>
This time it does at least seem to loop indefinitely, but after the first two or so loops, the speed increases (not the pitch) so that the tone repeats much more quickly than it should.<br>
<br>
Any help would be much appreciated. It seems to me that using playback in this way must be accessing the same raw functionality as gentones, so I don't understand why the result would be different. But in the end I guess I don't care which method I use but it would be good to understand why both methods currently don't work for me.<br>
<br>
By the way, I am using a recent version of Freeswitch, a pre-compiled version running on Windows XP.<br>
<br>
Cheers.<br>
<br>
<br>
Clive Lansink<br>
Email: <a href="mailto:Clive@Lansink.Co.NZ">Clive@Lansink.Co.NZ</a><br>
Phone: +64 9 520-4242<br>
Mobile: +64 21 663-999<br>
Fax: +64 21 789-150<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></div>