[VoIP] Legacy Ringback from Recordings in Asterisk
Lee Spenadel
lee at spenadel.com
Sun Apr 8 20:38:24 CDT 2007
I implemented it too! Great way to do it, John. I forgot to expect this,
though I shouldn't have, but the ring cycle of the fake tone doesn't match
up with the telephone ring. What's the delay before a call would ordinarily
begin to ring? It may be work tweaking my sound file.
-----Original Message-----
From: voip-bounces at ckts.info [mailto:voip-bounces at ckts.info] On Behalf Of
Greg Blakely
Sent: Sunday, April 08, 2007 9:34 PM
To: Voice Over IP Tandem for Analog Switches
Subject: Re: [VoIP] Legacy Ringback from Recordings in Asterisk
It works 'swell'!
Of course, it's completely fake, but, since I can't imagine ever having
the space for a mercury drum interrupter, my phony ringback tone comes
as close as I'll ever be to having the real McCoy.
> -----Original Message-----
> From: voip-bounces at ckts.info [mailto:voip-bounces at ckts.info]
> On Behalf Of John R. Covert
>
> It has been asked before if it's possible in Asterisk to use
> a recording for ringback. The answer is YES. IMHO, don't
> bother unless you've got a good ulaw recording, but anyway,
> here's how.
>
> In musiconhold.conf:
>
> [5xbring]
> mode=files
> directory=/var/lib/asterisk/moh-5xbring
>
> Put a single .ulaw file in that directory. Note that I had
> to take an mp3 original; I need to replace this with
> something that was never compressed. I trimmed some silence
> from the front so that we get ring pretty quickly (so that
> people will hear it if I answer on the first actual ring
> before the "tone plant" cycles in with this recording). I
> made it an exact number of cycles long so that if it wraps
> around on no answer, it doesn't sound weird.
>
> sox 5xbring.mp3 -r 8000 -tul 5xbring.ulaw trim 2.7 50
>
> Then the dial statement in extensions.conf gets the
> music-on-hold modifier with the class created above, thus:
>
> Dial(${RINGALL},120,m(5xbring)t)
>
_______________________________________________
VoIP mailing list
VoIP at ckts.info
http://lists.ckts.info/mailman/listinfo/voip
Project Web Page: http://www.ckts.info/
More information about the VoIP
mailing list