Hello

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.

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.

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:
call-command: execute
execute-app-name: gentones
execute-app-arg: %(400,200,400,450);%(400,2000,400,450)
]
That works, but if I want the ring tone to repeat for an indefinite period, the header then becomes:
execute-app-arg: %(400,200,400,450);%(400,2000,400,450);loops=-1
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.

After seeing some examples, I then tried the following, again using the sendmsg command:
call-command: execute
execute-app-name: playback
execute-app-arg: tone_stream://%(400,200,400,450);%(400,2000,400,450);loops=-1
]
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.

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.

By the way, I am using a recent version of Freeswitch, a pre-compiled version running on Windows XP.

Cheers.


Clive Lansink
Email: Clive@Lansink.Co.NZ
Phone: +64 9 520-4242
Mobile: +64 21 663-999
Fax: +64 21 789-150

