I cannot record ringback tones in Asterisk

Hi all,

I try to record ring-back tones using MixMonitor application, but the MixMonitor starts recording only when the called party answers, so I do not get the ring-back tones recorded.

Does any one have an advice how I may record ring-back tones or how/where from I may get ring-back tones. (US tones)

I need to send ring-back tone in certain condition to the calling party and the option of the Dial command gives only a single ring-back tone.

Thanks
zvik

[quote=“zvik”]Hi all,

I try to record ring-back tones using MixMonitor application, but the MixMonitor starts recording only when the called party answers, so I do not get the ring-back tones recorded.

zvik[/quote]

Show us your dialplan

regards

Hi czuker,

Thanks for your reply.
We decided to opt for the option of using the for ring back.
The quality of recorded files is not good enough for ring back tones.
We currently have a problem that when we use the Dial command with the option it gives only ONE ring back tone and then there is a big delay
until we get the “REAL” ring back tone. We are working on it.

The Dial command is simple:

exten => _X.,n,Dial(Zap/9/${DST}|30|r)

and we tried also:
exten => _X.,n,Dial(Zap/9/${DST}|30,r)

Thanks
zvik

zvik
Look for PlayTones() application in Asterisk and indications.conf, that would probably help.

Actually I had almost same problem before and used a ringing tone file with option m for Dial(). PSTN hadsomething wrong and was not sending me tones, so I had to have my own tones until it was fixed.

Also try to get close to Ringing() and Busy() applications, they may better fit for your situation.

Anyway, to play with tones and record them to a file, I’ve found a very useful windows application called CPT-Master. (I believe trial version would be ok for your needs).

For US ringing tone put “440+480” in Frequency field, “2 on 4 off” in Cadence field, press Play and then Save it as wav if you like it. It will create a file containing several rings, you don’t need that, cut it to one ring-silence with any audio editor, then convert the wav to appropriate format using sox or anything else, create a new musiconhold class pointing to that file, name it ‘ringing’ or something and have Dial() with m(ringing).

georgy,

Many thanks!
That CPT Master is really good!

zvik