Go to file
Anthony Minessale d7baa16132 Ringback (sponsored by Front Logic)
This addition lets you set artifical ringback on a channel
that is waiting for an originated call to be answered.

the syntax is 

<action application="set" data="ringback=[data]"/>

where data is either the full path to an audio file
or a teletone generation script..


syntax of teletone scripts

LEGEND:

0-9,a-d,*,# (standard dtmf tones)

variables: c,r,d,v,>,<,+,w,l,L,%

c (channels)        - Sets the number of channels.
r (rate)            - Sets the sample rate.
d (duration)        - Sets the default tone duration.
v (volume)          - Sets the default volume.
> (decrease vol)    - factor to decrease volume by per frame (0 for even decrease across duration).
< (increase vol)    - factor to increase volume by per frame (0 for even increase across duration).
+ (step)            - factor to step by used by < and >.
w (wait)            - default silence after each tone.
l (loops)           - number of times to repeat each tone in the script.
L (LOOPS)           - number of times to repeat the the whole script.
% (manual tone)     - a generic tone specified by a duration, a wait and a list of frequencies.

standard tones can have custom duration per use with the () modifier
7(1000, 500) to generate DTMF 7 for 1 second then pause .5 seconds

EXAMPLES

UK Ring Tone [400+450 hz on for 400ms off for 200ms then 400+450 hz on for 400ms off for 2200ms]
%(400,200,400,450);%(400,2200,400,450)

US Ring Tone [440+480 hz on for 2000ms off for 4000ms]
%(2000,4000,440,480)

ATT BONG [volume level 4000, even decay, step by 2, # key for 60ms with no wait, volume level 2000, 350+440hz {us dialtone} for 940ms
v=4000;>=0;+=2;#(60,0);v=2000;%(940,0,350,440)

SIT Tone 913.8 hz for 274 ms with no wait, 1370.6 hz for 274 ms with no wait, 1776.7 hz for 380ms with no wait
%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)

ATTN TONE (phone's off the hook!) 1400+2060+2450+2600 hz for 100ms with 100ms wait
%(100,100,1400,2060,2450,2600)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3408 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 01:05:06 +00:00
build fix build 2006-10-19 00:20:40 +00:00
conf Ringback (sponsored by Front Logic) 2006-11-19 01:05:06 +00:00
docs dox 2006-05-10 20:02:01 +00:00
libs Ringback (sponsored by Front Logic) 2006-11-19 01:05:06 +00:00
mac/xcode Remove ExoSip from Xcode project. 2006-10-01 00:35:19 +00:00
scripts merge mod_python fixes from Johny Kadarisman <jkr888 at gmail.com>. mod_python actually works now, please report problems. 2006-11-14 06:13:04 +00:00
src Ringback (sponsored by Front Logic) 2006-11-19 01:05:06 +00:00
support I'm adding this freeswitch.pub ssh key so people needing support can add 2006-08-20 18:01:10 +00:00
w32 prepare for libteletone linking to the core in the windows build 2006-11-18 16:31:19 +00:00
.indent.pro update .indent.pro, and script to generate it 2006-10-15 02:03:49 +00:00
AUTHORS merge mod_python fixes from Johny Kadarisman <jkr888 at gmail.com>. mod_python actually works now, please report problems. 2006-11-14 06:13:04 +00:00
COPYING fix oops (svn merge -r 418:417 http://svn.freeswitch.org/svn/freeswitch/trunk) 2006-01-20 15:05:05 +00:00
ChangeLog hi 2005-11-12 21:27:19 +00:00
Freeswitch.sln prepare for libteletone linking to the core in the windows build 2006-11-18 16:31:19 +00:00
INSTALL Add make nodepends to INSTALL, thanks nonanet from irc. 2006-09-05 13:09:53 +00:00
Makefile.am build stuff 2006-11-09 05:31:29 +00:00
Makefile.in build stuff 2006-11-09 05:31:29 +00:00
NEWS hi 2005-11-12 21:27:19 +00:00
README this was all wrong.. blanking it out for now.. I am sure we should have somthing useful in there. 2006-10-28 19:59:01 +00:00
aclocal.m4 build stuff 2006-11-09 05:31:29 +00:00
build.sh change build.sh to ensure gnu make 2006-02-08 21:32:03 +00:00
configure build stuff 2006-11-09 05:31:29 +00:00
configure.in use usleep when possible, ./configure && make sure when you update 2006-09-17 18:44:53 +00:00
generic_mod.mk ok this is just being picky but on darwin and mac we really should call it .dylib instead of .so but this also gave me a chance to get better with the build system. /b 2006-03-05 23:44:04 +00:00
indent_options.sh update .indent.pro, and script to generate it 2006-10-15 02:03:49 +00:00
modules.conf.in spidermonkey has it's own loadable modules now good luck 2006-11-10 21:49:57 +00:00

README