[VoIP] Legacy Ringback from Recordings in Asterisk

Greg Blakely greg at vyger.net
Sun Apr 8 20:34:26 CDT 2007


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)
> 



More information about the VoIP mailing list