Commit Graph

1966 Commits

Author SHA1 Message Date
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
Michael Jerris 0984933c36 fix spidermonkey release build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3406 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-18 17:09:25 +00:00
Michael Jerris 814fefdfba check for null qrealm too.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3405 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-18 16:44:09 +00:00
Michael Jerris 2ce49f8f0b silence silly warning
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3404 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-18 16:39:45 +00:00
Michael Jerris b0dde8deb9 need to add to the pointer, not the pointee
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3403 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-18 16:37:25 +00:00
Michael Jerris 4f2824e371 need to free the head pointer of malloc'd memory (form anthm's working copy)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3402 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-18 16:35:03 +00:00
Michael Jerris 6f448d96c5 prepare for libteletone linking to the core in the windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3401 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-18 16:31:19 +00:00
Michael Jerris 9687f37f92 catch up with api, add option to switch_core_destroy call.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3400 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-18 06:43:37 +00:00
Anthony Minessale 6dd370b007 reg realm stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3398 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-17 22:13:26 +00:00
Anthony Minessale 5af884576c return 404 when you cant find a user
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3397 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-17 21:57:47 +00:00
Anthony Minessale e2d6484493 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3396 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-17 18:22:32 +00:00
Anthony Minessale 715a6ac9ab update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3393 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-17 00:13:36 +00:00
Michael Jerris 0d0114c8a5 fix portaudio build on ppc, thanks puzzled on irc.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3392 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 23:09:36 +00:00
Anthony Minessale 7fc62a3ff8 ignore options reply (nevermind)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3391 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 22:30:19 +00:00
Anthony Minessale 57515855fd ignore options reply
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3390 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 22:16:30 +00:00
Anthony Minessale 251453e254 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3389 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 21:20:00 +00:00
Anthony Minessale 89989bc34f vg mode
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3388 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 19:43:25 +00:00
Anthony Minessale ff4d2b3dcc pesky interop
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3387 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 19:28:05 +00:00
Michael Jerris 7409f414f5 logic fix on rtp_common_read on a not ready session, init bytes to 0 so the checks outside of the while loop work.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3386 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 18:48:53 +00:00
Anthony Minessale 9415cdcacb update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3385 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 16:10:39 +00:00
Anthony Minessale 594ccf8bb8 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3384 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 15:50:17 +00:00
Anthony Minessale 394a188b7e update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3381 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-15 20:21:46 +00:00
Anthony Minessale 6013035a6c update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3380 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-15 20:21:29 +00:00
Michael Jerris ee4118ab86 tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3378 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-15 03:59:40 +00:00
Anthony Minessale f8d3093f5c hack to fix udp sockets
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3377 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-15 03:17:28 +00:00
Anthony Minessale dd824bbf81 doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3375 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-15 00:40:45 +00:00
Anthony Minessale 1fc5fd0e14 inherited 64bit bug curses to unsigned long
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3374 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-15 00:15:38 +00:00
Michael Jerris 54e68cfee6 fix path of header files.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3372 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-14 19:52:24 +00:00
Anthony Minessale 0f95796d07 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3371 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-14 19:51:29 +00:00
Anthony Minessale d31a1b25fe try to deal with contact bs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3370 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-14 18:12:17 +00:00
Anthony Minessale 81ff111339 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3369 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-14 17:41:35 +00:00
Michael Jerris f3ffaff015 merge mod_python fixes from Johny Kadarisman <jkr888 at gmail.com>. mod_python actually works now, please report problems.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3366 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-14 06:13:04 +00:00
Michael Jerris 7ee6fcecd2 remove debugging message.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3365 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-14 06:08:49 +00:00
Anthony Minessale 534480be37 fix contact for snob phones
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3348 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-13 21:17:57 +00:00
Michael Jerris 73304d0ca8 move to sofia snapshot 1.12.3.10. This adds nua_i_mehtod support to allow receipt of non-standard methods as well as a number of other bugfixes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3346 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-13 19:13:56 +00:00
Michael Jerris 04cec4b4e8 dox
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3345 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-13 17:41:45 +00:00
Michael Jerris 28c875cfa9 add switch_ivr_digit_stream functions and switch_ivr_build_xml_menu_stack to switch ivr, merged from knhor branch. thanks neal!
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3341 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-13 16:29:16 +00:00
Michael Jerris 4619302f8f don't user "new" as a variable name, so we can keep compatible with C++
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3336 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-12 21:16:46 +00:00
Michael Jerris 0d7ab0cb03 Removed "Mixed" target.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3335 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-12 21:15:08 +00:00
Michael Jerris b87df5bcd2 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3334 d0543943-73ff-0310-b7d9-9358b9ac24b2 2006-11-12 21:05:08 +00:00
Anthony Minessale a5f16da175 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3332 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-12 20:50:18 +00:00
Anthony Minessale 372c160c3f menu stuff: work in progress, look for bugs\!\!\!
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3331 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-12 20:34:04 +00:00
Anthony Minessale bfb6127d57 try it on 10 boxes and you are bound to find one that still complains about the same code yay for gcc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3322 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-12 00:42:51 +00:00
Anthony Minessale ddcb03c042 dox
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3321 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-12 00:40:00 +00:00
Anthony Minessale c8733f2b8a update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3320 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-12 00:38:31 +00:00
Anthony Minessale 8f8396d741 add ivr api not sure it works yet
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3319 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-12 00:32:18 +00:00
Anthony Minessale c834ba6a71 let's make sure realloc works
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3316 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-11 19:40:41 +00:00
Anthony Minessale 68bab16e37 make event_serialize dynamic
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3314 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-11 19:32:45 +00:00
Anthony Minessale eb1bafe567 dox
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3313 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-11 17:36:44 +00:00
Michael Jerris 4fde6dd0c8 windows build for new spidermonkey modules.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3310 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-11 06:06:18 +00:00